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 c}from"./Bar-5hIPgm2N.js";import{R as m}from"./RankList-CSLjPYW8.js";import{B as y,_ as B}from"./index-CYriLmQo.js";import"./useECharts-BdLEHtT5.js";import"./useTimeout-DC8132dd.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./echarts-DjaBQeb6.js";import"./renderers-qdWQN0CG.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"),p=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(p,{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(c,{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(p,{tab:"销售趋势",key:"2"},{default:a(()=>[t(_,null,{default:a(()=>[t(s,{xl:16,lg:12,md:12,sm:24,xs:24},{default:a(()=>[t(c,{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"])}}}),U=B(D,[["__scopeId","data-v-42d06be5"]]);export{U as default};
