import{dc as p}from"./echarts-bf9d612c.js";import{o as f}from"./workbench-6480e595.js";import{b as h,v as y,w as g}from"./ui-ba7aaa7e.js";import{e as v,r as _,P as D,a3 as b,a4 as n,f as r,I as x}from"./vue-bf422dc1.js";import{_ as w}from"./index-c2dd6a24.js";import"./icons-a8498fb6.js";import"./libs-51817cd7.js";import"./plugins-ca970193.js";import"./others-9f318174.js";const O=v({__name:"OrderStatis",setup(S){const i=_([]),c=_([]),l=(e,t,o,a=!1)=>({title:{show:!0,text:e,left:"center"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"5px",right:"5px",containLabel:!0},xAxis:[{type:"category",data:t.xAxis,axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value",axisTick:{alignWithLabel:!0},axisLabel:{formatter:s=>`${s} 元`}}],series:[{type:o,barWidth:"60%",data:t.series,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"},areaStyle:a?{}:void 0,smooth:a}],dataZoom:a?void 0:[{type:"slider",xAxisIndex:0,start:80,end:100}]}),m=()=>l("近30天收款统计",i.value,"bar",!1),u=()=>l("年度收款统计",c.value,"line",!0),d=async(e,t)=>(await f({period:e,unit:t})).data;return(async()=>{i.value=await d(30,"day")})(),(async()=>{c.value=await d(12,"month")})(),(e,t)=>{const o=h,a=y,s=g;return D(),b(s,{gutter:[{xs:8,sm:16,md:24,lg:32,xl:32,xxl:40},{xs:8,sm:16,md:24,lg:32,xl:32,xxl:40}]},{default:n(()=>[r(a,{span:12},{default:n(()=>[r(o,{title:" ","hover-shadow":""},{default:n(()=>[r(x(p),{class:"chart",option:m(),autoresize:""},null,8,["option"]),r(x(p),{class:"chart",option:u(),autoresize:""},null,8,["option"])]),_:1})]),_:1})]),_:1})}}});const N=w(O,[["__scopeId","data-v-f49ea76a"]]);export{N as default};
