moreShopAdmin/build/admin/assets/index.3be8e946.js

2 lines
5.6 KiB
JavaScript
Raw Normal View History

2024-08-17 14:47:37 +08:00
import{U as R,J as j,K,D as $,w as J,F as Z,L as G,M as H,b as Q,N as W,O as X}from"./element-plus.4a7d92a3.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.97ab67a4.js";import{u as te}from"./usePaging.6a6670f9.js";import{u as ae}from"./useDictOptions.5aa90f33.js";import{h as F}from"./store_order.d690a7c3.js";import"./lodash.9dc701ad.js";import"./index.b71a9ad1.js";import{u as le}from"./vue-router.101084e3.js";import{a as re}from"./system_store.b3375c24.js";import{h as _}from"./moment.40bc58bf.js";import{d as x,r as i,Z as ne,i as se,o as c,c as y,U as e,L as l,u as o,T as ie,a9 as ue,K as Y,j as V,R as B,M as me,a as k}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.81e9d0ba.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 pe={class:"mt-4"},de={class:"flex mt-4 justify-end"},_e=x({name:"storeProductLists"}),oo=x({..._e,setup(ce){const g=le();i(null);const s=i([new Date,new Date]),r=ne({start_time:_(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:_(s.value[1]).format("YYYY-MM-DD")+" 23:59:59",is_group:"",store_id:""}),M=()=>{s.value[0]&&s.value[1]?(r.start_time=_(s.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=_(s.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),f()},m=i(!1),v=i([]),T=(p="")=>{m.value=!0,re({name:p,page_size:50}).then(t=>{v.value=t.lists,setTimeout(()=>{m.value=!1},300)}).catch(t=>{setTimeout(()=>{m.value=!1},300)})},L=i([]),S=p=>{L.value=p.map(({id:t})=>t)};ae("");let E=1;g.query.page_no&&(E=parseInt(g.query.page_no));const{pager:u,getLists:f,resetParams:P,resetPage:h}=te({page:E,fetchFun:F,params:r});return i(!1),i("primary"),i(""),se(()=>{f()}),(p,t)=>{const w=j,b=K,d=$,U=R,C=J,I=oe,z=Z,D=G,n=H,A=Q,N=W,q=ee,O=X;return c(),y("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(z,{class:"mb-[-16px]",model:o(r),inline:""},{default:l(()=>[e(d,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(b,{modelValue:o(r).store_id,"onUpdate:modelValue":t[0]||(t[0]=a=>o(r).store_id=a),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":T,loading:o(m),style:{width:"240px"},onChange:o(h)},{default:l(()=>[(c(!0),y(ie,null,ue(o(v),a=>(c(),Y(w,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(d,{label:"\u7EDF\u8BA1",prop:"is_group"},{default:l(()=>[e(b,{modelValue:o(r).is_group,"onUpdate:modelValue":t[1]||(t[1]=a=>o(r).is_group=a),placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7EDF\u8BA1",style:{width:"240px"},onChange:o(h)},{default:l(()=>[e(w,{label:"\u7EDF\u8BA1",value:"1"}),e(w,{label:"\u4E0D\u7EDF\u8BA1",value:"0"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(d,{label:"",prop:"create_time"},{default:l(()=>[e(U,{modelValue:o(s),"onUpdate:modelValue":t[2]||(t[2]=a=>V(s)?s.value=a:null),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:M},null,8,["modelValue"])]),_:1}),e(d,null,{default:l(()=>[e(C,{type:"primary",onClick