No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
5.5KB

  1. import{L as U,i as w}from"./index.f55de596.js";import{s as q,d as z,r as x,o as H,c,e as J,f as K,h as n,i as r,g as a,t as y,F as Q}from"./index.149277cd.js";const X=C=>q.get("/api/v1/statistics/fund",{params:C}),Z={class:"flex justify-between text-center mt-24"},$={class:"flex-1"},tt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},et={class:"flex-1"},at={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ot={class:"flex-1"},lt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},nt={class:"flex-1"},st={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},rt={class:"flex-1"},it={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},dt=z({name:"projectFundStatistics"}),ut=Object.assign(dt,{setup(C){const h=x({}),F=x(),T=x(),k=x();let D,Y,A;const N=new U(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),e=x(),R=async()=>{const i=await X({year:h.value.projectYear});e.value=i.data,B(),S(),G()},B=()=>{var t,s;D||(D=w(F.value));const i={tooltip:{show:!0,trigger:"axis",valueFormatter:l=>l},grid:{left:60,bottom:30,top:10,right:30},xAxis:{type:"category",data:(t=e.value)==null?void 0:t.departmentTop10.map(l=>l.name),axisLabel:{align:"center",interval:0,rotate:20}},yAxis:{name:"",type:"value"},color:N,series:[{name:"\u6838\u51CF\u8D44\u91D1",data:(s=e.value)==null?void 0:s.departmentTop10.map(l=>l.amount),type:"bar",barWidth:20}]};D.setOption(i)},S=()=>{var t,s,l,d;Y||(Y=w(T.value));const i={tooltip:{show:!0,trigger:"axis",valueFormatter:o=>o},grid:{bottom:42,top:10,right:30},xAxis:{type:"category",data:(s=(t=e.value)==null?void 0:t.threeYearsDeduction)==null?void 0:s.map(o=>o.name),axisLabel:{interval:0,hideOverlap:!1}},yAxis:{name:"",type:"value"},color:N,series:[{name:"\u6838\u51CF\u8D44\u91D1",data:(d=(l=e.value)==null?void 0:l.threeYearsDeduction)==null?void 0:d.map(o=>o.amount),type:"line",areaStyle:{}}]};Y.setOption(i)},G=()=>{var d,o,p,b,u,f,m,v,_,g,j,I,M,O,L,V,E,W;A||(A=w(k.value));const i=[((o=(d=e.value)==null?void 0:d.planDeduction)==null?void 0:o.approve)||0,((b=(p=e.value)==null?void 0:p.approvalDeduction)==null?void 0:b.approve)||0,((f=(u=e.value)==null?void 0:u.contractDeduction)==null?void 0:f.approve)||0],t=[((v=(m=e.value)==null?void 0:m.planDeduction)==null?void 0:v.approval)||0,((g=(_=e.value)==null?void 0:_.approvalDeduction)==null?void 0:g.approval)||0,((I=(j=e.value)==null?void 0:j.contractDeduction)==null?void 0:I.approval)||0],s=[((O=(M=e.value)==null?void 0:M.planDeduction)==null?void 0:O.diff)||0,((V=(L=e.value)==null?void 0:L.approvalDeduction)==null?void 0:V.diff)||0,((W=(E=e.value)==null?void 0:E.contractDeduction)==null?void 0:W.diff)||0],l={tooltip:{show:!0,trigger:"axis",valueFormatter:P=>P},grid:{bottom:20,top:10,right:50},xAxis:{type:"category",data:["\u8BA1\u5212","\u6279\u590D","\u5408\u540C"],axisLabel:{align:"center",interval:0}},yAxis:[{name:"",type:"value"},{name:"\u5DEE\u989D",type:"value"}],series:[{name:"\u7533\u8BF7",data:i,type:"bar",barGap:0,barWidth:30},{name:"\u6279\u590D",data:t,type:"bar",barWidth:30},{name:"\u5DEE\u989D",data:s,type:"bar",barWidth:30},{name:"\u5DEE\u989D",yAxisIndex:1,data:s,type:"line"}]};A.setOption(l)};return H(async()=>{R()}),(i,t)=>{const s=c("el-date-picker"),l=c("el-form-item"),d=c("el-form"),o=c("el-card"),p=c("el-col"),b=c("el-row");return J(),K(Q,null,[n(o,{class:"mb-16"},{default:r(()=>{var u,f,m,v,_;return[n(d,{ref:"formRef",model:h.value},{default:r(()=>[n(l,{label:"\u5E74\u5EA6"},{default:r(()=>[n(s,{modelValue:h.value.projectYear,"onUpdate:modelValue":t[0]||(t[0]=g=>h.value.projectYear=g),type:"year",placeholder:"\u5168\u90E8",format:"YYYY","value-format":"YYYY",style:{width:"200px"},onChange:R},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a("div",Z,[a("div",$,[a("p",tt,y(Math.round(((u=e.value)==null?void 0:u.accumulatedDeductionTotalAmount)/1e4*100)/100||0),1),t[1]||(t[1]=a("p",{class:"text-info text-14"},"\u7D2F\u8BA1\u6838\u51CF\u8D44\u91D1\u603B\u6570\uFF08\u4EBF\u5143\uFF09",-1))]),a("div",et,[a("p",at,y(Math.round(((f=e.value)==null?void 0:f.declaredTotalAmount)/1e4*100)/100||0),1),t[2]||(t[2]=a("p",{class:"text-info text-14"},"\u7533\u8BF7\u91D1\u989D\uFF08\u4EBF\u5143\uFF09",-1))]),a("div",ot,[a("p",lt,y(Math.round(((m=e.value)==null?void 0:m.approvalTotalAmount)/1e4*100)/100||0),1),t[3]||(t[3]=a("p",{class:"text-info text-14"},"\u6279\u590D\u91D1\u989D\uFF08\u4EBF\u5143\uFF09",-1))]),a("div",nt,[a("p",st,y(Math.round(((v=e.value)==null?void 0:v.contractTotalAmount)/1e4*100)/100||0),1),t[4]||(t[4]=a("p",{class:"text-info text-14"},"\u5408\u540C\u91D1\u989D\uFF08\u4EBF\u5143\uFF09",-1))]),a("div",rt,[a("p",it,y(Math.round(((_=e.value)==null?void 0:_.threeYearsDeductionTotalAmount)/1e4*100)/100||0),1),t[5]||(t[5]=a("p",{class:"text-info text-14"},"\u8FD13\u5E74\u6838\u51CF\u603B\u6570\uFF08\u4EBF\u5143\uFF09",-1))])])]}),_:1}),n(b,{gutter:16},{default:r(()=>[n(p,{span:12,class:"mb-16"},{default:r(()=>[n(o,{header:"\u8FD13\u5E74\u6838\u51CF\u603B\u6570\uFF08\u4E07\u5143\uFF09"},{default:r(()=>[a("div",{ref_key:"chart2Ref",ref:T,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(p,{span:12,class:"mb-16"},{default:r(()=>[n(o,{header:"\u5404\u9636\u6BB5\u6838\u51CF\u60C5\u51B5\uFF08\u4E07\u5143\uFF09"},{default:r(()=>[a("div",{ref_key:"chart3Ref",ref:k,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(p,{span:12,class:"mb-16"},{default:r(()=>[n(o,{header:"\u5404\u90E8\u95E8\u6838\u51CF\u60C5\u51B5TOP10\uFF08\u4E07\u5143\uFF09"},{default:r(()=>[a("div",{ref_key:"chart1Ref",ref:F,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{ut as default};