multiStoreAdmin/build/store/assets/index.3aaadaad.js

2 lines
5.1 KiB
JavaScript

import{a0 as S,Y as w,I as V,N as b}from"./element-plus.9175fe58.js";import{c as L}from"./statistics.a53fc799.js";import{B as Y}from"./vue-echarts.60e3d927.js";import{d as k,r as _,a0 as g,i as M,o,c as r,W as n,O as l,T as y,V as v,a7 as x,a as t,U as c,P as N,M as j,u as O}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 P={class:"mr-2"},T=["src"],U={class:"text-info"},z={class:"text-6xl"},I={class:"flex justify-between"},R=t("span",null,"\u7D2F\u8BA1",-1),W={class:"mr-2"},q=["src"],G={class:"text-info"},H={class:"text-6xl"},J=k({name:"manageProjectLists"}),bt=k({...J,setup(K){const d=_(),f=_(!0),e=_({today:{},all:{},time:{}}),F=g([{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701552002039.png",title:"\u8425\u4E1A\u989D",value:()=>String(e.value.today.turnover_today||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u6536\u76CA",value:()=>String(e.value.today.profit_today||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u73B0\u91D1\u6536\u94F6\u91D1\u989D",value:()=>String(e.value.today.cash_today||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717018a22e1161.png",title:"\u4FDD\u8BC1\u91D1",value:()=>String(e.value.today.deposit_today||0),footer:"\u5F53\u4FDD\u8BC1\u91D1\u91D1\u989D\u8865\u7F34\u9F50\u540E\u4E0D\u518D\u6263\u9664"}]),B=g([{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701552002039.png",title:"\u8425\u4E1A\u989D",value:()=>String(e.value.all.turnover_all||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u6536\u76CA",value:()=>String(e.value.all.profit_all||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701fbb680115.png",title:"\u73B0\u91D1\u6536\u94F6\u91D1\u989D",value:()=>String(e.value.all.cash_all||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u6D88\u8017\u4F59\u989D",value:()=>String(e.value.all.cost_all||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717018a22e1161.png",title:"\u4FDD\u8BC1\u91D1",value:()=>String(e.value.all.deposit_all||0),footer:"\u5F53\u4FDD\u8BC1\u91D1\u91D1\u989D\u8865\u7F34\u9F50\u540E\u4E0D\u518D\u6263\u9664"}]),u=g({tooltip:{trigger:"axis"},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[{data:[],type:"line",smooth:!0,name:"\u8425\u4E1A\u989D"},{data:[],type:"line",smooth:!0,name:"\u6536\u76CA"},{data:[],type:"line",smooth:!0,name:"\u6210\u672C"},{data:[],type:"line",smooth:!0,name:"\u4FDD\u8BC1\u91D1"},{data:[],type:"line",smooth:!0,name:"\u73B0\u91D1"}]}),D=async()=>{let p=await L({month:d.value});e.value.all=p.all,e.value.today=p.today;let a=p.time;u.xAxis.data=Object.keys(a).reverse();for(let i in a)u.series[0].data.push(a[i].turnover_today),u.series[1].data.push(a[i].profit_today),u.series[2].data.push(a[i].cost_today),u.series[3].data.push(a[i].deposit_today),u.series[3].data.push(a[i].cash_today);f.value=!1},E=()=>{D()};return M(()=>{D()}),(p,a)=>{const i=S,m=V,C=w,A=b;return o(),r(v,null,[n(m,null,{header:l(()=>[y("\u4ECA\u65E5")]),default:l(()=>[n(i,{class:"flex"},{default:l(()=>[(o(!0),r(v,null,x(F,(s,h)=>(o(),r("div",{class:"flex",style:{flex:"1"},key:h},[t("div",P,[t("img",{class:"w-[50px] h-[50px] mr-2",src:s.src},null,8,T)]),t("div",null,[t("div",U,c(s.title),1),t("div",z,c(s.value()),1)])]))),128))]),_:1})]),_:1}),n(m,null,{header:l(()=>[t("div",I,[R,n(C,{modelValue:d.value,"onUpdate:modelValue":a[0]||(a[0]=s=>d.value=s),type:"month",placeholder:"\u9009\u62E9\u6708\u4EFD",onChange:E,"value-format":"YYYY-MM"},null,8,["modelValue"])])]),default:l(()=>[n(i,{class:"flex"},{default:l(()=>[(o(!0),r(v,null,x(B,(s,h)=>(o(),r("div",{class:"flex",style:{flex:"1"},key:h},[t("div",W,[t("img",{class:"w-[50px] h-[50px] mr-2",src:s.src},null,8,q)]),t("div",null,[t("div",G,c(s.title),1),t("div",H,c(s.value()),1)])]))),128))]),_:1})]),_:1}),N((o(),j(m,null,{header:l(()=>[y(" \u8425\u4E1A\u8D8B\u52BF ")]),default:l(()=>[n(O(Y),{style:{height:"350px"},option:u,autoresize:!0},null,8,["option"])]),_:1})),[[A,f.value]])],64)}}});export{bt as default};