basic-settings.1ad5696d.js 2.2 KB

1
  1. import{_ as b,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 p,l,C as u,a as f}from"./index.46a4c444.js";import{B as q}from"./basic-descriptions.f8731312.js";import V from"./finance-setting.561f814e.js";import w from"./procure-setting.8a3a160b.js";import"./configs.df908751.js";import"./tootip.ec06bf22.js";import"./verification.611d3025.js";import"./index.27d4561d.js";const F={class:"settings__content","bg-white":""},N={"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"),h=E("loading");return a(),g("div",F,[S("h1",N,D(e.title),1),e.detail?(a(),i(s(q),{key:0,data:e.detail,columns:e.columns,"label-width":"130px","col-number":2},null,8,["data","columns"])):x((a(),g("div",R,[p("\u8BE6\u60C5\u52A0\u8F7D\u4E2D...")])),[[h,!0]]),l(C,{modelValue:c.value,"onUpdate:modelValue":t[2]||(t[2]=n=>c.value=n)},{default:u(()=>[e.detail&&e.detail.status==="0"&&s(r)("043")?(a(),i(d,{key:0,title:"\u5F85\u91C7\u8D2D\u8BBE\u7F6E\u7C7B\u76EE",name:"1"},{default:u(()=>[l(w,{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&&e.detail.status==="1"&&s(r)("044")?(a(),i(d,{key:1,title:"\u5F85\u8D22\u52A1\u8BBE\u7F6E\u7C7B\u76EE",name:"2"},{default:u(()=>[l(V,{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=b(I,[["__scopeId","data-v-a5cd9d58"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSaleSettings/basic-settings.vue"]]);export{T as default};