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