2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
import{J as f,C as g}from"./element-plus.4ff6f47d.js";import{i as w}from"./echarts.b30ab882.js";import{d as x}from"./statistics.4188fd1d.js";import{_ as b}from"./index.aaca920c.js";import{r as u,a0 as k,o as s,L as C,M as y,n as P,a,V as S,c as d,a8 as j,W as V,S as W,U as h,b7 as B,b6 as I}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.fc5568d8.js";import"./axios.5b893b79.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./lodash.8ea2174a.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const Y=r=>(B("data-v-e72af737"),r=r(),I(),r),D=Y(()=>a("div",{class:"card-header"},[a("span",null,"\u9879\u76EE\u4ED8\u6B3E\u7EDF\u8BA1")],-1)),E={style:{height:"40px"}},L={style:{display:"flex","justify-content":"space-around"}},N={key:0,id:"ProjectWithdraw",class:"chart"},A={__name:"ProjectWithdraw",setup(r){const n=u(new Date().getFullYear()),l=u(!0),i=k([{name:"\u5E74\u5EA6\u56DE\u7968\u91D1\u989D",value:3},{name:"\u5E74\u5EA6\u4ED8\u6B3E\u91D1\u989D",value:3},{name:"\u5E74\u5EA6\u4ED8\u6B3E\u8BA1\u5212\u91D1\u989D",value:3}]),m={show:!0,rich:{name:{}}},v=(e,t)=>{var p=document.getElementById(e),c=w(p);c.setOption(t)},_=async()=>{l.value=!1;let e=await x();l.value=!0,await P();var t={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[e.invoice_series.name,e.payment_plan_series.name,e.payment_series.name]},toolbox:{show:!0,orient:"vertical",left:"right",top:"center"},xAxis:[{type:"category",axisTick:{show:!1},data:e.column}],yAxis:[{type:"value"}],series:[{name:e.invoice_series.name,type:"bar",barGap:0,label:m,emphasis:{focus:"series"},data:e.invoice_series.data,itemStyle:{normal:{label:{}}}},{name:e.payment_plan_series.name,type:"bar",label:m,emphasis:{focus:"series"},data:e.payment_plan_series.data,itemStyle:{normal:{label:{}}}},{name:e.payment_series.name,type:"bar",label:m,emphasis:{focus:"series"},data:e.payment_series.data,itemStyle:{normal:{label:{}}}}]};v("ProjectWithdraw",t),i[0].value=e.year_invoicing_amount,i[1].value=e.year_payment_amount,i[2].value=e.year_payment_plan_amount};return _(),(e,t)=>{const p=f,c=g;return s(),C(c,{style:{width:"49.9%"}},{header:y(()=>[D]),default:y(()=>[a("div",E,[S(p,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=o=>n.value=o),onChange:_,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:n.value},null,8,["modelValue","placeholder"])]),a("div",L,[(s(!0),d(V,null,j(i,o=>(s(),d("div",{key:o,style:{"text-align":"center"}},[a("div",null,h(o.value),1),a("div",null,h(o.name),1)]))),128))]),l.value?(s(),d("div",N)):W("",!0)]),_:1})}}},fe=b(A,[["__scopeId","data-v-e72af737"]]);export{fe as default};
|