multiStoreAdmin/build/store/assets/index.df5bb6c4.js

2 lines
5.4 KiB
JavaScript

import{$ as V,Y as L,U as N,I as Y,N as M}from"./element-plus.0a93cab1.js";import{c as P}from"./statistics.d77d2db0.js";import{B as j}from"./vue-echarts.60e3d927.js";import{a as O}from"./vue-router.43c06794.js";import{d as A,r as h,a0 as v,i as U,o,c as r,W as l,O as n,V as f,a7 as D,a as t,U as p,M as x,T as R,S as T,P as z,u as I}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.8ccde2ce.js";import"./lodash.a2abcd4b.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 W=t("span",{class:"text-2xl"},"\u4ECA\u65E5",-1),$={class:"mr-2"},q=["src"],G={class:"text-info"},H={class:"text-6xl"},J={class:"flex justify-between mb-4"},K=t("span",{class:"text-2xl"},"\u7D2F\u8BA1",-1),Q={class:"mr-2"},X=["src"],Z={class:"text-info"},tt={class:"text-6xl"},et=t("span",{class:"text-2xl"},"\u8425\u4E1A\u8D8B\u52BF",-1),st=A({name:"manageProjectLists"}),Ut=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 P({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 U(()=>{E()}),(c,s)=>{const i=N,y=V,m=Y,S=L,b=M;return o(),r(f,null,[l(m,{shadow:"never",class:"mb-4"},{default:n(()=>[W,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",$,[t("img",{class:"w-[50px] h-[50px] mr-2",src:a.src},null,8,q)]),t("div",null,[t("div",G,p(a.title),1),t("div",H,p(a.value()),1),a.title=="\u73B0\u91D1\u6536\u94F6\u8425\u4E1A\u989D"?(o(),x(i,{key:0,type:"primary",onClick:w},{default:n(()=>[R("\u5165\u8D26")]),_:1})):T("",!0)])]))),128))]),_:1})]),_:1}),l(m,{shadow:"never",class:"mb-4"},{default:n(()=>[t("div",J,[K,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",Q,[t("img",{class:"w-[50px] h-[50px] mr-2",src:a.src},null,8,X)]),t("div",null,[t("div",Z,p(a.title),1),t("div",tt,p(a.value()),1)])]))),128))]),_:1})]),_:1}),z((o(),x(m,{shadow:"never"},{default:n(()=>[et,l(I(j),{style:{height:"350px"},class:"mt-4",option:u,autoresize:!0},null,8,["option"])]),_:1})),[[b,g.value]])],64)}}});export{Ut as default};