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

2 lines
6.5 KiB
JavaScript
Raw Normal View History

2024-05-21 13:42:22 +08:00
import{C as M,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.619595c4.js";import{_ as oo}from"./index.vue_vue_type_script_setup_true_lang.02c63712.js";import{f as eo,b as to}from"./index.adbcc6f1.js";import{u as lo}from"./usePaging.6a6670f9.js";import{u as ao}from"./useDictOptions.2130484f.js";import{f as uo,a as so}from"./goods.46f37731.js";import"./lodash.0987e768.js";import{_ as no}from"./edit.vue_vue_type_script_setup_true_name_goodsEdit_lang.55329b02.js";import{_ as io}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.448d3c39.js";import{d as L,s as x,r as D,Z as ro,ap as po,o as r,c as mo,U as o,L as l,u as t,R as m,M as f,K as d,a as $,j as co,Q as R,n as E}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.6ad9ae30.js";import"./axios.fbe06b45.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.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"./nprogress.316b9a3d.js";import"./vue-clipboard3.f9a42727.js";import"./clipboard.bf37ca4b.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./dialogTableConfig.726c9c98.js";import"./goods_label.a18dcfab.js";import"./picker.cee998d0.js";import"./index.122ff80d.js";import"./index.a062bd93.js";import"./index.f9c4a330.js";import"./vuedraggable.4bfa7ed1.js";import"./vue.3bfea163.js";import"./sortablejs.2765eebe.js";import"./goodsclass.c924b0d4.js";import"./brand.e65f0c02.js";import"./unit.4691ab77.js";import"./warehouse.50e10ac0.js";const fo={class:"mt-4"},_o={class:"flex mt-4 justify-end"},Co=L({name:"goodsLists"}),fe=L({...Co,setup(wo){const _=x(),F=x(),C=D(!1),g=D(!1),i=ro({name:"",class:"",brand:"",unit:"",code:"",warehouse:"",retail_name:"",sort:""}),h=D([]),P=s=>{h.value=s.map(({id:e})=>e)},{dictData:k}=ao(""),{pager:c,getLists:w,resetParams:T,resetPage:U}=lo({fetchFun:so,params:i}),I=async()=>{var s;C.value=!0,await E(),(s=_.value)==null||s.open("add")},N=async s=>{var e,n;C.value=!0,await E(),(e=_.value)==null||e.open("edit"),(n=_.value)==null||n.setFormData(s)},S=async s=>{var e,n;g.value=!0,await E(),(e=F.value)==null||e.open("edit"),(n=F.value)==null||n.setFormData(s)},y=async s=>{await eo.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await uo({id:s}),w()};return w(),(s,e)=>{const n=M,v=O,p=Z,j=z,V=H,A=to,a=J,G=W,Q=X,q=oo,b=po("perms"),K=Y;return r(),mo("div",null,[o(V,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(j,{class:"mb-[-16px]",model:t(i),inline:""},{default:l(()=>[o(v,{label:"\u5546\u54C1\u540D\u79F0",prop:"name"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(i).name,"onUpdate:modelValue":e[0]||(e[0]=u=>t(i).name=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(v,{label:"\u5546\u54C1\u54C1\u724C",prop:"brand"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(i).brand,"onUpdate:modelValue":e[1]||(e[1]=u=>t(i).brand=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u54C1\u724C"},null,8,["modelValue"])]),_:1}),o(v,{label:"\u5546\u54C1\u5355\u4F4D",prop:"unit"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(i).unit,"onUpdate:modelValue":e[2]||(e[2]=u=>t(i).unit=u),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),o(v,null,{default:l(()=>[o(p,{type:"primary",onClick:t(U)},{default:l(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(p,{onClick:t(T)},{default:l(()=>[m("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),d(V,{class:"!border-none",shadow:"never"},{default:l(()=>[f((r()