ERP-admin/build/admin/assets/index.ae101aaf.js

2 lines
6.1 KiB
JavaScript

import{C as K,D as O,w as Z,F as z,T as H,O as J,b as W,Q as X,R as Y}from"./element-plus.bccb9376.js";import{_ as oo}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{f as eo,b as to}from"./index.68fb39c6.js";import{d as V,s as ao,r as k,Z as lo,ap as so,o as n,c as io,U as o,L as a,u as t,R as m,M as _,K as d,a as y,a3 as D,j as ro,Q as no,n as B}from"./@vue.18505fe0.js";import{u as uo}from"./usePaging.6a6670f9.js";import{u as po}from"./useDictOptions.a4142f6d.js";import{e as mo,a as co}from"./goodsclass.1edf5349.js";import"./lodash.466e9fe4.js";import{u as _o,a as fo}from"./vue-router.101084e3.js";import{_ as Co}from"./edit.vue_vue_type_script_setup_true_name_goodsclassEdit_lang.ac41ed68.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"./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"./picker.1a023d0c.js";import"./index.49b5f729.js";import"./index.8558506a.js";import"./index.98da9f68.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";const Fo={class:"mt-4"},go={class:"flex mt-4 justify-end"},Eo=V({name:"goodsclassLists"}),Re=V({...Eo,setup(bo){var w;const f=ao(),C=k(!1),x=_o(),R=fo(),i=lo({pid:((w=x.query)==null?void 0:w.pid)||0,name:"",data:"",pic:"",sort:""}),b=k([]),$=s=>{b.value=s.map(({id:e})=>e)},{dictData:I}=po(""),{pager:c,getLists:F,resetParams:L,resetPage:P}=uo({fetchFun:co,params:i}),T=async()=>{var s;C.value=!0,await B(),(s=f.value)==null||s.open("add")},U=async s=>{var e,u;C.value=!0,await B(),(e=f.value)==null||e.open("edit"),(u=f.value)==null||u.setFormData(s)},v=async s=>{await eo.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await mo({id:s}),F()};F();const N=(s,e)=>{if(e.no==7)return console.log("\u65E0\u6548\u70B9\u51FB");R.push({path:"/goods/goodsclass",query:{pid:s.id}})};return(s,e)=>{const u=K,g=O,p=Z,S=z,h=H,q=to,r=J,j=W,A=X,G=oo,E=so("perms"),M=Y;return n(),io("div",null,[o(h,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(S,{class:"mb-[-16px] disabledEdit",model:t(i),inline:""},{default:a(()=>[o(g,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:t(i).name,"onUpdate:modelValue":e[0]||(e[0]=l=>t(i).name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(g,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:t(i).data,"onUpdate:modelValue":e[1]||(e[1]=l=>t(i).data=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F"},null,8,["modelValue"])]),_:1}),o(g,{label:"\u6392\u5E8F",prop:"sort"},{default:a(()=>[o(u,{class:"w-[280px]",modelValue:t(i).sort,"onUpdate:modelValue":e[2]||(e[2]=l=>t(i).sort=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6392\u5E8F"},null,8,["modelValue"])]),_:1}),o(g,null,{default:a(()=>[o(p,{type:"primary",onClick:t(P)},{default:a(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(p,{onClick:t(L)},{default:a(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),d(h,{class:"!border-none",shadow:"never"},{default:a(()=>[_((n(),d(p,{type:"primary",onClick:T},{icon:a(()=>[o(q,{name:"el-icon-Plus"})]),default:a(()=>[m(" \u65B0\u589E ")]),_:1})),[[E,["goods.goodsclass/add"]]]),_((n(),d(p,{disabled:!t(b).length,onClick:e[3]||(e[3]=l=>v(t(b)))},{default:a(()=>[m(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[E,["goods.goodsclass/delete"]]]),y("div",Fo,[o(A,{data:t(c).lists,onSelectionChange:$,onCellClick:N},{default:a(()=>[o(r,{type:"selection",width:"55"}),o(r,{label:"ID",prop:"id",width:"120"}),o(r,{label:"\u6240\u5C5EID",prop:"pid","show-overflow-tooltip":""}),o(r,{label:"\u5206\u7C7B\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),o(r,{label:"\u5907\u6CE8\u4FE1\u606F",prop:"data","show-overflow-tooltip":""}),o(r,{label:"\u56FE\u7247",prop:"pic"},{default:a(({row:l})=>[o(j,{style:{width:"50px",height:"50px"},src:l.pic},null,8,["src"])]),_:1}),o(r,{label:"\u6392\u5E8F",prop:"sort","show-overflow-tooltip":""}),o(r,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[_((n(),d(p,{type:"primary",link:"",onClick:D(Q=>U(l),["stop"])},{default:a(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[E,["goods.goodsclass/edit"]]]),_((n(),d(p,{type:"danger",link:"",onClick:D(Q=>v(l.id),["stop"])},{default:a(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[E,["goods.goodsclass/delete"]]])]),_:1})]),_:1},8,["data"])]),y("div",go,[o(G,{modelValue:t(c),"onUpdate:modelValue":e[4]||(e[4]=l=>ro(c)?c.value=l:null),onChange:t(F)},null,8,["modelValue","onChange"])])]),_:1})),[[M,t(c).loading]]),t(C)?(n(),d(Co,{key:0,ref_key:"editRef",ref:f,"dict-data":t(I),onSuccess:t(F),onClose:e[5]||(e[5]=l=>C.value=!1)},null,8,["dict-data","onSuccess"])):no("",!0)])}}});export{Re as default};