ERP-admin/build/admin/assets/index.95c9f74d.js

2 lines
8.3 KiB
JavaScript

import{C as K,D as M,w as O,F as Z,T as z,O as G,Q as H,R as J}from"./element-plus.681b9893.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{f as Y,b as ee}from"./index.5f655476.js";import{u as le}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.f9c59dc2.js";import{e as ae,a as ue}from"./warehouse.116994fc.js";import"./lodash.466e9fe4.js";import{_ as te}from"./edit.vue_vue_type_script_setup_true_name_warehouseEdit_lang.fa0afcef.js";import{_ as re}from"./details.vue_vue_type_script_setup_true_name_warehouseDETAILS_lang.fd9a3fec.js";import{d as R,s as g,r as B,Z as pe,ap as se,o as d,c as ne,U as e,L as u,u as o,R as m,M as E,K as c,a as U,j as de,Q as $,n as D}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.3ec9e3a6.js";const ie={class:"mt-4"},me={class:"flex mt-4 justify-end"},ce=R({name:"warehouseLists"}),bl=R({...ce,setup(fe){const _=g(),C=g(),w=B(!1),v=B(!1),t=pe({name:"",py:"",dept_id:"",number:"",contacts:"",tel:"",add:"",data:"",more:"",sort:""}),V=B([]),S=s=>{V.value=s.map(({id:l})=>l)},{dictData:h}=oe(""),{pager:f,getLists:F,resetParams:A,resetPage:L}=le({fetchFun:ue,params:t}),P=async()=>{var s;w.value=!0,await D(),(s=_.value)==null||s.open("add")},T=async s=>{var l,r;w.value=!0,await D(),(l=_.value)==null||l.open("edit"),(r=_.value)==null||r.setFormData(s)},N=async s=>{var l,r;v.value=!0,await D(),(l=C.value)==null||l.open(),(r=C.value)==null||r.setFormData(s)},y=async s=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:s}),F()};return F(),(s,l)=>{const r=K,n=M,i=O,I=Z,k=z,j=ee,p=G,Q=H,W=X,b=se("perms"),q=J;return d(),ne("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:u(()=>[e(I,{class:"mb-[-16px]",model:o(t),inline:""},{default:u(()=>[e(n,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).name,"onUpdate:modelValue":l[0]||(l[0]=a=>o(t).name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u9996\u62FC\u4FE1\u606F",prop:"py"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).py,"onUpdate:modelValue":l[1]||(l[1]=a=>o(t).py=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9996\u62FC\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u7EC4\u7EC7\u67B6\u6784",prop:"dept_id"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).dept_id,"onUpdate:modelValue":l[2]||(l[2]=a=>o(t).dept_id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u67B6\u6784"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u4ED3\u5E93\u7F16\u53F7",prop:"number"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).number,"onUpdate:modelValue":l[3]||(l[3]=a=>o(t).number=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).contacts,"onUpdate:modelValue":l[4]||(l[4]=a=>o(t).contacts=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA\u5458"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"tel"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).tel,"onUpdate:modelValue":l[5]||(l[5]=a=>o(t).tel=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u4ED3\u5E93\u5730\u5740",prop:"add"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).add,"onUpdate:modelValue":l[6]||(l[6]=a=>o(t).add=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u5730\u5740"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).data,"onUpdate:modelValue":l[7]||(l[7]=a=>o(t).data=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6269\u5C55\u4FE1\u606F",prop:"more"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).more,"onUpdate:modelValue":l[8]||(l[8]=a=>o(t).more=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6269\u5C55\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6392\u5E8F",prop:"sort"},{default:u(()=>[e(r,{class:"w-[280px]",modelValue:o(t).sort,"onUpdate:modelValue":l[9]||(l[9]=a=>o(t).sort=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F"},null,8,["modelValue"])]),_:1}),e(n,null,{default:u(()=>[e(i,{type:"primary",onClick:o(L)},{default:u(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:o(A)},{default:u(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),E((d(),c(k,{class:"!border-none",shadow:"never"},{default:u(()=>[E((d(),c(i,{type:"primary",onClick:P},{icon:u(()=>[e(j,{name:"el-icon-Plus"})]),default:u(()=>[m(" \u65B0\u589E ")]),_:1})),[[b,["warehouse.warehouse/add"]]]),E((d(),c(i,{disabled:!o(V).length,onClick:l[10]||(l[10]=a=>y(o(V)))},{default:u(()=>[m(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[b,["warehouse.warehouse/delete"]]]),U("div",ie,[e(Q,{data:o(f).lists,onSelectionChange:S},{default:u(()=>[e(p,{type:"selection",width:"55"}),e(p,{label:"ID",prop:"id",width:"55"}),e(p,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(p,{label:"\u9996\u62FC\u4FE1\u606F",prop:"py","show-overflow-tooltip":""}),e(p,{label:"\u7EC4\u7EC7\u67B6\u6784",prop:"dept_id","show-overflow-tooltip":""}),e(p,{label:"\u4ED3\u5E93\u7F16\u53F7",prop:"number","show-overflow-tooltip":""}),e(p,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts","show-overflow-tooltip":""}),e(p,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"tel","show-overflow-tooltip":""}),e(p,{label:"\u4ED3\u5E93\u5730\u5740",prop:"add","show-overflow-tooltip":""}),e(p,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),e(p,{label:"\u6269\u5C55\u4FE1\u606F",prop:"more","show-overflow-tooltip":""}),e(p,{label:"\u6392\u5E8F",prop:"sort","show-overflow-tooltip":""}),e(p,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:a})=>[E((d(),c(i,{type:"primary",link:"",onClick:x=>T(a)},{default:u(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[b,["warehouse.warehouse/edit"]]]),e(i,{type:"primary",link:"",onClick:x=>N(a)},{default:u(()=>[m(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"]),E((d(),c(i,{type:"danger",link:"",onClick:x=>y(a.id)},{default:u(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["warehouse.warehouse/delete"]]])]),_:1})]),_:1},8,["data"])]),U("div",me,[e(W,{modelValue:o(f),"onUpdate:modelValue":l[11]||(l[11]=a=>de(f)?f.value=a:null),onChange:o(F)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(f).loading]]),o(w)?(d(),c(te,{key:0,ref_key:"editRef",ref:_,"dict-data":o(h),onSuccess:o(F),onClose:l[12]||(l[12]=a=>w.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),o(v)?(d(),c(re,{key:1,ref_key:"detailRef",ref:C,"dict-data":o(h),onSuccess:o(F),onClose:l[13]||(l[13]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0)])}}});export{bl as default};