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