moreShopAdmin/build/admin/assets/index.42b7ac85.js

2 lines
6.2 KiB
JavaScript
Raw Normal View History

2024-09-02 16:03:23 +08:00
import{U as R,k as $,C as J,D as Z,J as G,K as H,w as Q,F as W,L as X,M as ee,b as oe,N as te,O as ae}from"./element-plus.4a7d92a3.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.290d95d5.js";import{d as Y,r as s,Z as ne,i as ue,o as c,c as y,U as e,L as l,u as o,aa as se,T as ie,a9 as pe,K as V,j as k,R as v,M as me,a as B}from"./@vue.18505fe0.js";import{u as de}from"./usePaging.6a6670f9.js";import{u as _e}from"./useDictOptions.9bf2b6e5.js";import{j as x,k as ce}from"./store_order.328007b4.js";import"./lodash.9dc701ad.js";import"./index.e5adcc1a.js";import{u as fe}from"./vue-router.101084e3.js";import{a as he}from"./system_store.03c6e4f4.js";import{h as f}from"./moment.40bc58bf.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.010b215f.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 we={class:"mt-4"},ge={class:"flex mt-4 justify-end"},ve=Y({name:"storeProductLists"}),uo=Y({...ve,setup(Ee){const E=fe();s(null);const u=s([new Date,new Date]),r=ne({start_time:f(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",end_time:f(u.value[1]).format("YYYY-MM-DD")+" 23:59:59",is_group:"",store_id:"",store_name:""}),M=()=>{u.value[0]&&u.value[1]?(r.start_time=f(u.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=f(u.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),h()},d=s(!1),C=s([]),T=(p="")=>{d.value=!0,he({name:p,page_size:50}).then(t=>{C.value=t.lists,setTimeout(()=>{d.value=!1},300)}).catch(t=>{setTimeout(()=>{d.value=!1},300)})},L=s([]),S=p=>{L.value=p.map(({id:t})=>t)};_e("");let F=1;E.query.page_no&&(F=parseInt(E.query.page_no));const{pager:i,getLists:h,resetParams:I,resetPage:_}=de({page:F,fetchFun:x,params:r}),U=()=>{ce(r).then(p=>{window.open(p.url,"_blank"),$.success("\u5BFC\u51FA\u6210\u529F")})};return s(!1),s("primary"),s(""),ue(()=>{h()}),(p,t)=>{const A=J,m=Z,w=G,b=H,P=R,g=Q,K=re,z=W,D=X,n=ee,N=oe,O=te,j=le,q=ae;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(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:l(()=>[e(A,{class:"w-[280px]",modelValue:o(r).store_name,"onUpdate:modelValue":t[0]||(t[0]=a=>o(r).store_name=a),onKeydown:se(o(_),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(m,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(b,{modelValue:o(r).store_id,"onUpdate:modelValue":t[1]||(t[1]=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(d),style:{width:"240px"},onChange:o(_)},{default:l(()=>[(c(!0),y(ie,null,pe(o(C),a=>(c(),V(w,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(m,{label:"\u7EDF\u8BA1",prop:"is_group"},{default:l(()=>[e(b,{modelValue:o(r).is_group,"onUpdate:modelValue":t[2]||(t[2]=a=>o(r).is_group=a),placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u7EDF\u8BA1",style:{width:"240px"},onChange:o(_)},{default:l(()=>[e(w,{label:"\u7EDF\u8BA1",valu