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