2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
import{J as h,C as b}from"./element-plus.65d4f479.js";import{i as g}from"./echarts.b30ab882.js";import{c as x}from"./statistics.72c8100f.js";import{_ as P}from"./index.98acb17a.js";import{r as _,a0 as w,o as i,L as k,M as y,n as C,a,V as S,c as d,a8 as j,W as V,S as B,U as v,b7 as I,b6 as Y}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.7b7df559.js";import"./axios.d220de03.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.e6e08e6d.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.768d86ee.js";import"./color.7d9a7b23.js";import"./clone.e8568f48.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.289cebbb.js";import"./ms.a9ae1d6d.js";import"./nprogress.4217d235.js";import"./vue-clipboard3.1cf59ba2.js";import"./clipboard.c2aa2b65.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const D=o=>(I("data-v-bc9b6af6"),o=o(),Y(),o),E=D(()=>a("div",{class:"card-header"},[a("span",null,"\u9879\u76EE\u56DE\u6B3E")],-1)),L={style:{height:"40px"}},N={style:{display:"flex","justify-content":"space-around"}},A={key:0,id:"ProjectPayment",class:"chart"},F={__name:"ProjectPayment",setup(o){const n=_(new Date().getFullYear()),l=_(!0),s=w([{name:"\u5E74\u5EA6\u5F00\u7968\u91D1\u989D",value:3},{name:"\u5E74\u5EA6\u56DE\u6B3E\u91D1\u989D",value:3},{name:"\u5E74\u5EA6\u56DE\u6B3E\u8BA1\u5212\u91D1\u989D",value:3}]),m={show:!0,rich:{name:{}}},f=(e,t)=>{var p=document.getElementById(e),c=g(p);c.setOption(t)},u=async()=>{l.value=!1;let e=await x();l.value=!0,await C();var t={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[e.invoice_series.name,e.refund_plan_series.name,e.refund_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.refund_plan_series.name,type:"bar",label:m,emphasis:{focus:"series"},data:e.refund_plan_series.data,itemStyle:{normal:{label:{}}}},{name:e.refund_series.name,type:"bar",label:m,emphasis:{focus:"series"},data:e.refund_series.data,itemStyle:{normal:{label:{}}}}]};f("ProjectPayment",t),s[0].value=e.year_invoicing_amount,s[1].value=e.year_refund_amount,s[2].value=e.year_refund_plan_amount};return u(),(e,t)=>{const p=h,c=b;return i(),k(c,{style:{width:"49.9%"}},{header:y(()=>[E]),default:y(()=>[a("div",L,[S(p,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=r=>n.value=r),onChange:u,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:n.value},null,8,["modelValue","placeholder"])]),a("div",N,[(i(!0),d(V,null,j(s,r=>(i(),d("div",{key:r,style:{"text-align":"center"}},[a("div",null,v(r.value),1),a("div",null,v(r.name),1)]))),128))]),l.value?(i(),d("div",A)):B("",!0)]),_:1})}}},he=P(F,[["__scopeId","data-v-bc9b6af6"]]);export{he as default};
|