multiStoreAdmin/build/store/assets/index.6f7bf48e.js

2 lines
6.6 KiB
JavaScript

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