import{J as x,C as k}from"./element-plus.258bf9e7.js";import{i as w}from"./echarts.50cbfcc9.js";import{f as C}from"./statistics.e06923ca.js";import{_ as S}from"./index.ec401e3b.js";import{r as _,a0 as V,a5 as B,o as i,L as d,M as p,n as I,a as o,V as Y,c as v,a8 as D,W as E,S as q,U as h,b7 as L,b6 as N}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.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.87ebc608.js";import"./pinia.b6700c26.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.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const O=c=>(L("data-v-44b4c97a"),c=c(),N(),c),A=O(()=>o("div",{class:"card-header"},[o("span",null,"\u5206\u5305\u5408\u540C")],-1)),F={style:{height:"40px"}},P={style:{display:"flex","justify-content":"space-around"}},T={key:0,id:"Subcontract",class:"chart"},U={__name:"Subcontract",setup(c){const s=_(new Date().getFullYear()),l=_(!0),e=V([{name:"\u603B\u91D1\u989D",value:3,url:"/construction/contract/subcontract/subcontracting_contract"},{name:"\u6D3D\u5546\u91D1\u989D",value:3,url:"/construction/contract/subcontract/subcontracting_contract_negotiation"},{name:"\u5408\u540C\u603B\u6570",value:3,url:"/construction/contract/subcontract/subcontracting_contract"},{name:"\u5E74\u5EA6\u5408\u540C\u91D1\u989D",value:3,url:"/construction/contract/subcontract/subcontracting_contract"},{name:"\u5E74\u5EA6\u5408\u540C\u6570",value:3,url:"/construction/contract/subcontract/subcontracting_contract"}]),y={show:!0,rich:{name:{}}},b=(t,r)=>{var n=document.getElementById(t),u=w(n);u.setOption(r)},g=(t,r,n)=>({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:t,toolbox:{show:!0,orient:"vertical",left:"right",top:"center"},xAxis:[{type:"category",axisTick:{show:!1},data:r}],yAxis:[{type:"value"}],series:n}),m=async()=>{l.value=!1;let t=await C({year:s.value});l.value=!0,await I(),b("Subcontract",g({data:[t.series.name]},t.column,[{name:t.series.name,type:"bar",barGap:0,label:y,emphasis:{focus:"series"},data:t.series.data}])),e[0].value=t.total_amount,e[1].value=t.total_negotiation_amount,e[2].value=t.total_num,e[3].value=t.year_total_amount,e[4].value=t.year_total_num};return m(),(t,r)=>{const n=x,u=B("router-link"),f=k;return i(),d(f,{style:{width:"49.9%"}},{header:p(()=>[A]),default:p(()=>[o("div",F,[Y(n,{modelValue:s.value,"onUpdate:modelValue":r[0]||(r[0]=a=>s.value=a),onChange:m,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:s.value},null,8,["modelValue","placeholder"])]),o("div",P,[(i(!0),v(E,null,D(e,a=>(i(),d(u,{to:{path:a.url,query:a.query?{...a.query}:null},key:a,class:"header-btn"},{default:p(()=>[o("div",null,[o("div",null,h(a.value),1),o("div",null,h(a.name),1)])]),_:2},1032,["to"]))),128))]),l.value?(i(),v("div",T)):q("",!0)]),_:1})}}},xt=S(U,[["__scopeId","data-v-44b4c97a"]]);export{xt as default};