import{V as z,D as N,w as R,F as S,K as U,G as j,b as K,H as $,I as G}from"./element-plus.8e273e86.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.729e5699.js";import{u as A}from"./usePaging.f8c888e4.js";import{u as J}from"./useDictOptions.0f4dac76.js";import{p as g}from"./workbench.e67eb9aa.js";import"./lodash.41b9567d.js";import"./index.2078eb25.js";import{u as O}from"./vue-router.10bd5b90.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 n,u as o,j as C,R as D,M as ee,K as oe,a as b}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.8afed1db.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";const te={class:"mt-4"},ae={class:"flex mt-4 justify-end"},re=E({name:"storeProductLists"}),Ae=E({...re,setup(le){const _=O();l(null);const r=l([new Date,new Date]),i=Q({start_time:p(r.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:p(r.value[1]).format("YYYY-MM-DD")+" 23:59:59",is_all:"",store_id:""}),F=()=>{r.value[0]&&r.value[1]?(i.start_time=p(r.value[0]).format("YYYY-MM-DD")+" 00:00:00",i.end_time=p(r.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(i.start_time="",i.end_time=""),u()};l(!1),l([]);const Y=l([]),k=c=>{Y.value=c.map(({id:t})=>t)};J("");let d=1;_.query.page_no&&(d=parseInt(_.query.page_no));const y=l(g),{pager:s,getLists:u,resetParams:M,resetPage:V}=A({page:d,fetchFun:y.value,params:i});return l(!1),l("primary"),l(""),W(()=>{u()}),(c,t)=>{const x=z,f=N,w=R,B=Z,P=S,h=U,a=j,I=K,T=$,L=H,q=G;return v(),X("div",null,[e(h,{class:"!border-none mb-4",shadow:"never"},{default:n(()=>[e(P,{class:"mb-[-16px]",model:o(i),inline:""},{default:n(()=>[e(f,{label:"",prop:"create_time"},{default:n(()=>[e(x,{modelValue:o(r),"onUpdate:modelValue":t[0]||(t[0]=m=>C(r)?r.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:n(()=>[e(w,{type:"primary",onClick:o(V)},{default:n(()=>t[2]||(t[2]=[D("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(w,{onClick:o(M)},{default:n(()=>t[3]||(t[3]=[D("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(B,{class:"ml-2.5","fetch-fun":o(g),params:o(i),"page-size":o(s).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),ee((v(),oe(h,{class:"!border-none",shadow:"never"},{default:n(()=>[b("div",te,[e(T,{data:o(s).lists,onSelectionChange:k},{default:n(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),e(a,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:n(({row:m})=>[e(I,{style:{width:"50px",height:"50px"},src:m.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(a,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(a,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(a,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(a,{label:"\u89C4\u683C",prop:"store_info","min-width":"100","show-overflow-tooltip":""}),e(a,{label:"\u6570\u91CF",prop:"cart_num","min-width":"100","show-overflow-tooltip":""}),e(a,{label:"\u5355\u4EF7",prop:"price","min-width":"120","show-overflow-tooltip":""}),e(a,{label:"\u603B\u4EF7",prop:"total_price","min-width":"120","show-overflow-tooltip":""})]),_:1},8,["data"])]),b("div",ae,[e(L,{modelValue:o(s),"onUpdate:modelValue":t[1]||(t[1]=m=>C(s)?s.value=m:null),onChange:o(u)},null,8,["modelValue","onChange"])])]),_:1})),[[q,o(s).loading]])])}}});export{Ae as default};
