2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
|
import{J as N,K as q,D as O,w as R,F as $,L as j,M as K,b as J,N as Z,O as G}from"./element-plus.a63a26dd.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.6c46bb52.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.22edb8e7.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.53a4cb60.js";import{h as E}from"./store_order.40618489.js";import"./lodash.2473fc51.js";import"./index.4aa01551.js";import{u as ee}from"./vue-router.101084e3.js";import{a as oe}from"./system_store.b32e0b60.js";import{d as T,r as i,Z as te,i as ae,o as _,c as F,U as e,L as l,u as o,T as le,a9 as re,K as y,R as D,M as ne,a as B,j as ie}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.98b39e59.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 se={class:"mt-4"},me={class:"flex mt-4 justify-end"},pe=T({name:"storeProductLists"}),Xe=T({...pe,setup(ue){const f=ee();i(null);const r=te({start_time:"",end_time:"",is_group:"",store_id:""}),m=i(!1),h=i([]),x=(u="")=>{m.value=!0,oe({name:u,page_size:50}).then(t=>{h.value=t.lists,setTimeout(()=>{m.value=!1},300)}).catch(t=>{setTimeout(()=>{m.value=!1},300)})},V=i([]),k=u=>{V.value=u.map(({id:t})=>t)};Y("");let g=1;f.query.page_no&&(g=parseInt(f.query.page_no));const{pager:s,getLists:w,resetParams:L,resetPage:p}=X({page:g,fetchFun:E,params:r});return i(!1),i("primary"),i(""),ae(()=>{w()}),(u,t)=>{const c=N,v=q,d=O,S=W,b=R,U=Q,I=$,C=j,n=K,P=J,z=Z,A=H,M=G;return _(),F("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(I,{class:"mb-[-16px]",model:o(r),inline:""},{default:l(()=>[e(d,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(v,{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":x,loading:o(m),style:{width:"240px"},onChange:o(p)},{default:l(()=>[(_(!0),F(le,null,re(o(h),a=>(_(),y(c,{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(v,{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(p)},{default:l(()=>[e(c,{label:"\u7EDF\u8BA1",value:"1"}),e(c,{label:"\u4E0D\u7EDF\u8BA1",value:"0"})]),_:1},8,["modelValue","onChange"])]),_:1}),e(d,{label:"",prop:"create_time"},{default:l(()=>[e(S,{startTime:o(r).start_time,"onUpdate:startTime":t[2]||(t[2]=a=>o(r).start_time=a),endTime:o(r).end_time,"onUpdate:endTime":t[3]||(t[3]=a=>o(r).end_time=a),type:"daterange",onChange:o(p)},null,8,["startTime","endTime","onChange"])]),_:1}),e(d,null,{default:l(()=>[e(b,{type:"primary",onClick:o(p)},{default:l(()=>[D("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(b,{onClick:o(L)},{default:l(()=>[D("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(U,{class:"ml-2.5","fetch-fun":o(E),params:o(r),"page-size":o(s).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),ne((_(),y(C,{class:"
|