2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
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.91c68cc0.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.d134accc.js";import{u as G}from"./usePaging.f8c888e4.js";import{u as H}from"./useDictOptions.1f11cf62.js";import{p as g}from"./workbench.ce9f7023.js";import"./lodash.4e6d2a38.js";import"./index.d12b3af4.js";import{u as J}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.e03c2e5b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./pinia.f3529286.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.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"}),Ge=E({...re,setup(le){const _=J();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)};H("");let d=1;_.query.page_no&&(d=parseInt(_.query.page_no));const M=l(g),{pager:s,getLists:u,resetParams:y,resetPage:x}=G({page:d,fetchFun:M.value,params:i});return l(!1),l("primary"),l(""),W(()=>{u()}),(c,t)=>{const B=U,f=q,w=z,V=A,P=R,h=S,a=j,L=$,T=K,I=Z,N=O;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(B,{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(x)},{default:n(()=>t[2]||(t[2]=[D("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(w,{onClick:o(y)},{default:n(()=>t[3]||(t[3]=[D("\u91CD\u7F6E")])),_:1},8,["onClick"]),e(V,{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(L,{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(I,{modelValue:o(s),"onUpdate:modelValue":t[1]||(t[1]=m=>C(s)?s.value=m:null),onChange:o(u)},null,8,["modelValue","onChange"])])]),_:1})),[[N,o(s).loading]])])}}});export{Ge as default};
|