Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
5.5KB

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