engineering/public/admin/assets/Subcontract.8189d80c.js
2024-01-26 14:09:02 +08:00

2 lines
3.0 KiB
JavaScript

import{J as g,C as x}from"./element-plus.65d4f479.js";import{i as b}from"./echarts.b30ab882.js";import{f as w}from"./statistics.72c8100f.js";import{_ as C}from"./index.98acb17a.js";import{r as d,a0 as S,o as n,L as k,M as _,n as V,a as o,V as B,c as p,a8 as I,W as Y,S as D,U as v,b7 as E,b6 as L}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.7b7df559.js";import"./axios.d220de03.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.3760070d.js";import"./lodash.e6e08e6d.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.768d86ee.js";import"./color.7d9a7b23.js";import"./clone.e8568f48.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.289cebbb.js";import"./ms.a9ae1d6d.js";import"./nprogress.4217d235.js";import"./vue-clipboard3.1cf59ba2.js";import"./clipboard.c2aa2b65.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const N=i=>(E("data-v-d2fefce3"),i=i(),L(),i),O=N(()=>o("div",{class:"card-header"},[o("span",null,"\u5206\u5305\u5408\u540C")],-1)),A={style:{height:"40px"}},F={style:{display:"flex","justify-content":"space-around"}},P={key:0,id:"Subcontract",class:"chart"},T={__name:"Subcontract",setup(i){const l=d(new Date().getFullYear()),c=d(!0),e=S([{name:"\u603B\u91D1\u989D",value:3},{name:"\u6D3D\u5546\u91D1\u989D",value:3},{name:"\u5408\u540C\u603B\u6570",value:3},{name:"\u5E74\u5EA6\u5408\u540C\u91D1\u989D",value:3},{name:"\u5E74\u5EA6\u5408\u540C\u6570",value:3}]),h={show:!0,rich:{name:{}}},y=(t,a)=>{var r=document.getElementById(t),m=b(r);m.setOption(a)},f=(t,a,r)=>({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:t,toolbox:{show:!0,orient:"vertical",left:"right",top:"center"},xAxis:[{type:"category",axisTick:{show:!1},data:a}],yAxis:[{type:"value"}],series:r}),u=async()=>{c.value=!1;let t=await w();c.value=!0,await V(),y("Subcontract",f({data:[t.series.name]},t.column,[{name:t.series.name,type:"bar",barGap:0,label:h,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 u(),(t,a)=>{const r=g,m=x;return n(),k(m,{style:{width:"49.9%"}},{header:_(()=>[O]),default:_(()=>[o("div",A,[B(r,{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value=s),onChange:u,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:l.value},null,8,["modelValue","placeholder"])]),o("div",F,[(n(!0),p(Y,null,I(e,s=>(n(),p("div",{key:s,style:{"text-align":"center"}},[o("div",null,v(s.value),1),o("div",null,v(s.name),1)]))),128))]),c.value?(n(),p("div",P)):D("",!0)]),_:1})}}},gt=C(T,[["__scopeId","data-v-d2fefce3"]]);export{gt as default};