engineering/public/admin/assets/PurchaseContracts.e23ec85f.js
2024-03-04 15:04:21 +08:00

2 lines
3.3 KiB
JavaScript

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