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