moreShopAdmin/build/admin/assets/index.529a8801.js

2 lines
4.4 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.a63a26dd.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.60d800b7.js";import{u as G}from"./usePaging.6a6670f9.js";import{u as H}from"./useDictOptions.b7746e6d.js";import{p as g}from"./workbench.f7733bdd.js";import"./lodash.2473fc51.js";import"./index.001143d7.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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.ebab5e6f.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.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};