2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
import{G as x,C as k}from"./element-plus.fb7aa18f.js";import{i as w}from"./echarts.50cbfcc9.js";import{i as B}from"./statistics.e9557565.js";import{_ as C}from"./index.b4979dda.js";import{r as c,a0 as S,a5 as P,o as m,L as d,M as u,n as V,a as t,V as j,c as v,a8 as D,W as I,S as Y,U as f,b7 as E,b6 as L}from"./@vue.5673dc6e.js";import"./@vueuse.ae0833ee.js";import"./@element-plus.d30df31f.js";import"./lodash-es.5979d539.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.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.a255a587.js";import"./lodash.1d82ee7c.js";import"./vue-router.137bc04e.js";import"./pinia.dba679c5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.00aeb742.js";const N=i=>(E("data-v-d654b84e"),i=i(),L(),i),q=N(()=>t("div",{class:"card-header"},[t("span",null,"\u4FDD\u8BC1\u91D1\u7EDF\u8BA1")],-1)),A={style:{height:"40px"}},F={style:{display:"flex","justify-content":"space-around"}},G={key:0,id:"ProjectBid",class:"chart"},O={__name:"ProjectBid",setup(i){const o=c(new Date().getFullYear()),s=c(!0),g=S([{name:"\u603B\u4FDD\u8BC1\u91D1\u7533\u8BF7",value:()=>a.value.total_margin_apply,url:"/financial/margin_management/financial_bid_margin"},{name:"\u5E74\u5EA6\u4FDD\u8BC1\u91D1\u7533\u8BF7",value:()=>a.value.year_margin_apply,url:"/financial/margin_management/financial_bid_margin"},{name:"\u603B\u4FDD\u8BC1\u91D1\u56DE\u6536",value:()=>a.value.total_margin_recovery,url:"/financial/margin_management/financial_bid_margin_recovery"},{name:"\u5E74\u5EA6\u4FDD\u8BC1\u91D1\u56DE\u6536",value:()=>a.value.year_margin_recovery,url:"/financial/margin_management/financial_bid_margin_recovery"},{name:"\u603B\u5C65\u7EA6\u91D1\u7533\u8BF7",value:()=>a.value.total_performance_money_apply,url:"/financial/margin_management/financial_performance_money_apply"},{name:"\u5E74\u5EA6\u5C65\u7EA6\u91D1\u7533\u8BF7",value:()=>a.value.year_performance_money_apply,url:"/financial/margin_management/financial_performance_money_apply"},{name:"\u603B\u5C65\u7EA6\u91D1\u56DE\u6536",value:()=>a.value.total_performance_money_recovery,url:"/financial/margin_management/financial_performance_money_recovery"},{name:"\u5E74\u5EA6\u5C65\u7EA6\u91D1\u56DE\u6536",value:()=>a.value.year_performance_money_recovery,url:"/financial/margin_management/financial_performance_money_recovery"}]),l={show:!0,rich:{name:{}}},h=(e,n)=>{var _=document.getElementById(e),p=w(_);p.setOption(n)},a=c({}),y=async()=>{s.value=!1;let e=await B({year:o.value});a.value=e,s.value=!0,await V();var n={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[e.margin_apply_series.name,e.margin_recovery_series.name,e.performance_money_apply_series.name,e.performance_money_recovery_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.margin_apply_series.name,type:"bar",barGap:0,label:l,emphasis:{focus:"series"},data:e.margin_apply_series.data,itemStyle:{normal:{label:{}}}},{name:e.margin_recovery_series.name,type:"bar",label:l,emphasis:{focus:"series"},data:e.margin_recovery_series.data,itemStyle:{normal:{label:{}}}},{name:e.performance_money_apply_series.name,type:"bar",label:l,emphasis:{focus:"series"},data:e.performance_money_apply_series.data,itemStyle:{normal:{label:{}}}},{name:e.performance_money_recovery_series.name,type:"bar",label:l,emphasis:{focus:"series"},data:e.performance_money_recovery_series.data,itemStyle:{normal:{label:{}}}}]};h("ProjectBid",n)};return y(),(e,n)=>{const _=x,p=P("router-link"),b=k;return m(),d(b,{style:{width:"49.9%"}},{header:u(()=>[q]),default:u(()=>[t("div",A,[j(_,{modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=r=>o.value=r),onChange:y,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:o.value},null,8,["modelValue","placeholder"])]),t("div",F,[(m(!0),v(I,null,D(g,r=>(m(),d(p,{to:{path:r.url,query:r.query?{year:o.value}:null},key:r,class:"header-btn"},{default:u(()=>[t("div",null,[t("div",null,f(r.value()),1),t("div",null,f(r.name),1)])]),_:2},1032,["to"]))),128))]),s.value?(m(),v("div",G)):Y("",!0)]),_:1})}}},xe=C(O,[["__scopeId","data-v-d654b84e"]]);export{xe as default};
|