moreShopAdmin/build/admin/assets/import.eec63978.js

2 lines
8.8 KiB
JavaScript
Raw Normal View History

2024-06-18 18:49:49 +08:00
import{k as eo,C as to,D as M,w as O,F as j,M as G,b as q,N as H,O as lo,G as uo,H as ao,v as so,I as no,L as io}from"./element-plus.ea2cdc63.js";import{_ as ro}from"./index.vue_vue_type_script_setup_true_lang.9926caf5.js";import{d as F,Z,r as w,o as C,c as K,U as o,L as e,u as s,aa as po,R as p,M as A,a as h,j as y,s as mo,ap as _o,K as U,S as co}from"./@vue.18505fe0.js";import{u as fo}from"./usePaging.6a6670f9.js";import{u as wo}from"./useDictOptions.f2099dca.js";import{d as ho,e as vo,_ as Eo}from"./store_product.dbed47e7.js";import"./lodash.60201f64.js";import{w as bo}from"./index.88dad86e.js";import{a as Co}from"./vue-router.101084e3.js";import{a as go}from"./store_product_unit.6a17892d.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./system_store.cf165f8c.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const Bo={class:"mt-4"},Do={class:"flex mt-4 justify-end"},yo=F({name:"systemStoreLists"}),Fo=F({...yo,emits:["onBindStore"],setup(z,{emit:$}){const b=Z({store_name:""}),g=w([]),k=E=>{g.value=E.map(({id:d})=>d)};wo("");const{pager:r,getLists:m,resetParams:x,resetPage:B}=fo({fetchFun:ho,params:b});m();const v=$,_=()=>{let E=r.lists.filter(d=>g.value.includes(d.id));if(!E.length)return eo.error("\u8BF7\u5148\u9009\u62E9\u95E8\u5E97");v("onBindStore",E)};return(E,d)=>{const V=to,S=M,c=O,L=j,i=G,n=q,t=H,u=ro,a=lo;return C(),K("div",null,[o(L,{class:"mb-[-16px]",model:s(b),inline:""},{default:e(()=>[o(S,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:e(()=>[o(V,{class:"w-[200px]",modelValue:s(b).store_name,"onUpdate:modelValue":d[0]||(d[0]=f=>s(b).store_name=f),onKeydown:po(s(B),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),o(S,null,{default:e(()=>[o(c,{type:"primary",onClick:s(B)},{default:e(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(c,{onClick:s(x)},{default:e(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),A((C(),K("div",Bo,[o(t,{data:s(r).lists,onSelectionChange:k,height:300},{default:e(()=>[o(i,{type:"selection",width:"55"}),o(i,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),o(i,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:e(({row:f})=>[o(n,{style:{width:"50px",height:"50px"},src:f.image},null,8,["src"])]),_:1}),o(i,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),o(i,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),o(i,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),o(i,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","min-width":"100","show-overflow-tooltip":""}),o(i,{label:"\u6210\u672C\u4EF7",prop:"cost","min-width":"100","show-overflow-tooltip":""}),o(i,{label:"\u4F9B\u8D27\u4EF7",prop:"purchase","min-width":"100","show-overflow-tooltip":""}),o(i,{label:"\u552E\u5356\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""}),o(i,{label:"\u5151\u6362\u5E93\u5B58",prop:"swap","min-width":"100","show-overflow-tooltip":""}),o(i,{label:"\u9500\u91CF",prop:"sales","min-width":"100","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[a,s(r).loading]]),h("div",Do,[o(u,{modelValue:s(r),"onUpdate:modelValue":d[1]||(d[1]=f=>y(r)?r.value=f:null),onChange:s(m)},null,8,["modelVa