2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{D as I,w as N,F as U,L as q,M as z,b as M,N as R,O as $}from"./element-plus.a63a26dd.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.1bdaca14.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.22edb8e7.js";import{u as O}from"./usePaging.6a6670f9.js";import{u as Z}from"./useDictOptions.2f6793f2.js";import{p as h}from"./workbench.44dbd22b.js";import"./lodash.2473fc51.js";import"./index.4a737b3c.js";import{u as A}from"./vue-router.101084e3.js";import{d as b,r as i,Z as G,i as H,o as g,c as J,U as o,L as a,u as t,R as C,M as Q,K as W,a as v,j as X}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.702ed870.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 Y={class:"mt-4"},oo={class:"flex mt-4 justify-end"},to=b({name:"storeProductLists"}),Ko=b({...to,setup(eo){const m=A();i(null);const n=G({start_time:"",end_time:"",is_all:"",store_id:""});i(!1),i([]);const E=i([]),F=d=>{E.value=d.map(({id:r})=>r)};Z("");let p=1;m.query.page_no&&(p=parseInt(m.query.page_no));const y=i(h),{pager:s,getLists:u,resetParams:x,resetPage:_}=O({page:p,fetchFun:y.value,params:n});return i(!1),i("primary"),i(""),H(()=>{u()}),(d,r)=>{const D=K,c=I,f=N,T=S,k=U,w=q,e=z,B=M,V=R,L=j,P=$;return g(),J("div",null,[o(w,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(k,{class:"mb-[-16px]",model:t(n),inline:""},{default:a(()=>[o(c,{label:"",prop:"create_time"},{default:a(()=>[o(D,{startTime:t(n).start_time,"onUpdate:startTime":r[0]||(r[0]=l=>t(n).start_time=l),endTime:t(n).end_time,"onUpdate:endTime":r[1]||(r[1]=l=>t(n).end_time=l),type:"daterange",onChange:t(_)},null,8,["startTime","endTime","onChange"])]),_:1}),o(c,null,{default:a(()=>[o(f,{type:"primary",onClick:t(_)},{default:a(()=>[C("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(f,{onClick:t(x)},{default:a(()=>[C("\u91CD\u7F6E")]),_:1},8,["onClick"]),o(T,{class:"ml-2.5","fetch-fun":t(h),params:t(n),"page-size":t(s).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),Q((g(),W(w,{class:"!border-none",shadow:"never"},{default:a(()=>[v("div",Y,[o(V,{data:t(s).lists,onSelectionChange:F},{default:a(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),o(e,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:l})=>[o(B,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),o(e,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),o(e,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),o(e,{label:"\u89C4\u683C",prop:"store_info","min-width":"100","show-overflow-tooltip":""}),o(e,{label:"\u6570\u91CF",prop:"cart_num","min-width":"100","show-overflow-tooltip":""}),o(e,{label:"\u5355\u4EF7",prop:"price","min-width":"120","show-overflow-tooltip":""}),o(e,{label:"\u603B\u4EF7",prop:"total_price","min-width":"120","show-overflow-tooltip":""})]),_:1},8,["data"])]),v("div",oo,[o(L,{modelValue:t(s),"onUpdate:modelValue":r[2]||(r[2]=l=>X(s)?s.value=l:null),onChange:t(u)},null,8,["modelValue","onChange"])])]),_:1})),[[P,t(s).loading]])])}}});export{Ko as default};
|