2024-08-24 17:22:00 +08:00
|
|
|
import{C as F,D as V,w as x,F as k,L as D,M as K,b as L,N as P,O as I}from"./element-plus.4a7d92a3.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{d as b,Z as U,i as M,o as c,c as T,U as e,L as t,u as o,aa as f,R as w,M as j,K as R,a as C,j as q}from"./@vue.18505fe0.js";import{u as O}from"./usePaging.6a6670f9.js";import{u as Z}from"./useDictOptions.42b81f9d.js";import{n as $}from"./workbench.1b7ca519.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.0599f61c.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 z={class:"mt-4"},A={class:"flex mt-4 justify-end"},G=b({name:"storeProductLists"}),Ke=b({...G,setup(H){const l=U({store_name:"",type:1});Z("");const{pager:s,getLists:p,resetParams:h,resetPage:i}=O({fetchFun:$,params:l});return M(()=>{p()}),(J,n)=>{const u=F,m=V,d=x,g=k,_=D,r=K,v=L,y=P,E=N,B=I;return c(),T("div",null,[e(_,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(g,{class:"mb-[-16px]",model:o(l),inline:""},{default:t(()=>[e(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:t(()=>[e(u,{class:"w-[280px]",onKeydown:f(o(i),["enter"]),modelValue:o(l).store_name,"onUpdate:modelValue":n[0]||(n[0]=a=>o(l).store_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["onKeydown","modelValue"])]),_:1}),e(m,{label:"\u7C7B\u578B",prop:"type"},{default:t(()=>[e(u,{class:"w-[280px]",onKeydown:f(o(i),["enter"]),modelValue:o(l).type,"onUpdate:modelValue":n[1]||(n[1]=a=>o(l).type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7C7B\u578B"},null,8,["onKeydown","modelValue"])]),_:1}),e(m,null,{default:t(()=>[e(d,{type:"primary",onClick:o(i)},{default:t(()=>[w("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:o(h)},{default:t(()=>[w("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),j((c(),R(_,{class:"!border-none",shadow:"never"},{default:t(()=>[C("div",z,[e(y,{data:o(s).lists},{default:t(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(r,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:a})=>[e(v,{style:{width:"50px",height:"50px"},src:a.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(r,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(r,{label:"\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""}),e(r,{label:"\u5907\u6CE8",prop:"remark","min-width":"200","show-overflow-tooltip":""})]),_:1},8,["data"])]),C("div",A,[e(E,{modelValue:o(s),"onUpdate:modelValue":n[2]||(n[2]=a=>q(s)?s.value=a:null),onChange:o(p)},null,8,["modelValue","onChange"])])]),_:1})),[[B,o(s).loading]])])}}});export{Ke as default};
|