2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
|
import{D as M,w as R,F as $,L as j,M as A,b as S,N as G,O as K}from"./element-plus.4a7d92a3.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.38a42296.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.77dd59e0.js";import{u as H}from"./usePaging.6a6670f9.js";import{u as J}from"./useDictOptions.a7eaac9b.js";import{p as u}from"./workbench.c80c87ff.js";import"./lodash.9dc701ad.js";import"./index.49a437ff.js";import{u as W}from"./vue-router.101084e3.js";import{d as k,r as s,Z as X,i as Y,o as w,c as ee,U as e,L as a,u as t,R as _,M as te,K as E,a as F,Q as oe,j as ae}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.254eddb3.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 re={class:"mt-4"},ie={class:"flex mt-4 justify-end"},le=k({name:"storeProductLists"}),Qe=k({...le,setup(ne){const g=W();s(null);const r=X({start_time:"",end_time:"",is_all:""}),D=s([]),B=C=>{D.value=C.map(({id:i})=>i)};J("");let v=1;g.query.page_no&&(v=parseInt(g.query.page_no));const c=s(u),{pager:n,getLists:m,resetParams:x,resetPage:d}=H({page:v,fetchFun:c.value,params:r});s(!1);const f=s("primary"),h=s(""),T=()=>{r.is_all="",f.value="primary",h.value="",c.value=u,m()},V=()=>{r.is_all="1",f.value="",h.value="primary",c.value=u,d(),m()};return Y(()=>{m()}),(C,i)=>{const L=Z,b=M,p=R,N=Q,P=$,y=j,o=A,I=S,U=G,q=O,z=K;return w(),ee("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(P,{class:"mb-[-16px]",model:t(r),inline:""},{default:a(()=>[e(b,{label:"",prop:"create_time"},{default:a(()=>[e(L,{startTime:t(r).start_time,"onUpdate:startTime":i[0]||(i[0]=l=>t(r).start_time=l),endTime:t(r).end_time,"onUpdate:endTime":i[1]||(i[1]=l=>t(r).end_time=l),type:"daterange",onChange:t(d)},null,8,["startTime","endTime","onChange"])]),_:1}),e(b,null,{default:a(()=>[e(p,{type:"primary",onClick:t(d)},{default:a(()=>[_("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:t(x)},{default:a(()=>[_("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(N,{class:"ml-2.5","fetch-fun":t(u),params:t(r),"page-size":t(n).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),te((w(),E(y,{class:"!border-none",shadow:"never"},{default:a(()=>[e(p,{type:t(f),onClick:T},{default:a(()=>[_(" \u5408\u5E76\u7EDF\u8BA1 ")]),_:1},8,["type"]),e(p,{type:t(h),onClick:V},{default:a(()=>[_(" \u7EC6\u5206\u7EDF\u8BA1 ")]),_:1},8,["type"]),F("div",re,[e(U,{data:t(n).lists,onSelectionChange:B},{default:a(()=>[e(o,{type:"selection",width:"55"}),e(o,{label:"\u5546\u54C1ID",prop:"product_id","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:l})=>[e(I,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),t(r).is_all==1?(w(),E(o,{key:0,label:"\u95E8\u5E97",prop:"system_store","min-width":"200","show-overflow-tooltip":""})):oe("",!0),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(o,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(o,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":
|