2 lines
6.7 KiB
JavaScript
2 lines
6.7 KiB
JavaScript
import{Y as I,$ as N,a0 as z,D as U,F as W,I as j,b as q,L as Q,M as R}from"./element-plus.9175fe58.js";import{d as X}from"./statistics.656d173b.js";import{B as k}from"./vue-echarts.60e3d927.js";import{d as T,r as S,a0 as g,i as G,o as s,c as _,W as t,O as e,M as y,a as r,V as x,a7 as C,U as v,T as E,u as M}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./axios.13991fdc.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.669f9987.js";import"./lodash.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.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";const H={class:"flex flex-wrap"},J={class:"mr-2"},K=["src"],Z={class:"text-info text-3xl"},tt={class:"text-3xl"},et={class:"flex flex-wrap"},at={class:"mr-2"},ut=["src"],rt={class:"text-info text-3xl"},ot={class:"text-3xl"},lt=T({name:"manageProjectLists"}),Wt=T({...lt,setup(st){const l=S([]),h=g({start_time:"",end_time:""}),w=()=>{h.start_time=l.value[0],h.end_time=l.value[1],V()};function F(){var a=new Date,i=new Date(a.getFullYear(),a.getMonth(),1),n=new Date(a.getFullYear(),a.getMonth()+1,0),p=B(i),c=B(n);return{firstDay:p,lastDay:c}}function B(a){var i=a.getFullYear(),n=(a.getMonth()+1).toString().padStart(2,"0"),p=a.getDate().toString().padStart(2,"0");return`${i}-${n}-${p}`}l.value[0]=F().firstDay,l.value[1]=F().lastDay;const o=S({order_amount:0}),b=g([{src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/c302520240618155729557.png",title:"\u95E8\u5E97\u6536\u6B3E\u91D1\u989D",value:()=>String(o.value.receipt_amount||0),row:1},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701fbb680115.png",title:"\u95E8\u5E97\u8425\u4E1A\u989D",value:()=>String(o.value.order_amount||0),row:1},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u95E8\u5E97\u6536\u76CA\u91D1\u989D",value:()=>String(o.value.income_amount||0),row:1},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701552002039.png",title:"\u6838\u9500\u8BA2\u5355\u91D1\u989D",value:()=>String(o.value.verify_amount||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717018a22e1161.png",title:"\u7EBF\u4E0B\u6536\u94F6\u8BA2\u5355\u91D1\u989D",value:()=>String(o.value.cashier_amount||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717013a08c6793.png",title:"\u73B0\u91D1\u6536\u94F6\u8BA2\u5355\u91D1\u989D",value:()=>String(o.value.cash_amount||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u4F59\u989D\u6D88\u8D39\u91D1\u989D",value:()=>String(o.value.balance_amount||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701469b91377.png",title:"\u95E8\u5E97\u6210\u4EA4\u7528\u6237\u6570",value:()=>String(o.value.user_number||0)}]),f=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"}]}),A=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)"}}}]}),Y=async()=>{let a=await X(h);o.value=a,f.xAxis.data=a.statistics.range,f.series[0].data=a.statistics.data.order_amount,f.series[1].data=a.statistics.data.user_number,A.series[0].data=a.pay_type},V=()=>{Y()};return G(()=>{w()}),(a,i)=>{const n=I,p=U,c=N,L=W,m=j,O=q,d=Q,P=R,$=z;return s(),_(x,null,[t(m,null,{default:e(()=>[t(L,{class:"mb-[-16px]",model:h,"label-width":"80px"},{default:e(()=>[t(c,{span:6},{default:e(()=>[t(p,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:e(()=>[t(n,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=u=>l.value=u),type:"daterange","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",onChange:w},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),(s(),y(m,{key:l.value},{default:e(()=>[r("div",H,[(s(!0),_(x,null,C(b.filter(u=>u.row==1),(u,D)=>(s(),_("div",{class:"w-1/5 flex mb-6",key:D},[r("div",J,[r("img",{class:"w-[50px] h-[50px] mr-2",src:u.src},null,8,K)]),r("div",null,[r("div",Z,v(u.title),1),r("div",tt,v(u.value()),1)])]))),128))]),r("div",et,[(s(!0),_(x,null,C(b.filter(u=>u.row!=1),(u,D)=>(s(),_("div",{class:"w-1/5 flex mb-6",key:D},[r("div",at,[r("img",{class:"w-[50px] h-[50px] mr-2",src:u.src},null,8,ut)]),r("div",null,[r("div",rt,v(u.title),1),r("div",ot,v(u.value()),1)])]))),128))])]),_:1})),(s(),y(m,{key:l.value},{header:e(()=>[E(" \u8425\u4E1A\u8D8B\u52BF ")]),default:e(()=>[t(M(k),{style:{height:"350px"},option:f,autoresize:!0},null,8,["option"])]),_:1})),(s(),y($,{key:l.value},{default:e(()=>[t(c,{span:14},{default:e(()=>[t(m,{class:"h-[100%]"},{header:e(()=>[E(" \u4EA4\u6613\u6570\u636E ")]),default:e(()=>[t(P,{data:o.value.order_list},{default:e(()=>[t(d,{label:"\u5934\u50CF",prop:"build_area_text","show-overflow-tooltip":""},{default:e(({row:u})=>[t(O,{style:{width:"50px",height:"50px"},src:u.avatar},null,8,["src"])]),_:1}),t(d,{label:"\u7528\u6237\u540D\u79F0",prop:"nickname","show-overflow-tooltip":""}),t(d,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),t(d,{label:"\u4EA4\u6613\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":""}),t(d,{label:"\u6210\u4EA4\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1})]),_:1}),t(c,{span:10},{default:e(()=>[t(m,{style:{height:"100%"}},{header:e(()=>[E(" \u4EA4\u6613\u7C7B\u578B ")]),default:e(()=>[t(M(k),{style:{height:"700px"},option:A,autoresize:!0},null,8,["option"])]),_:1})]),_:1})]),_:1}))],64)}}});export{Wt as default};
|