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