ERP-admin/build/admin/assets/index.1d69af74.js

2 lines
5.3 KiB
JavaScript

import{C as A,D as I,w as Q,F as q,T as K,O as M,Q as O,R as Z}from"./element-plus.681b9893.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{f as G,b as H}from"./index.0c8416f0.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.b307efcf.js";import{e as X,a as Y}from"./express.247f1571.js";import"./lodash.466e9fe4.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_expressEdit_lang.41e81eee.js";import{d as h,s as oe,r as w,Z as te,ap as ae,o as i,c as le,U as e,L as a,u as o,R as p,M as _,K as u,a as B,j as re,Q as se,n as g}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.a7179cc9.js";const ie={class:"mt-4"},ne={class:"flex mt-4 justify-end"},me=h({name:"expressLists"}),fo=h({...me,setup(pe){const f=oe(),C=w(!1),s=te({code:"",name:"",mark:""}),b=w([]),V=r=>{b.value=r.map(({id:t})=>t)},{dictData:y}=W(""),{pager:d,getLists:v,resetParams:D,resetPage:$}=J({fetchFun:Y,params:s}),R=async()=>{var r;C.value=!0,await g(),(r=f.value)==null||r.open("add")},L=async r=>{var t,n;C.value=!0,await g(),(t=f.value)==null||t.open("edit"),(n=f.value)==null||n.setFormData(r)},E=async r=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:r}),v()};return v(),(r,t)=>{const n=A,F=I,m=Q,P=q,x=K,T=H,c=M,U=O,N=z,k=ae("perms"),S=Z;return i(),le("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(P,{class:"mb-[-16px]",model:o(s),inline:""},{default:a(()=>[e(F,{label:"\u7B80\u79F0",prop:"code"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:o(s).code,"onUpdate:modelValue":t[0]||(t[0]=l=>o(s).code=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7B80\u79F0"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u5FEB\u9012\u516C\u53F8",prop:"name"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:o(s).name,"onUpdate:modelValue":t[1]||(t[1]=l=>o(s).name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5FEB\u9012\u516C\u53F8"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u5907\u6CE8",prop:"mark"},{default:a(()=>[e(n,{class:"w-[280px]",modelValue:o(s).mark,"onUpdate:modelValue":t[2]||(t[2]=l=>o(s).mark=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"},null,8,["modelValue"])]),_:1}),e(F,null,{default:a(()=>[e(m,{type:"primary",onClick:o($)},{default:a(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:o(D)},{default:a(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),u(x,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),u(m,{type:"primary",onClick:R},{icon:a(()=>[e(T,{name:"el-icon-Plus"})]),default:a(()=>[p(" \u65B0\u589E ")]),_:1})),[[k,["express.express/add"]]]),_((i(),u(m,{disabled:!o(b).length,onClick:t[3]||(t[3]=l=>E(o(b)))},{default:a(()=>[p(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[k,["express.express/delete"]]]),B("div",ie,[e(U,{data:o(d).lists,onSelectionChange:V},{default:a(()=>[e(c,{type:"selection",width:"55"}),e(c,{label:"\u7B80\u79F0",prop:"code","show-overflow-tooltip":""}),e(c,{label:"\u5FEB\u9012\u516C\u53F8",prop:"name","show-overflow-tooltip":""}),e(c,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),e(c,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[_((i(),u(m,{type:"primary",link:"",onClick:j=>L(l)},{default:a(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[k,["express.express/edit"]]]),_((i(),u(m,{type:"danger",link:"",onClick:j=>E(l.id)},{default:a(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["express.express/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",ne,[e(N,{modelValue:o(d),"onUpdate:modelValue":t[4]||(t[4]=l=>re(d)?d.value=l:null),onChange:o(v)},null,8,["modelValue","onChange"])])]),_:1})),[[S,o(d).loading]]),o(C)?(i(),u(ee,{key:0,ref_key:"editRef",ref:f,"dict-data":o(y),onSuccess:o(v),onClose:t[5]||(t[5]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{fo as default};