You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
3.3KB

  1. import{L as u,i as h}from"./index-b861e656.js";import{z as B,r as i,o as E,b as c,c as N,d as O,f as l,h as n,j as L,e as a,t as D,F as S,k as I}from"./index-dd5fae99.js";const P=v=>B.get("/api/v1/statistics/project-cost",{params:v}),$={class:"flex justify-center text-center mt-24"},z={class:"flex-1"},G={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},M={class:"flex-1"},U={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},X=I({name:"projectFundStatistics"}),T=Object.assign(X,{setup(v){const k=i({}),y=i(),x=i(),g=i();let m,p,d;const w=new u(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),C=async()=>{R(),j(),F()},R=()=>{var o;m||(m=h(y.value));const s=[new u(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new u(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],t={legend:{show:!1},tooltip:{show:!0,trigger:"item"},color:s,series:[{data:(o=r.value)==null?void 0:o.twoYearsAvg.map(e=>({...e,value:e.amount})),type:"pie",itemStyle:{borderRadius:4},label:{formatter:`{b}
  2. {c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};m.setOption(t)},j=()=>{var t,o;p||(p=h(x.value));const s={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:42,top:10,right:30},xAxis:{type:"category",data:(t=r.value)==null?void 0:t.twoYearsPricing.map(e=>e.name),axisLabel:{interval:0,hideOverlap:!1}},yAxis:{name:"",type:"value"},color:w,series:[{data:(o=r.value)==null?void 0:o.twoYearsPricing.map(e=>e.amount),type:"line",name:"核价费",areaStyle:{}}]};p.setOption(s)},F=()=>{var t,o;d||(d=h(g.value));const s={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:42,top:10,right:30},xAxis:{type:"category",data:(t=r.value)==null?void 0:t.twoYearsReviews.map(e=>e.name),axisLabel:{interval:0,hideOverlap:!1}},yAxis:{name:"",type:"value"},color:w,series:[{name:"评审费",data:(o=r.value)==null?void 0:o.twoYearsReviews.map(e=>e.amount),type:"line",areaStyle:{}}]};d.setOption(s)},r=i(),V=async()=>{const s=await P({year:k.value.projectYear});r.value=s.data,C()};return E(async()=>{V()}),(s,t)=>{const o=c("el-date-picker"),e=c("el-form-item"),q=c("el-form"),f=c("el-card"),_=c("el-col"),A=c("el-row");return N(),O(S,null,[l(f,{class:"mb-16"},{default:n(()=>{var b,Y;return[L("",!0),a("div",$,[a("div",z,[a("p",G,D(((b=r.value)==null?void 0:b.reviewAmount)||0),1),t[1]||(t[1]=a("p",{class:"text-info text-14"},"累计专家评审费(万元)",-1))]),a("div",M,[a("p",U,D(((Y=r.value)==null?void 0:Y.pricingAmount)||0),1),t[2]||(t[2]=a("p",{class:"text-info text-14"},"累计人工核价费(万元)",-1))])])]}),_:1}),l(A,{gutter:16},{default:n(()=>[l(_,{span:12,class:"mb-16"},{default:n(()=>[l(f,{header:"市本级近两年人工核价费(万元)"},{default:n(()=>[a("div",{ref_key:"chart2Ref",ref:x,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(_,{span:12,class:"mb-16"},{default:n(()=>[l(f,{header:"市本级近两年专家评审费(万元)"},{default:n(()=>[a("div",{ref_key:"chart3Ref",ref:g,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(_,{span:12,class:"mb-16"},{default:n(()=>[l(f,{header:"市本级近两年平均专家评审/核价费(万元)"},{default:n(()=>[a("div",{ref_key:"chart1Ref",ref:y,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{T as default};