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

2 lines
2.9 KiB
JavaScript

import{J as x,C as g}from"./element-plus.4ff6f47d.js";import{i as C}from"./echarts.b30ab882.js";import{e as w}from"./statistics.4188fd1d.js";import{_ as k}from"./index.aaca920c.js";import{r as d,a0 as b,o as n,L as P,M as _,n as V,a,V as B,c as m,a8 as I,W as S,S as Y,U as h,b7 as D,b6 as E}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 L=i=>(D("data-v-e63da5f5"),i=i(),E(),i),N=L(()=>a("div",{class:"card-header"},[a("span",null,"\u91C7\u8D2D\u5408\u540C")],-1)),O={style:{height:"40px"}},A={style:{display:"flex","justify-content":"space-around"}},F={key:0,id:"PurchaseContracts",class:"chart"},T={__name:"PurchaseContracts",setup(i){const l=d(new Date().getFullYear()),p=d(!0),o=b([{name:"\u5408\u540C\u603B\u6570",value:3},{name:"\u603B\u91D1\u989D",value:3},{name:"\u5E74\u5EA6\u5408\u540C\u6570",value:3},{name:"\u5E74\u5EA6\u5408\u540C\u91D1\u989D",value:3}]),v={show:!0,rich:{name:{}}},y=(t,e)=>{var r=document.getElementById(t),c=C(r);c.setOption(e)},f=(t,e,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:e}],yAxis:[{type:"value"}],series:r}),u=async()=>{p.value=!1;let t=await w();p.value=!0,await V(),y("PurchaseContracts",f({data:[t.series.name]},t.column,[{name:t.series.name,type:"bar",barGap:0,label:v,emphasis:{focus:"series"},data:t.series.data}])),o[0].value=t.total_num,o[1].value=t.total_amount,o[2].value=t.year_total_num,o[3].value=t.year_total_amount};return u(),(t,e)=>{const r=x,c=g;return n(),P(c,{style:{width:"49.9%"}},{header:_(()=>[N]),default:_(()=>[a("div",O,[B(r,{modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=s=>l.value=s),onChange:u,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:l.value},null,8,["modelValue","placeholder"])]),a("div",A,[(n(!0),m(S,null,I(o,s=>(n(),m("div",{key:s,style:{"text-align":"center"}},[a("div",null,h(s.value),1),a("div",null,h(s.name),1)]))),128))]),p.value?(n(),m("div",F)):Y("",!0)]),_:1})}}},xt=k(T,[["__scopeId","data-v-e63da5f5"]]);export{xt as default};