import{_ as x,d as B,aM as k,ah as E,x as N,r as v,aD as D,o as s,c as h,h as S,L as q,G as r,m as i,aN as V,H as Z,M as F,l as o,D as c,a as C}from"./index.js";import p from"./finance-setting.de6404.js";import w from"./procure-setting.a54f0c.js";import"./configs.f31ce718.js";import"./verification.611d3025.js";import"./index.ab253282.js";import"./query-category.748471.js";const R={class:"settings__content","bg-white":""},I={"mb-2":"","font-bold":""},A={key:1,"h-100px":""},P=B({__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},isZx:{type:Boolean,required:!0}},emits:["refresh"],setup(e,{emit:m}){const d=e,{hasPermissionWithCode:f}=k(d.pageName),g=E(()=>{let{spuCode:a=""}=d.detail||{};a=a.slice(3);const t=a.slice(0,2),n=a.slice(2,4),u=a.slice(4,6);return Number(t)<24||Number(t)===24&&Number(n)<8||Number(t)===24&&Number(n)===8&&Number(u)<16}),b=N(["1","2"]);return(a,t)=>{const n=v("ElCollapseItem"),u=v("ElCollapse"),y=D("loading");return s(),h("div",R,[S("h1",I,q(e.title),1),e.detail?(s(),r(i(V),{key:0,data:e.detail,columns:e.columns,"label-width":"130px","col-number":2},null,8,["data","columns"])):Z((s(),h("div",A,[F("\u8BE6\u60C5\u52A0\u8F7D\u4E2D...")])),[[y,!0]]),o(u,{modelValue:b.value,"onUpdate:modelValue":t[2]||(t[2]=l=>b.value=l)},{default:c(()=>[e.detail&&Number(e.detail.status)<2&&i(f)("043")&&i(g)?(s(),r(n,{key:0,title:"\u5F85\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE",name:"1"},{default:c(()=>[o(w,{isZx:e.isZx,name:e.name,detail:e.detail,columns:e.columns,"back-route":e.backRoute,"can-change":e.canChange,onRefresh:t[0]||(t[0]=l=>m("refresh"))},null,8,["isZx","name","detail","columns","back-route","can-change"])]),_:1})):C("v-if",!0),e.detail&&Number(e.detail.status)>=1&&i(f)("044")&&i(g)?(s(),r(n,{key:1,title:"\u5F85\u8D22\u52A1\u8BBE\u7F6E\u7C7B\u76EE",name:"2"},{default:c(()=>[o(p,{isZx:e.isZx,name:e.name,detail:e.detail,columns:e.columns,"back-route":e.backRoute,"can-change":e.canChange,onRefresh:t[1]||(t[1]=l=>m("refresh"))},null,8,["isZx","name","detail","columns","back-route","can-change"])]),_:1})):C("v-if",!0)]),_:1},8,["modelValue"])])}}});var T=x(P,[["__scopeId","data-v-a5cd9d58"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSaleSettings/basic-settings.vue"]]);export{T as default};
