multiStoreAdmin/build/store/assets/index.8d4ed8bd.js

2 lines
6.7 KiB
JavaScript

import{Y as I,$ as z,a0 as U,D as j,F as q,I as Q,b as R,L as W,M as X,N as G}from"./element-plus.9175fe58.js";import{d as H}from"./statistics.a53fc799.js";import{B as k}from"./vue-echarts.60e3d927.js";import{d as T,r as S,a0 as h,i as J,o as i,c as d,W as t,O as e,M as y,a as o,V as E,a7 as C,U as v,P as K,T as x,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.026c5631.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 Z={class:"flex flex-wrap"},tt={class:"mr-2"},et=["src"],at={class:"text-info"},ut={class:"text-6xl"},ot={class:"flex flex-wrap"},rt={class:"mr-2"},st=["src"],it={class:"text-info"},lt={class:"text-6xl"},nt=T({name:"manageProjectLists"}),Rt=T({...nt,setup(pt){const s=S([]),_=h({start_time:"",end_time:""}),w=()=>{_.start_time=s.value[0],_.end_time=s.value[1],L()};function B(){var u=new Date,l=F(u),p=F(u);return{firstDay:l,lastDay:p}}function F(u){var l=u.getFullYear(),p=(u.getMonth()+1).toString().padStart(2,"0"),f=u.getDate().toString().padStart(2,"0");return`${l}-${p}-${f}`}s.value[0]=B().firstDay,s.value[1]=B().lastDay;const r=S({order_amount:0,receipt_amount:0,income_amount:0,verify_amount:0,cashier_amount:0,balance_amount:0,user_number:0,cash_amount:0}),b=h([{src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/attach/c302520240618155729557.png",title:"\u95E8\u5E97\u6536\u6B3E\u91D1\u989D",value:()=>String(r.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(r.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(r.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(r.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(r.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(r.value.cash_amount||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u4F59\u989D\u6D88\u8D39\u91D1\u989D",value:()=>String(r.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(r.value.user_number||0)}]),n=h({tooltip:{trigger:"axis"},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[{data:[],type:"line",smooth:!0,name:"\u95E8\u5E97\u6536\u6B3E"},{data:[],type:"line",smooth:!0,name:"\u65B0\u589E\u7528\u6237"}]}),A=h({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)"}}}]}),V=async()=>{let u=await H(_);r.value=u,n.xAxis.data=u.statistics.range,n.series[0].data=u.statistics.data.order_amount,n.series[1].data=u.statistics.data.user_number,A.series[0].data=u.pay_type},L=()=>{V()};return J(()=>{w()}),(u,l)=>{const p=I,f=j,g=z,Y=q,c=Q,O=R,m=W,P=X,N=U,$=G;return i(),d(E,null,[t(c,null,{default:e(()=>[t(Y,{class:"mb-[-16px]",model:_,"label-width":"80px"},{default:e(()=>[t(g,{span:6},{default:e(()=>[t(f,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:e(()=>[t(p,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=a=>s.value=a),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}),(i(),y(c,{key:s.value},{default:e(()=>[o("div",Z,[(i(!0),d(E,null,C(b.filter(a=>a.row==1),(a,D)=>(i(),d("div",{class:"w-1/5 flex mb-6",key:D},[o("div",tt,[o("img",{class:"w-[50px] h-[50px] mr-2",src:a.src},null,8,et)]),o("div",null,[o("div",at,v(a.title),1),o("div",ut,v(a.value()),1)])]))),128))]),o("div",ot,[(i(!0),d(E,null,C(b.filter(a=>a.row!=1),(a,D)=>(i(),d("div",{class:"w-1/5 flex mb-6",key:D},[o("div",rt,[o("img",{class:"w-[50px] h-[50px] mr-2",src:a.src},null,8,st)]),o("div",null,[o("div",it,v(a.title),1),o("div",lt,v(a.value()),1)])]))),128))])]),_:1})),K((i(),y(c,{key:s.value},{header:e(()=>[x(" \u8425\u4E1A\u8D8B\u52BF ")]),default:e(()=>[t(M(k),{style:{height:"350px"},option:n,autoresize:!0},null,8,["option"])]),_:1})),[[$,!n.xAxis.data.length]]),(i(),y(N,{key:s.value},{default:e(()=>[t(g,{span:14},{default:e(()=>[t(c,{class:"h-[100%]"},{header:e(()=>[x(" \u4EA4\u6613\u6570\u636E ")]),default:e(()=>[t(P,{data:r.value.order_list},{default:e(()=>[t(m,{label:"\u5934\u50CF",prop:"build_area_text","show-overflow-tooltip":""},{default:e(({row:a})=>[t(O,{style:{width:"50px",height:"50px"},src:a.avatar},null,8,["src"])]),_:1}),t(m,{label:"\u7528\u6237\u540D\u79F0",prop:"nickname","show-overflow-tooltip":""}),t(m,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),t(m,{label:"\u4EA4\u6613\u91D1\u989D",prop:"pay_price","show-overflow-tooltip":""}),t(m,{label:"\u6210\u4EA4\u65F6\u95F4",prop:"pay_time","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1})]),_:1}),t(g,{span:10},{default:e(()=>[t(c,{style:{height:"100%"}},{header:e(()=>[x(" \u4EA4\u6613\u7C7B\u578B ")]),default:e(()=>[t(M(k),{style:{height:"700px"},option:A,autoresize:!0},null,8,["option"])]),_:1})]),_:1})]),_:1}))],64)}}});export{Rt as default};