2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{a0 as V,Z as L,V as N,J as P,O as Y}from"./element-plus.ab0703f2.js";import{c as j}from"./statistics.86eef573.js";import{B as M}from"./vue-echarts.eaf50cf8.js";import{a as O}from"./vue-router.9ddb0e92.js";import{d as A,r as h,$ as v,i as R,o,c as r,W as l,Q as n,F as f,a9 as D,a as t,V as p,P as x,U as T,T as U,R as z,u as J}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.26dce67b.js";import"./lodash.3d784a58.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 Q=t("span",{class:"text-2xl"},"\u4ECA\u65E5",-1),W={class:"mr-2"},Z=["src"],$={class:"text-info"},q={class:"text-6xl"},G={class:"flex justify-between mb-4"},H=t("span",{class:"text-2xl"},"\u7D2F\u8BA1",-1),I={class:"mr-2"},K=["src"],X={class:"text-info"},tt={class:"text-6xl"},et=t("span",{class:"text-2xl"},"\u8425\u4E1A\u8D8B\u52BF",-1),st=A({name:"manageProjectLists"}),Tt=A({...st,setup(at){const C=O(),d=h(),g=h(!0),e=h({today:{},all:{},time:{}}),k=v([{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701552002039.png",title:"\u4ECA\u65E5\u95E8\u5E97\u8425\u4E1A\u989D",value:()=>String(e.value.today.turnover_today||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u4ECA\u65E5\u95E8\u5E97\u76C8\u5229\u989D",value:()=>String(e.value.today.profit_today||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u73B0\u91D1\u6536\u94F6\u8425\u4E1A\u989D",value:()=>String(e.value.today.cash_today||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717018a22e1161.png",title:"\u4ECA\u65E5\u8865\u7F34\u4FDD\u8BC1\u91D1",value:()=>String(e.value.today.deposit_today||0)}]),B=v([{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701552002039.png",title:"\u95E8\u5E97\u7D2F\u8BA1\u8425\u4E1A\u989D",value:()=>String(e.value.all.turnover_all||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u95E8\u5E97\u7D2F\u8BA1\u76C8\u5229\u989D",value:()=>String(e.value.all.profit_all||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701fbb680115.png",title:"\u95E8\u5E97\u7D2F\u8BA1\u73B0\u91D1\u6536\u6B3E\u8425\u4E1A\u989D",value:()=>String(e.value.all.cash_all||0)},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717018a22e1161.png",title:"\u95E8\u5E97\u7D2F\u8BA1\u5DF2\u4EA4\u4FDD\u8BC1\u91D1",value:()=>String(e.value.all.deposit_all||0)}]),u=v({tooltip:{trigger:"axis"},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[{data:[],type:"line",smooth:!0,name:"\u4ECA\u65E5\u95E8\u5E97\u8425\u4E1A\u989D"},{data:[],type:"line",smooth:!0,name:"\u4ECA\u65E5\u95E8\u5E97\u76C8\u5229\u989D"},{data:[],type:"line",smooth:!0,name:"\u6210\u672C"},{data:[],type:"line",smooth:!0,name:"\u4ECA\u65E5\u8865\u7F34\u4FDD\u8BC1\u91D1"},{data:[],type:"line",smooth:!0,name:"\u73B0\u91D1"}]}),E=async()=>{let c=await j({month:d.value});e.value.all=c.all,e.value.today=c.today;let s=c.time;u.xAxis.data=Object.keys(s).reverse();for(let i in s)u.series[0].data.push(s[i].turnover_today),u.series[1].data.push(s[i].profit_today),u.series[2].data.push(s[i].cost_today),u.series[3].data.push(s[i].deposit_today),u.series[3].data.push(s[i].cash_today);g.value=!1},F=()=>{E()},w=()=>{C.push("/finance/store_finance_bill?showPop=1")};return R(()=>{E()}),(c,s)=>{const i=N,y=V,m=P,S=L,b=Y;return o(),r(f,null,[l(m,{shadow:"never",class:"mb-4"},{default:n(()=>[Q,l(y,{class:"flex mt-4"},{default:n(()=>[(o(!0),r(f,null,D(k,(a,_)=>(o(),r("div",{class:"flex",style:{flex:"1"},key:_},[t("div",W,[t("img",{class:"w-[50px] h-[50px] mr-2",src:a.src},null,8,Z)]),t("div",null,[t("div",$,p(a.title),1),t("div",q,p(a.value()),1),a.title=="\u73B0\u91D1\u6536\u94F6\u8425\u4E1A\u989D"?(o(),x(i,{key:0,type:"primary",onClick:w},{default:n(()=>[T("\u5165\u8D26")]),_:1})):U("",!0)])]))),128))]),_:1})]),_:1}),l(m,{shadow:"never",class:"mb-4"},{default:n(()=>[t("div",G,[H,l(S,{modelValue:d.value,"onUpdate:modelValue":s[0]||(s[0]=a=>d.value=a),type:"month",placeholder:"\u9009\u62E9\u6708\u4EFD",onChange:F,"value-format":"YYYY-MM"},null,8,["modelValue"])]),l(y,{class:"flex"},{default:n(()=>[(o(!0),r(f,null,D(B,(a,_)=>(o(),r("div",{class:"flex",style:{flex:"1"},key:_},[t("div",I,[t("img",{class:"w-[50px] h-[50px] mr-2",src:a.src},null,8,K)]),t("div",null,[t("div",X,p(a.title),1),t("div",tt,p(a.value()),1)])]))),128))]),_:1})]),_:1}),z((o(),x(m,{shadow:"never"},{default:n(()=>[et,l(J(M),{style:{height:"350px"},class:"mt-4",option:u,autoresize:!0},null,8,["option"])]),_:1})),[[b,g.value]])],64)}}});export{Tt as default};
|