engineering/public/admin/assets/Subcontract.3944321b.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
3.0 KiB
JavaScript

import{J as f,C as g}from"./element-plus.4ff6f47d.js";import{i as x}from"./echarts.b30ab882.js";import{f as w}from"./statistics.4188fd1d.js";import{_ as C}from"./index.aaca920c.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.fc5568d8.js";import"./axios.5b893b79.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.8ea2174a.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const N=i=>(E("data-v-e3b7c39b"),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=x(r);m.setOption(a)},b=(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",b({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=f,m=g;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})}}},ft=C(T,[["__scopeId","data-v-e3b7c39b"]]);export{ft as default};