moreShopAdmin/build/admin/assets/index.31ad5714.js

2 lines
4.5 KiB
JavaScript
Raw Normal View History

2024-11-04 16:27:12 +08:00
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.2c2b06a1.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.7141614b.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.c8ba7368.js";import{u as G}from"./usePaging.6a6670f9.js";import{u as H}from"./useDictOptions.6b476fae.js";import{p as g}from"./workbench.b01e5fdb.js";import"./lodash.4e6d2a38.js";import"./index.2553fe38.js";import{u as J}from"./vue-router.101084e3.js";import{h as p}from"./moment.40bc58bf.js";import{d as E,r,Z as Q,i as W,o as v,c as X,U as e,L as l,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.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.eaceccd8.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.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.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.b0c09b66.js";const te={class:"mt-4"},ae={class:"flex mt-4 justify-end"},re=E({name:"storeProductLists"}),Ge=E({...re,setup(le){const _=J();r(null);const a=r([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()};r(!1),r([]);const Y=r([]),k=d=>{Y.value=d.map(({id:s})=>s)};H("");let c=1;_.query.page_no&&(c=parseInt(_.query.page_no));const M=r(g),{pager:i,getLists:u,resetParams:y,resetPage:x}=G({page:c,fetchFun:M.value,params:n});return r(!1),r("primary"),r(""),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:l(()=>[e(P,{class:"mb-[-16px]",model:o(n),inline:""},{default:l(()=>[e(f,{label:"",prop:"create_time"},{default:l(()=>[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:l(()=>[e(h,{type:"primary",onClick:o(x)},{default:l(()=>[D("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(h,{onClick:o(y)},{default:l(()=>[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:l(()=>[b("div",te,[e(T,{data:o(i).lists,onSelectionChange:k},{default:l(()=>[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:l(({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-widt