import{U,D as q,w as z,F as R,L as S,M as j,b as $,N as K,O}from"./element-plus.4a7d92a3.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.a87a15f2.js";import{u as G}from"./usePaging.6a6670f9.js";import{u as H}from"./useDictOptions.0cdc7c2e.js";import{p as g}from"./workbench.654435c2.js";import"./lodash.9dc701ad.js";import"./index.2a036a4c.js";import{u as J}from"./vue-router.101084e3.js";import{h as p}from"./moment.40bc58bf.js";import{d as E,r as l,Z as Q,i as W,o as v,c as X,U as e,L as r,u as o,j as C,R as D,M as ee,K as oe,a as b}from"./@vue.18505fe0.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.66d65d7d.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.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 te={class:"mt-4"},ae={class:"flex mt-4 justify-end"},le=E({name:"storeProductLists"}),Oe=E({...le,setup(re){const _=J();l(null);const a=l([new Date,new Date]),n=Q({start_time:p(a.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:p(a.value[1]).format("YYYY-MM-DD")+" 23:59:59",is_all:"",store_id:""}),F=()=>{a.value[0]&&a.value[1]?(n.start_time=p(a.value[0]).format("YYYY-MM-DD")+" 00:00:00",n.end_time=p(a.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(n.start_time="",n.end_time=""),u()};l(!1),l([]);const Y=l([]),k=d=>{Y.value=d.map(({id:s})=>s)};H("");let c=1;_.query.page_no&&(c=parseInt(_.query.page_no));const M=l(g),{pager:i,getLists:u,resetParams:y,resetPage:x}=G({page:c,fetchFun:M.value,params:n});return l(!1),l("primary"),l(""),W(()=>{u()}),(d,s)=>{const B=U,f=q,h=z,V=A,P=R,w=S,t=j,L=$,T=K,I=Z,N=O;return v(),X("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[e(P,{class:"mb-[-16px]",model:o(n),inline:""},{default:r(()=>[e(f,{label:"",prop:"create_time"},{default:r(()=>[e(B,{modelValue:o(a),"onUpdate:modelValue":s[0]||(s[0]=m=>C(a)?a.value=m:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:F},null,8,["modelValue"])]),_:1}),e(f,null,{default:r(()=>[e(h,{type:"primary",onClick:o(x)},{default:r(()=>[D("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(h,{onClick:o(y)},{default:r(()=>[D("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(V,{class:"ml-2.5","fetch-fun":o(g),params:o(n),"page-size":o(i).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),ee((v(),oe(w,{class:"!border-none",shadow:"never"},{default:r(()=>[b("div",te,[e(T,{data:o(i).lists,onSelectionChange:k},{default:r(()=>[e(t,{type:"selection",width:"55"}),e(t,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),e(t,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:r(({row:m})=>[e(L,{style:{width:"50px",height:"50px"},src:m.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(t,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(t,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(t,{label:"\u89C4\u683C",prop:"store_info","min-width":"100","show-overflow-tooltip":""}),e(t,{label:"\u6570\u91CF",prop:"cart_num","min-width":"100","show-overflow-tooltip":""}),e(t,{label:"\u5355\u4EF7",prop:"price","min-width":"120","show-overflow-tooltip":""}),e(t,{label:"\u603B\u4EF7",prop:"total_price","min-width":"120","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",ae,[e(I,{modelValue:o(i),"onUpdate:modelValue":s[1]||(s[1]=m=>C(i)?i.value=m:null),onChange:o(u)},null,8,["modelValue","onChange"])])]),_:1})),[[N,o(i).loading]])])}}});export{Oe as default};
