import{_ as b,d as y,aL as k,w as B,r as m,aC as E,o as a,c as g,b as S,L as D,G as i,u as s,H as p,M as x,l,C as u,a as f}from"./index.1d1a5ecb.js";import{B as q}from"./basic-descriptions.1879b0f8.js";import V from"./finance-setting.9ec7d827.js";import w from"./procure-setting.5a587e31.js";import"./configs.0b5af9f6.js";import"./tootip.76f6bcc3.js";import"./verification.611d3025.js";import"./index.9d08ee5b.js";const F={class:"settings__content","bg-white":""},N={"mb-2":"","font-bold":""},R={key:1,"h-100px":""},I=y({__name:"basic-settings",props:{columns:{type:Array,required:!0},canChange:{type:Boolean,required:!1},backRoute:{type:String,required:!0},title:{type:String,required:!0},name:{type:String,required:!1},detail:{type:null,required:!0},pageName:{type:String,required:!0}},emits:["refresh"],setup(e,{emit:o}){const v=e,{hasPermissionWithCode:r}=k(v.pageName),c=B(["1","2"]);return(A,t)=>{const d=m("ElCollapseItem"),C=m("ElCollapse"),h=E("loading");return a(),g("div",F,[S("h1",N,D(e.title),1),e.detail?(a(),i(s(q),{key:0,data:e.detail,columns:e.columns,"label-width":"130px","col-number":2},null,8,["data","columns"])):p((a(),g("div",R,[x("\u8BE6\u60C5\u52A0\u8F7D\u4E2D...")])),[[h,!0]]),l(C,{modelValue:c.value,"onUpdate:modelValue":t[2]||(t[2]=n=>c.value=n)},{default:u(()=>[e.detail&&e.detail.status==="0"&&s(r)("043")?(a(),i(d,{key:0,title:"\u5F85\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE",name:"1"},{default:u(()=>[l(w,{name:e.name,detail:e.detail,columns:e.columns,"back-route":e.backRoute,"can-change":e.canChange,onRefresh:t[0]||(t[0]=n=>o("refresh"))},null,8,["name","detail","columns","back-route","can-change"])]),_:1})):f("v-if",!0),e.detail&&e.detail.status==="1"&&s(r)("044")?(a(),i(d,{key:1,title:"\u5F85\u8D22\u52A1\u8BBE\u7F6E\u7C7B\u76EE",name:"2"},{default:u(()=>[l(V,{name:e.name,detail:e.detail,columns:e.columns,"back-route":e.backRoute,"can-change":e.canChange,onRefresh:t[1]||(t[1]=n=>o("refresh"))},null,8,["name","detail","columns","back-route","can-change"])]),_:1})):f("v-if",!0)]),_:1},8,["modelValue"])])}}});var T=b(I,[["__scopeId","data-v-6a036583"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supplyInvoiceSaleSettings/basic-settings.vue"]]);export{T as default};
