import{d as b,e as v,U as l,a2 as C,ad as k,af as a,a4 as o,k as t}from"./vue-vendor-CxLCUzY4.js";import{B as p}from"./Bar-C2dAaQCo.js";import{R as m}from"./RankList-Di8JZFh_.js";import{B as y,_ as B}from"./index-Cy4uayzW.js";import"./useECharts-C5PCME_B.js";import"./useTimeout-gJpgadD6.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./echarts-3CSrakfu.js";const w={class:"salesCard"},S={class:"extra-wrapper"},D=b({__name:"SaleTabCard",props:{loading:{type:Boolean}},setup(u){const{getThemeColor:f}=y(),r=[];for(let e=0;e<7;e++)r.push({name:"白鹭岛 "+(e+1)+" 号店",total:1234.56-e*100});const n=[];for(let e=0;e<12;e+=1)n.push({name:`${e+1}月`,value:Math.floor(Math.random()*1e3)+200});const i=v(()=>f.value);return(e,d)=>{const g=l("a-range-picker"),s=l("a-col"),_=l("a-row"),c=l("a-tab-pane"),h=l("a-tabs"),x=l("a-card");return C(),k(x,{loading:u.loading,bordered:!1,"body-style":{padding:"0"}},{default:a(()=>[o("div",w,[t(h,{"default-active-key":"1",size:"large","tab-bar-style":{marginBottom:"24px",paddingLeft:"16px"}},{rightExtra:a(()=>[o("div",S,[d[0]||(d[0]=o("div",{class:"extra-item"},[o("a",null,"今日"),o("a",null,"本周"),o("a",null,"本月"),o("a",null,"本年")],-1)),t(g,{style:{width:"256px"}})])]),default:a(()=>[t(c,{loading:"true",tab:"销售额",key:"1"},{default:a(()=>[t(_,null,{default:a(()=>[t(s,{xl:16,lg:12,md:12,sm:24,xs:24},{default:a(()=>[t(p,{chartData:n,option:{title:{text:"",textStyle:{fontWeight:"lighter"}}},height:"40vh",seriesColor:i.value},null,8,["seriesColor"])]),_:1}),t(s,{xl:8,lg:12,md:12,sm:24,xs:24},{default:a(()=>[t(m,{title:"门店销售排行榜",list:r})]),_:1})]),_:1})]),_:1}),t(c,{tab:"销售趋势",key:"2"},{default:a(()=>[t(_,null,{default:a(()=>[t(s,{xl:16,lg:12,md:12,sm:24,xs:24},{default:a(()=>[t(p,{chartData:n.reverse(),option:{title:{text:"",textStyle:{fontWeight:"lighter"}}},height:"40vh",seriesColor:i.value},null,8,["chartData","seriesColor"])]),_:1}),t(s,{xl:8,lg:12,md:12,sm:24,xs:24},{default:a(()=>[t(m,{title:"门店销售排行榜",list:r})]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1},8,["loading"])}}}),I=B(D,[["__scopeId","data-v-42d06be5"]]);export{I as default};
