import{_ as h,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 as s,H as x,M as N,l as u,C as l,a as f}from"./index.42bf163d.js";import{B as p}from"./basic-descriptions.bd1e983e.js";import q from"./finance-setting.3af9f5e3.js";import V from"./procure-setting.80bf9a65.js";import"./configs.1568820f.js";import"./tootip.bb80052f.js";import"./verification.611d3025.js";import"./index.a3e78a40.js";const w={class:"settings__content","bg-white":""},F={"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"),C=m("ElCollapse"),b=E("loading");return a(),g("div",w,[S("h1",F,D(e.title),1),e.detail?(a(),i(s(p),{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...")])),[[b,!0]]),u(C,{modelValue:c.value,"onUpdate:modelValue":t[2]||(t[2]=n=>c.value=n)},{default:l(()=>[e.detail&&Number(e.detail.status)<2&&s(r)("043")?(a(),i(d,{key:0,title:"\u5F85\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE",name:"1"},{default:l(()=>[u(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&&s(r)("044")?(a(),i(d,{key:1,title:"\u5F85\u8D22\u52A1\u8BBE\u7F6E\u7C7B\u76EE",name:"2"},{default:l(()=>[u(q,{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=h(I,[["__scopeId","data-v-a5cd9d58"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSaleSettings/basic-settings.vue"]]);export{T as default};