import{P as V}from"./page.3b4d44cb.js";import{r as P,b as f,_ as x,c as s,e as d,k as y,i as n,g as a,f as p,j as D,h as o,m as L,t as g,F,A as I,R as O,S as $}from"./index.0308b213.js";const U={components:{Page:V},setup(){const u=P("\u6240\u6709\u8BA2\u5355"),m=f([{lable:"\u7B5B\u9009\u65F6\u95F4",selected:"\u4ECA\u5929",radios:["\u4ECA\u5929","\u6700\u8FD17\u5929","\u6700\u8FD130\u5929","\u81EA\u5B9A\u4E49"]}]),v=f([new Date(2016,9,10,8,40),new Date(2016,9,10,9,40)]),E=f([{title:"\u6E38\u89C8\u7684\u987E\u5BA2\u6570",num:Math.round(Math.random()*100),price:Math.round(Math.random()*100)},{title:"\u6210\u4EA4\u7684\u987E\u5BA2\u6570",num:Math.round(Math.random()*100),price:Math.round(Math.random()*100)},{title:"\u4E0B\u5355\u7387",num:Math.round(Math.random()*100),price:Math.round(Math.random()*100)}]),t=f([{paymentDays:"20220608",finishNum:0,cancelNum:0,userPayNum:0,platformSubsidies:0,agentSubsidies:0,merchantsSubsidies:0,platformFee:0,shippingFee:0,accountPrice:0}]);for(let e=0;e<15;e++)t.push({paymentDays:"20220608"+e,finishNum:Math.round(Math.random()*100),cancelNum:Math.round(Math.random()*100),userPayNum:Math.round(Math.random()*100),platformSubsidies:Math.round(Math.random()*1e3),agentSubsidies:Math.round(Math.random()*1e3),merchantsSubsidies:Math.round(Math.random()*100),platformFee:Math.round(Math.random()*100),shippingFee:Math.round(Math.random()*100),accountPrice:Math.round(Math.random()*10)});const r=(e,c)=>({name:e,type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:c}),h={tooltip:{trigger:"axis",textStyle:{color:"#fff"},borderColor:"rgba(0, 0, 0, 0.438)",backgroundColor:"rgba(0, 0, 0, 0.438)",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["\u6709\u6548\u8BA2\u5355\u91CF","\u8425\u4E1A\u603B\u989D","\u603B\u6536\u5165","\u5546\u5BB6\u8865\u8D34","\u5E73\u53F0\u8865\u8D34","\u4EE3\u7406\u8865\u8D34","\u5E73\u53F0\u670D\u52A1\u8D39","\u5E73\u53F0\u914D\u9001\u8D39","\u65E0\u6548\u8BA2\u5355\u91CF","\u635F\u5931\u8425\u4E1A\u989D"]},toolbox:{feature:{saveAsImage:{title:"\u4FDD\u5B58\u89C6\u56FE"}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:t.map(e=>e.paymentDays)}],yAxis:[{type:"value"}],series:[r("\u6709\u6548\u8BA2\u5355\u91CF",t.map(e=>e.finishNum)),r("\u8425\u4E1A\u603B\u989D",t.map(e=>e.cancelNum)),r("\u603B\u6536\u5165",t.map(e=>e.userPayNum)),r("\u5546\u5BB6\u8865\u8D34",t.map(e=>e.platformSubsidies)),r("\u5E73\u53F0\u8865\u8D34",t.map(e=>e.agentSubsidies)),r("\u4EE3\u7406\u8865\u8D34",t.map(e=>e.merchantsSubsidies)),r("\u5E73\u53F0\u670D\u52A1\u8D39",t.map(e=>e.platformFee)),r("\u5E73\u53F0\u914D\u9001\u8D39",t.map(e=>e.shippingFee)),r("\u65E0\u6548\u8BA2\u5355\u91CF",t.map(e=>e.userPayNum)),r("\u635F\u5931\u8425\u4E1A\u989D",t.map(e=>e.shippingFee))]};return{selected:u,radioList:m,pickerVal:v,tableData:t,cardList:E,viewOrder:(e,c)=>{console.log("\u89E6\u53D1\u67E5\u770B\u66F4\u591A\uFF1A",e,c)},echartOption:h}}};const B=u=>(O("data-v-9b0d217f"),u=u(),$(),u),j={class:"header"},z={class:"col-row"},T={class:"row-left"},G={key:0,class:"row-right"},R={class:"generalize"},q=B(()=>a("div",{class:"card-header"},[a("div",{class:"header-left tn-title--vertical-line"},[a("h1",{class:"card-title"},"\u603B\u89C8")])],-1)),H={class:"card-content"},J={class:"card-row"},K={class:"title"},Q={class:"card-row"},W={class:"text"},X={class:"trend-chart"},Y=B(()=>a("div",{class:"card-header"},[a("div",{class:"header-left tn-title--vertical-line"},[a("h1",{class:"card-title"},"\u5BA2\u6D41\u5206\u6790")])],-1)),Z={class:"card-content"},ee={class:"container"};function ae(u,m,v,E,t,r){const h=s("el-col"),M=s("el-radio-button"),e=s("el-radio-group"),c=s("el-date-picker"),w=s("el-row"),A=s("el-card"),S=s("v-chart"),_=s("el-table-column"),N=s("el-table"),k=s("Page");return d(),y(k,{showBorder:!1},{header:n(()=>[a("div",j,[(d(!0),p(F,null,D(u.radioList,(l,b)=>(d(),y(w,{gutter:20,align:"middle",key:b},{default:n(()=>[o(h,{span:2},{default:n(()=>[L(g(l.lable),1)]),_:2},1024),o(h,{span:18},{default:n(()=>[a("div",z,[a("div",T,[o(e,{modelValue:l.selected,"onUpdate:modelValue":i=>l.selected=i,size:"large"},{default:n(()=>[(d(!0),p(F,null,D(l.radios,(i,C)=>(d(),y(M,{key:C,label:i},null,8,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),l.selected=="\u81EA\u5B9A\u4E49"?(d(),p("div",G,[o(c,{modelValue:u.pickerVal,"onUpdate:modelValue":m[0]||(m[0]=i=>u.pickerVal=i),type:"daterange","range-separator":"\u5230","start-placeholder":"Start date","end-placeholder":"End date"},null,8,["modelValue"])])):I("",!0)])]),_:2},1024)]),_:2},1024))),128))])]),main:n(()=>[a("div",R,[o(A,{class:"card-container"},{default:n(()=>[q,a("div",H,[(d(!0),p(F,null,D(u.cardList,(l,b)=>(d(),p("div",{class:"card-box",key:b},[a("div",J,[a("span",K,g(l.title),1)]),a("div",Q,[a("span",W,g(l.num)+g(b!=2?"\u4EBA":"%"),1)])]))),128))])]),_:1})]),a("div",X,[o(A,{class:"card-container"},{default:n(()=>[Y,a("div",Z,[o(S,{class:"chart-view",option:u.echartOption},null,8,["option"])])]),_:1})]),a("div",ee,[o(N,{data:u.tableData,border:"",style:{width:"100%"}},{default:n(()=>[o(_,{align:"center",prop:"paymentDays",label:"\u8D26\u671F",width:"414"}),o(_,{align:"center",prop:"finishNum",label:"\u6D4F\u89C8\u987E\u5BA2\u6570 / \u4EBA",width:"412"}),o(_,{align:"center",prop:"cancelNum",label:"\u6210\u4EA4\u987E\u5BA2\u6570 / \u4EBA",width:"412"}),o(_,{align:"center",prop:"cancelNum",label:"\u4E0B\u5355\u7387 / %",width:"412"})]),_:1},8,["data"])])]),_:1})}const oe=x(U,[["render",ae],["__scopeId","data-v-9b0d217f"]]);export{oe as default};