2 lines
4.3 KiB
JavaScript
2 lines
4.3 KiB
JavaScript
|
import{C as P,D as U,J as I,K as M,w as S,F as j,L as O,M as R,b as q,N as z,O as J}from"./element-plus.4a7d92a3.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{d as F,Z,r as v,i as $,o as i,c as C,U as e,L as l,u as o,aa as b,K as d,T as A,a9 as G,Q as H,R as y,M as W,a as E,j as X}from"./@vue.18505fe0.js";import{u as Y}from"./usePaging.6a6670f9.js";import{u as ee}from"./useDictOptions.c2e674dc.js";import{n as oe}from"./workbench.bda501b3.js";import{a as te}from"./system_store.f26016bb.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.e2348f6b.js";import"./lodash.9dc701ad.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const le={class:"mt-4"},ae={class:"flex mt-4 justify-end"},re=F({name:"storeProductLists"}),ze=F({...re,setup(ne){const r=Z({store_name:"",type:1,store_id:""}),u=v(!1),_=v([]),V=(f="")=>{u.value=!0,te({name:f,page_size:50}).then(a=>{_.value=a.lists,setTimeout(()=>{u.value=!1},300)}).catch(a=>{setTimeout(()=>{u.value=!1},300)})};ee("");const{pager:s,getLists:c,resetParams:B,resetPage:m}=Y({fetchFun:oe,params:r});return $(()=>{c()}),(f,a)=>{const w=P,p=U,k=I,x=M,h=S,D=j,g=O,n=R,L=q,K=z,T=Q,N=J;return i(),C("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(D,{class:"mb-[-16px]",model:o(r),inline:""},{default:l(()=>[e(p,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:l(()=>[e(w,{class:"w-[280px]",onKeydown:b(o(m),["enter"]),modelValue:o(r).store_name,"onUpdate:modelValue":a[0]||(a[0]=t=>o(r).store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(p,{label:"\u7C7B\u578B",prop:"type"},{default:l(()=>[e(w,{class:"w-[280px]",onKeydown:b(o(m),["enter"]),modelValue:o(r).type,"onUpdate:modelValue":a[1]||(a[1]=t=>o(r).type=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7C7B\u578B"},null,8,["onKeydown","modelValue"])]),_:1}),o(r).type==2?(i(),d(p,{key:0,label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(x,{modelValue:o(r).store_id,"onUpdate:modelValue":a[2]||(a[2]=t=>o(r).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":V,loading:o(u),style:{width:"240px"},onChange:o(m)},{default:l(()=>[(i(!0),C(A,null,G(o(_),t=>(i(),d(k,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1})):H("",!0),e(p,null,{default:l(()=>[e(h,{type:"primary",onClick:o(m)},{default:l(()=>[y("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(h,{onClick:o(B)},{default:l(()=>[y("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),W((i(),d(g,{class:"!border-none",shadow:"never"},{default:l(()=>[E("div",le,[e(K,{data:o(s).lists},{default:l(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(n,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:l(({row:t})=>[e(L,{style:{width:"50px",height:"50px"},src:t.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(n,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(n,{label:"\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""}),e(n,
|