2 lines
6.7 KiB
JavaScript
2 lines
6.7 KiB
JavaScript
import{Z as $,$ as M,a0 as N,J as z,b as Q,M as R,N as j,O as q}from"./element-plus.ab0703f2.js";import{d as I}from"./statistics.792aec69.js";import{B as D}from"./vue-echarts.eaf50cf8.js";import{d as k,r as b,$ as d,i as J,o as l,c as _,W as t,Q as o,a as e,F as B,a9 as K,V as f,T as U,K as W,R as X,P as F,u as A}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"./index.5ab034a5.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"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./resize-detector.4e96b72b.js";const Y={class:"flex items-center"},Z=e("span",{class:"text-2xl"},"\u8425\u4E1A\u8D8B\u52BF",-1),G={class:"flex items-center text-sm ml-8"},H=e("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),tt={class:"flex flex-wrap box-border mt-4"},et={class:"flex"},at={class:"mr-2"},st=["src"],ot={class:"text-info"},nt={class:"text-6xl"},rt={key:0,class:"card-footer"},ut=e("span",{class:"text-2xl mb-2"},"\u8425\u4E1A\u8D8B\u52BF",-1),it=e("span",{class:"text-2xl"},"\u4EA4\u6613\u6570\u636E",-1),lt=e("span",{class:"text-2xl"},"\u4EA4\u6613\u7C7B\u578B",-1),ct=k({name:"manageProjectLists"}),Wt=k({...ct,setup(pt){const r=b([]),h=d({start_time:"",end_time:""}),g=()=>{h.start_time=r.value[0],h.end_time=r.value[1],V()};function v(){const a=new Date,i=y(a),p=y(a);return{firstDay:i,lastDay:p}}function y(a){const i=a.getFullYear(),p=(a.getMonth()+1).toString().padStart(2,"0"),u=a.getDate().toString().padStart(2,"0");return`${i}-${p}-${u}`}r.value[0]=v().firstDay,r.value[1]=v().lastDay;const s=b({order_amount:0,wechat_amount:0,alipay_amount:0,purchase_funds_amount:0,balance_amount:0,cash_amount:0,income_amount:0,user_number:0}),C=d([{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:"\u5FAE\u4FE1",value:()=>String(s.value.wechat_amount||0),row:1},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u652F\u4ED8\u5B9D",value:()=>String(s.value.alipay_amount||0),row:1},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u91C7\u8D2D\u6B3E",value:()=>String(s.value.purchase_funds_amount||0),row:1},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u4F59\u989D",value:()=>String(s.value.balance_amount||0),row:1},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717013a08c6793.png",title:"\u73B0\u91D1",value:()=>String(s.value.cash_amount||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u95E8\u5E97\u76C8\u5229\u989D",value:()=>String(s.value.income_amount||0),row:1},{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)}]),c=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"}]}),x=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()=>{const a=await I(h);s.value=a,c.xAxis.data=a.statistics.range,c.series[0].data=a.statistics.data.order_amount,c.series[1].data=a.statistics.data.user_number,x.series[0].data=a.pay_type},V=()=>{S()};return J(()=>{g()}),(a,i)=>{const p=$,u=z,T=Q,m=R,L=j,E=M,O=N,P=q;return l(),_(B,null,[t(u,{shadow:"never",class:"!border-none"},{default:o(()=>[e("div",Y,[Z,e("div",G,[H,t(p,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=n=>r.value=n),type:"daterange","range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","unlink-panels":"",onChange:g},null,8,["modelValue"])])])]),_:1}),e("div",tt,[(l(!0),_(B,null,K(C,(n,w)=>(l(),_("div",{class:"box-border w-1/5",key:w},[t(u,{class:W(["!border-none ml-4 mb-4 flex",{"!ml-0":w%5===0}]),style:{position:"relative"},shadow:"never"},{default:o(()=>[e("div",et,[e("div",at,[e("img",{class:"w-[50px] h-[50px] mr-2",src:n.src},null,8,st)]),e("div",null,[e("div",ot,f(n.title),1),e("div",nt,f(n.value()),1)])]),n.footer?(l(),_("div",rt,f(n.footer),1)):U("",!0)]),_:2},1032,["class"])]))),128))]),X((l(),F(u,{key:r.value,shadow:"never",class:"mb-4"},{default:o(()=>[ut,t(A(D),{style:{height:"350px"},option:c,autoresize:!0},null,8,["option"])]),_:1})),[[P,!c.xAxis.data.length]]),(l(),F(O,{key:r.value},{default:o(()=>[t(E,{span:14},{default:o(()=>[t(u,{class:"h-[100%]",shadow:"never"},{default:o(()=>[it,t(L,{data:s.value.order_list,class:"mt-4"},{default:o(()=>[t(m,{label:"\u5934\u50CF",prop:"build_area_text","show-overflow-tooltip":""},{default:o(({row:n})=>[t(T,{style:{width:"50px",height:"50px"},src:n.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(E,{span:10},{default:o(()=>[t(u,{style:{height:"100%"},shadow:"never",class:"ml-4"},{default:o(()=>[lt,t(A(D),{style:{height:"700px"},class:"mt-4",option:x,autoresize:!0},null,8,["option"])]),_:1})]),_:1})]),_:1}))],64)}}});export{Wt as default};
|