2 lines
3.6 KiB
JavaScript
2 lines
3.6 KiB
JavaScript
import{J as b,C as g}from"./element-plus.517d4382.js";import{i as x}from"./echarts.b30ab882.js";import{d as k}from"./statistics.4549c6cf.js";import{_ as C}from"./index.8b1962e9.js";import{r as d,a0 as P,a5 as S,o as s,L as y,M as u,n as j,a,V,c as v,a8 as W,W as B,S as I,U as h,b7 as Y,b6 as D}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.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.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const E=n=>(Y("data-v-48d231c2"),n=n(),D(),n),L=E(()=>a("div",{class:"card-header"},[a("span",null,"\u9879\u76EE\u4ED8\u6B3E\u7EDF\u8BA1")],-1)),N={style:{height:"40px"}},q={style:{display:"flex","justify-content":"space-around"}},A={key:0,id:"ProjectWithdraw",class:"chart"},F={__name:"ProjectWithdraw",setup(n){const o=d(new Date().getFullYear()),l=d(!0),i=P([{name:"\u5E74\u5EA6\u56DE\u7968\u91D1\u989D",value:0,url:"/construction/finance/payment/finance_receipt_record"},{name:"\u5E74\u5EA6\u4ED8\u6B3E\u91D1\u989D",value:0,url:"/construction/finance/payment/finance_payment_plan"},{name:"\u5E74\u5EA6\u4ED8\u6B3E\u8BA1\u5212\u91D1\u989D",value:0,url:"/construction/finance/payment/finance_payment_plan"}]),p={show:!0,rich:{name:{}}},f=(e,r)=>{var m=document.getElementById(e),c=x(m);c.setOption(r)},_=async()=>{l.value=!1;let e=await k({year:o.value});l.value=!0,await j();var r={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:p,emphasis:{focus:"series"},data:e.invoice_series.data,itemStyle:{normal:{label:{}}}},{name:e.payment_plan_series.name,type:"bar",label:p,emphasis:{focus:"series"},data:e.payment_plan_series.data,itemStyle:{normal:{label:{}}}},{name:e.payment_series.name,type:"bar",label:p,emphasis:{focus:"series"},data:e.payment_series.data,itemStyle:{normal:{label:{}}}}]};f("ProjectWithdraw",r),i[0].value=e.year_invoicing_amount,i[1].value=e.year_payment_amount,i[2].value=e.year_payment_plan_amount};return _(),(e,r)=>{const m=b,c=S("router-link"),w=g;return s(),y(w,{style:{width:"49.9%"}},{header:u(()=>[L]),default:u(()=>[a("div",N,[V(m,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=t=>o.value=t),onChange:_,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:o.value},null,8,["modelValue","placeholder"])]),a("div",q,[(s(!0),v(B,null,W(i,t=>(s(),y(c,{to:{path:t.url,query:t.query?{year:o.value}:null},key:t,class:"header-btn"},{default:u(()=>[a("div",null,[a("div",null,h(t.value),1),a("div",null,h(t.name),1)])]),_:2},1032,["to"]))),128))]),l.value?(s(),v("div",A)):I("",!0)]),_:1})}}},be=C(F,[["__scopeId","data-v-48d231c2"]]);export{be as default};
|