multiStoreAdmin/dist/store/assets/index.42913200.js

2 lines
6.3 KiB
JavaScript

import{Y as P,_ as $,a6 as I,$ as N,D as z,F as U,I as W,b as j,L as q,M as Q}from"./element-plus.eb2e53ea.js";import{c as R}from"./statistics.7c8af1d9.js";import{B}from"./vue-echarts.60e3d927.js";import"./tradData.vue_vue_type_script_setup_true_name_manageProjectLists_lang.a820b411.js";import{d as k,r as w,a0 as g,i as X,o as n,c as A,W as t,O as e,T as f,U as G,M as h,V as b,a7 as H,a as J,u as x}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"./index.82c98f71.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"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./resize-detector.4e96b72b.js";import"./index.vue_vue_type_script_setup_true_lang.f75f9565.js";import"./usePaging.d25ebf19.js";import"./goodsList.d907e5a9.js";const K=["src"],Z=k({name:"manageProjectLists"}),Nt=k({...Z,setup(tt){const r=w([]),d=g({start_time:"",end_time:""}),v=()=>{d.start_time=r.value[0],d.end_time=r.value[1],M()};function D(){var a=new Date,l=new Date(a.getFullYear(),a.getMonth(),1),s=new Date(a.getFullYear(),a.getMonth()+1,0),p=y(l),i=y(s);return{firstDay:p,lastDay:i}}function y(a){var l=a.getFullYear(),s=(a.getMonth()+1).toString().padStart(2,"0"),p=a.getDate().toString().padStart(2,"0");return`${l}-${s}-${p}`}r.value[0]=D().firstDay,r.value[1]=D().lastDay;const u=w({order_amount:0}),S=g([{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701552002039.png",title:"\u6838\u9500\u8BA2\u5355\u91D1\u989D",value:()=>String(u.value.verify_amount)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u4F59\u989D\u6D88\u8D39\u91D1\u989D",value:()=>String(u.value.balance_amount)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u95E8\u5E97\u6536\u76CA\u91D1\u989D",value:()=>String(u.value.income_amount)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717018a22e1161.png",title:"\u7EBF\u4E0B\u6536\u94F6\u8BA2\u5355\u91D1\u989D",value:()=>String(u.value.cashier_amount)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717013a08c6793.png",title:"\u73B0\u91D1\u6536\u94F6\u8BA2\u5355\u91D1\u989D",value:()=>String(u.value.cash_amount)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701469b91377.png",title:"\u95E8\u5E97\u6210\u4EA4\u7528\u6237\u6570",value:()=>String(u.value.user_number)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701fbb680115.png",title:"\u95E8\u5E97\u8425\u4E1A\u989D",value:()=>String(u.value.order_amount)}]),_=g({tooltip:{trigger:"axis"},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0,name:"\u95E8\u5E97\u6536\u6B3E"},{data:[15,12,14,78,96,54,85],type:"line",smooth:!0,name:"\u65B0\u589E\u7528\u6237"}]}),E=g({title:{text:"\u4EA4\u6613\u7C7B\u578B",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{type:"pie",radius:"50%",data:[{value:1048,name:"\u7EBF\u4E0A\u6536\u94F6\u8BA2\u5355"},{value:735,name:"\u73B0\u91D1\u6536\u94F6\u8BA2\u5355"},{value:580,name:"\u6838\u9500\u8BA2\u5355"},{value:484,name:"\u5145\u503C\u8BA2\u5355"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),C=async()=>{let a=await R(d);u.value=a,_.xAxis.data=a.statistics.range,_.series[0].data=a.statistics.data.order_amount,_.series[1].data=a.statistics.data.user_number,E.series[0].data=a.pay_type},M=()=>{C()};return X(()=>{v()}),(a,l)=>{const s=P,p=z,i=$,T=U,m=W,Y=I,F=N,V=j,c=q,L=Q;return n(),A(b,null,[t(m,null,{default:e(()=>[f(G(u.value.order_amount)+" ",1),t(T,{class:"mb-[-16px]",model:d,"label-width":"80px"},{default:e(()=>[t(i,{span:6},{default:e(()=>[t(p,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:e(()=>[t(s,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=o=>r.value=o),type:"daterange","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",onChange:v},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),(n(),h(m,{key:r.value},{default:e(()=>[t(F,null,{default:e(()=>[(n(!0),A(b,null,H(S,(o,O)=>(n(),h(i,{span:6,class:"flex mb-7",key:O},{default:e(()=>[J("img",{class:"w-[50px] h-[50px] mr-2",src:o.src},null,8,K),t(Y,{title:o.title,value:o.value()},null,8,["title","value"])]),_:2},1024))),128))]),_:1})]),_:1})),(n(),h(m,{key:r.value},{header:e(()=>[f(" \u8425\u4E1A\u8D8B\u52BF ")]),default:e(()=>[t(x(B),{style:{height:"350px"},option:_,autoresize:!0},null,8,["option"])]),_:1})),(n(),h(F,{key:r.value,style:{height:"500px","overflow-y":"auto"}},{default:e(()=>[t(i,{span:14},{default:e(()=>[t(m,{class:"h-[100%]"},{header:e(()=>[f(" \u4EA4\u6613\u6570\u636E ")]),default:e(()=>[t(L,{data:u.value.order_list},{default:e(()=>[t(c,{label:"\u5934\u50CF",prop:"build_area_text","show-overflow-tooltip":""},{default:e(({row:o})=>[t(V,{style:{width:"50px",height:"50px"},src:o.avatar},null,8,["src"])]),_:1}),t(c,{label:"\u7528\u6237\u540D\u79F0",prop:"nickname","show-overflow-tooltip":""}),t(c,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),t(c,{label:"\u4EA4\u6613\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":""}),t(c,{label:"\u6210\u4EA4\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1})]),_:1}),t(i,{span:10},{default:e(()=>[t(m,null,{header:e(()=>[f(" \u4EA4\u6613\u7C7B\u578B ")]),default:e(()=>[t(x(B),{style:{height:"500px"},option:E,autoresize:!0},null,8,["option"])]),_:1})]),_:1})]),_:1}))],64)}}});export{Nt as default};