ERP-admin/build/admin/assets/index.3fa61596.js

2 lines
7.6 KiB
JavaScript
Raw Normal View History

2024-05-09 15:53:22 +08:00
import{C as K,D as O,w as Q,F as Z,L as z,M as G,N as H,O as J}from"./element-plus.73c9e9a6.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.317e431e.js";import{f as Y,b as ee}from"./index.bd5cd373.js";import{u as le}from"./usePaging.77fa9d39.js";import{u as oe}from"./useDictOptions.3ea9a314.js";import{e as ae,a as ue}from"./warehouse.72d94fe4.js";import"./lodash.403d4198.js";import{_ as te}from"./edit.vue_vue_type_script_setup_true_name_warehouseEdit_lang.79d55804.js";import{_ as se}from"./details.vue_vue_type_script_setup_true_name_warehouseDETAILS_lang.241ef641.js";import{d as R,s as g,r as B,Z as re,ap as ne,o as p,c as de,U as e,L as u,u as o,R as m,M as E,K as c,a as U,j as pe,Q as $,n as D}from"./@vue.663bc523.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.js";import"./index.fa58e261.js";const ie={class:"mt-4"},me={class:"flex mt-4 justify-end"},ce=R({name:"warehouseLists"}),Je=R({...ce,setup(fe){const _=g(),C=g(),w=B(!1),v=B(!1),t=re({name:"",py:"",dept_id:"",number:"",contacts:"",tel:"",add:"",data:"",more:"",sort:""}),V=B([]),L=n=>{V.value=n.map(({id:l})=>l)},{dictData:h}=oe(""),{pager:f,getLists:F,resetParams:S,resetPage:A}=le({fetchFun:ue,params:t}),N=async()=>{var n;w.value=!0,await D(),(n=_.value)==null||n.open("add")},P=async n=>{var l,s;w.value=!0,await D(),(l=_.value)==null||l.open("edit"),(s=_.value)==null||s.setFormData(n)},T=async n=>{var l,s;v.value=!0,await D(),(l=C.value)==null||l.open(),(s=C.value)==null||s.setFormData(n)},y=async n=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ae({id:n}),F()};return F(),(n,l)=>{const s=K,d=O,i=Q,I=Z,k=z,j=ee,r=G,M=H,W=X,b=ne("perms"),q=J;return p(),de("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(d,{label:"\u4ED3\u5E93\u540D\u79F0",prop:"name"},{default:u(()=>[e(s,{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(d,{label:"\u9996\u62FC\u4FE1\u606F",prop:"py"},{default:u(()=>[e(s,{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(d,{label:"\u7EC4\u7EC7\u67B6\u6784",prop:"dept_id"},{default:u(()=>[e(s,{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(d,{label:"\u4ED3\u5E93\u7F16\u53F7",prop:"number"},{default:u(()=>[e(s,{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(d,{label:"\u8054\u7CFB\u4EBA\u5458",prop:"contacts"},{default:u(()=>[e(s,{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(d,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"tel"},{default:u(()=>[e(s,{class:"w-[280px]",modelValue:o(t).tel,"onUpdate:modelValue":l[5]||(l[5]=a=>o(t).tel=a),clearable:"",placehol