2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{Z as O,$ as M,a0 as N,R as Y,S as $,F as j,w as q,G as z,J as W,M as G,N as I,O as J}from"./element-plus.ab0703f2.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{h as X}from"./goodsList.6b3d0abb.js";import{B as E}from"./vue-echarts.eaf50cf8.js";import{u as Z}from"./usePaging.fff444fa.js";import{r as H}from"./index.5ab034a5.js";import{d as K,r as h,$ as F,o as _,c as y,W as e,Q as t,F as C,a9 as ee,P as D,U as V,u as p,R as te,a as oe,j as le}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./resize-detector.4e96b72b.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";function ae(v){return H.get({url:"/store_product/storeProduct/lists",params:v})}const ue={class:"flex mt-4 justify-end"},Je=K({__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 X();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}=Z({fetchFun:ae});return g(),(m,a)=>{const u=Y,f=$,A=O,d=j,n=M,B=q,w=N,k=z,c=W,r=G,L=I,R=Q,U=J;return _(),y(C,null,[e(c,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(k,{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(C,null,ee(b.value,(o,pe)=>(_(),D(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(()=>[V("\u67E5\u8BE2")]),_:1}),e(B,{onClick:S},{default:t(()=>[V("\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((_(),D(c,{class:"!border-none",shadow:"never"},{default:t(()=>[e(L,{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(R,{modelValue:p(i),"onUpdate:modelValue":a[4]||(a[4]=o=>le(i)?i.value=o:null),onChange:p(g)},null,8,["modelValue","onChange"])])]),_:1})),[[U,p(i).loading]])],64)}}});export{Je as default};
|