2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
import{Y as R,$ as U,a0 as Y,Q as N,R as j,D as q,w as z,F as I,I as W,L as $,M as Q,N as X}from"./element-plus.61695454.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.33ea11c1.js";import{h as H}from"./goodsList.3d5a8cb4.js";import{B as E}from"./vue-echarts.60e3d927.js";import{u as J}from"./usePaging.d25ebf19.js";import{r as K}from"./index.1dd80bf2.js";import{d as Z,r as h,a0 as F,o as _,c as y,W as e,O as t,V as D,a7 as ee,M as V,T as C,u as p,P as te,a as oe,j as le}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./resize-detector.4e96b72b.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";function ae(v){return K.get({url:"/store_product/storeProduct/lists",params:v})}const ue={class:"flex mt-4 justify-end"},Qe=Z({__name:"index",setup(v){const s=h([]),l=F({timeType:"",order_id:"",pay_type:"",start_time:"",end_time:"",status:"",staff_id:""}),x=()=>{s.value.length&&(l.start_time=s.value[0],l.end_time=s.value[1])},S=()=>{s.value=[];for(let m in l)l[m]=""},b=h([]);(async()=>{let m=await H();b.value=m})();const T=F({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Sun","Sun","Sun","Sun","Sun","Sun"]},yAxis:{type:"value"},series:[{data:[120,200,150,80,70,110,130,200,130,400,100,200,200],type:"bar"}]}),P=F({title:{text:"\u4EA4\u6613\u7C7B\u578B",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"",type:"pie",radius:"50%",data:[{value:1048,name:"\u5F20\u67D0"},{value:735,name:"\u5218\u67D0"},{value:580,name:"\u8D75\u67D0"},{value:124,name:"\u7F57\u67D0"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),{pager:i,getLists:g,resetParams:se,resetPage:ne}=J({fetchFun:ae});return g(),(m,a)=>{const u=N,f=j,A=R,d=q,n=U,B=z,w=Y,L=I,c=W,r=$,k=Q,M=G,O=X;return _(),y(D,null,[e(c,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:l,"label-width":"80px"},{default:t(()=>[e(w,null,{default:t(()=>[e(n,{span:10},{default:t(()=>[e(d,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:t(()=>[e(f,{class:"mr-1",modelValue:l.timeType,"onUpdate:modelValue":a[0]||(a[0]=o=>l.timeType=o),placeholder:"\u65F6\u95F4\u7C7B\u578B\u7B5B\u9009"},{default:t(()=>[e(u,{label:"\u4EA4\u6613\u65F6\u95F4",value:0}),e(u,{label:"\u53D1\u8D27\u65F6\u95F4",value:0}),e(u,{label:"\u6838\u9500\u65F6\u95F4",value:0})]),_:1},8,["modelValue"]),e(A,{modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=o=>s.value=o),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])]),_:1})]),_:1}),e(n,{span:4},{default:t(()=>[e(d,{label:"\u5E97\u5458"},{default:t(()=>[e(f,{modelValue:l.staff_id,"onUpdate:modelValue":a[2]||(a[2]=o=>l.staff_id=o),placeholder:"\u8BF7\u9009\u62E9\u5E97\u5458"},{default:t(()=>[(_(!0),y(D,null,ee(b.value,(o,pe)=>(_(),V(u,{label:o.staff_name,value:o.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:4},{default:t(()=>[e(d,{label:"\u8BA2\u5355\u7C7B\u578B"},{default:t(()=>[e(f,{class:"mr-1",modelValue:l.timeType,"onUpdate:modelValue":a[3]||(a[3]=o=>l.timeType=o),placeholder:"\u9009\u62E9\u8BA2\u5355\u7C7B\u578B"},{default:t(()=>[e(u,{label:"\u4EA4\u6613\u65F6\u95F4",value:0}),e(u,{label:"\u53D1\u8D27\u65F6\u95F4",value:0}),e(u,{label:"\u6838\u9500\u65F6\u95F4",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(d,null,{default:t(()=>[e(B,{type:"primary",onClick:x},{default:t(()=>[C("\u67E5\u8BE2")]),_:1}),e(B,{onClick:S},{default:t(()=>[C("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(c,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(w,null,{default:t(()=>[e(n,{span:18},{default:t(()=>[e(p(E),{style:{height:"350px"},option:T,autoresize:!0},null,8,["option"])]),_:1}),e(n,{span:6},{default:t(()=>[e(p(E),{style:{height:"350px"},option:P,autoresize:!0},null,8,["option"])]),_:1})]),_:1})]),_:1}),te((_(),V(c,{class:"!border-none",shadow:"never"},{default:t(()=>[e(k,{data:p(i).lists},{default:t(()=>[e(r,{label:"\u8BA2\u5355\u53F7",prop:"progress","show-overflow-tooltip":""}),e(r,{label:"\u7528\u6237\u7C7B\u578B",prop:"progress","show-overflow-tooltip":""}),e(r,{label:"\u5B9E\u9645\u652F\u4ED8",prop:"progress","show-overflow-tooltip":""}),e(r,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"progress","show-overflow-tooltip":""}),e(r,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"progress","show-overflow-tooltip":""}),e(r,{label:"\u5E97\u5458\u540D\u79F0",prop:"progress","show-overflow-tooltip":""}),e(r,{label:"\u4E0B\u5355\u65F6\u95F4",prop:"progress","show-overflow-tooltip":""})]),_:1},8,["data"]),oe("div",ue,[e(M,{modelValue:p(i),"onUpdate:modelValue":a[4]||(a[4]=o=>le(i)?i.value=o:null),onChange:p(g)},null,8,["modelValue","onChange"])])]),_:1})),[[O,p(i).loading]])],64)}}});export{Qe as default};
|