import{_ as C,d as k,aL as y,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,H as x,M as N,l,C as s,a as f}from"./index.88f7d256.js";import{B as q}from"./basic-descriptions.5c20357d.js";import w from"./finance-setting.61b6264e.js";import V from"./procure-setting.07ddce1a.js";import"./configs.785e9bce.js";import"./tootip.514b092e.js";import"./verification.611d3025.js";import"./index.03a8eb58.js";const F={class:"settings__content","bg-white":""},p={"mb-2":"","font-bold":""},R={key:1,"h-100px":""},I=k({__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}=y(v.pageName),c=B(["1","2"]);return(A,t)=>{const d=m("ElCollapseItem"),b=m("ElCollapse"),h=E("loading");return a(),g("div",F,[S("h1",p,D(e.title),1),e.detail?(a(),i(u(q),{key:0,data:e.detail,columns:e.columns,"label-width":"130px","col-number":2},null,8,["data","columns"])):x((a(),g("div",R,[N("\u8BE6\u60C5\u52A0\u8F7D\u4E2D...")])),[[h,!0]]),l(b,{modelValue:c.value,"onUpdate:modelValue":t[2]||(t[2]=n=>c.value=n)},{default:s(()=>[e.detail&&Number(e.detail.status)<2&&u(r)("043")?(a(),i(d,{key:0,title:"\u5F85\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE",name:"1"},{default:s(()=>[l(V,{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&&Number(e.detail.status)>=1&&u(r)("044")?(a(),i(d,{key:1,title:"\u5F85\u8D22\u52A1\u8BBE\u7F6E\u7C7B\u76EE",name:"2"},{default:s(()=>[l(w,{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 W=C(I,[["__scopeId","data-v-a5cd9d58"],["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/InvoiceSaleSettings/basic-settings.vue"]]);export{W as default};