(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ddfe94e"],{"0241":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"storeindex"},[e("div",{staticClass:"flex t_l"},[e("div",{staticClass:"flex-bet wid"},[e("div",{staticClass:"flex-g-1 ba_f pad_20 mar_r10 bor_rad5"},[e("div",[e("span",{staticClass:"fon_14 mar_r5"},[t._v("今日订单数")]),e("span",{staticClass:"fon_20 color_3 wei"},[t._v(t._s(t.zhData.totalSum))])]),t._m(0),e("div",{staticClass:"fon_14 marb_l15 mar_t20"},[t._v("总订单数 "+t._s(t.zhData.sum))])]),e("div",{staticClass:"flex-g-1 ba_f pad_20 mar_lr10 bor_rad5"},[e("div",[e("span",{staticClass:"fon_14 mar_r5"},[t._v("今日营业额")]),e("span",{staticClass:"fon_20 color_3 wei"},[t._v(t._s(t.zhData.totalMoney))])]),t._m(1),e("div",{staticClass:"fon_14 marb_l15 mar_t20"},[t._v("总营业额 "+t._s(t.zhData.money))])]),e("div",{staticClass:"flex-g-1 ba_f pad_20 mar_lr10 bor_rad5"},[e("div",[e("span",{staticClass:"fon_14 mar_r5"},[t._v("付款人数")]),e("span",{staticClass:"fon_20 color_3 wei"},[t._v(t._s(t.zhData.totalPayUser))])]),t._m(2),e("div",{staticClass:"fon_14 marb_l15 mar_t20"},[t._v("总付款人数 "+t._s(t.zhData.payUser))])]),e("div",{staticClass:"flex-g-1 ba_f pad_20 mar_l10 bor_rad5"},[e("div",[e("span",{staticClass:"fon_14 mar_r5"},[t._v("浏览量")]),e("span",{staticClass:"fon_20 color_3 wei"},[t._v(t._s(t.zhData.totalVisitCount))])]),t._m(3),e("div",{staticClass:"fon_14 marb_l15 mar_t20"},[t._v("总浏览量 "+t._s(t.zhData.visitCount))])])])]),e("div",{staticClass:"mar_t20 flex"},[t._m(4),e("div",{staticClass:"wid40 ba_f outmain flex-g-1 mar_l20",staticStyle:{height:"480px"}},[t._m(5),e("div",{staticClass:"ba_f pad_20 bor_rad5"},[e("div",{staticClass:"t_l flex-bet lh30"},[e("div",{staticClass:"fon_12 color_6"}),e("div",[e("el-date-picker",{staticClass:"mar_l10",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:t.onChangOption},model:{value:t.riqidata,callback:function(a){t.riqidata=a},expression:"riqidata"}})],1)]),e("div",{staticClass:"mar_t20"},[e("div",{staticClass:"flex-bet mar_t10"},[e("div",{staticClass:"bortColor flex-bet flex-g-1 pad_20 flex-y-top mar_r20"},[e("div",[e("p",{staticClass:"title6 fon_14"},[t._v("预计收入")]),e("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.yujiSum))]),e("div",{staticClass:"flex"},[e("p",{staticClass:"fon_12 title6 lh25"},[t._v("昨日全天 "+t._s(t.zhData.yesterSum))])])]),e("div",{staticClass:"toolTip"},[e("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("今日预计收入,是指今天所有已接订单的预计收入金额汇总,当天实际收入金额,以财务对账页内待结算账单为准")]),e("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[e("span",[e("i",{staticClass:"el-icon-question"})])])])],1)]),e("div",{staticClass:"bortColor flex-bet flex-g-1 pad_20 flex-y-top"},[e("div",[e("p",{staticClass:"title6 fon_14"},[t._v("有效订单")]),e("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.payCount))]),e("div",{staticClass:"flex"},[e("p",{staticClass:"fon_12 title6 lh25"},[t._v("昨日全天 "+t._s(t.zhData.yesPayCount))])])]),e("div",{staticClass:"toolTip"},[e("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("统计时间内,未取消且未发生退款的订单量")]),e("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[e("span",[e("i",{staticClass:"el-icon-question"})])])])],1)])]),e("div",{staticClass:"flex-bet mar_t20"},[e("div",{staticClass:"bortColor flex-bet flex-g-1 pad_20 flex-y-top mar_r20"},[e("div",[e("p",{staticClass:"title6 fon_14"},[t._v("付款人数")]),e("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.userCount))]),e("div",{staticClass:"flex"},[e("p",{staticClass:"fon_12 title6 lh25"},[t._v("昨日全天 "+t._s(t.zhData.yesuserCount))])])]),e("div",{staticClass:"toolTip"},[e("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("统计周期内,付款成功的用户数,一人多次结算记为一人")]),e("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[e("span",[e("i",{staticClass:"el-icon-question"})])])])],1)]),e("div",{staticClass:"bortColor flex-bet flex-g-1 pad_20 flex-y-top"},[e("div",[e("p",{staticClass:"title6 fon_14"},[t._v("浏览量")]),e("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.visitCount))]),e("div",{staticClass:"flex"},[e("p",{staticClass:"fon_12 title6 lh25"},[t._v("昨日全天 "+t._s(t.zhData.yesVisitCount))])])]),e("div",{staticClass:"toolTip"},[e("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v("统计周期内,店铺所有页面被访问的次数,一个人在统计时间内访问多次记为多次")]),e("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[e("span",[e("i",{staticClass:"el-icon-question"})])])])],1)])])])])])]),e("div",{staticClass:"mar_t20 flex"},[e("div",{staticClass:"wid60 ba_f outmain flex-g-1",staticStyle:{height:"580px"}},[t._m(6),e("el-table",{staticClass:"tablecenter",attrs:{data:t.tableData1,stripe:""}},[e("el-table-column",{attrs:{prop:"id",label:"排名"}}),e("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),e("el-table-column",{attrs:{prop:"num",label:"商品销量数"}}),e("el-table-column",{attrs:{prop:"money",label:"支付金额"}})],1)],1),t._m(7)])])},o=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"flex-bet mar_t10 bor_b_f7 pad_b_15"},[e("div",{staticClass:"color_9"},[t._v(" 周同比: "),e("span",{staticClass:"color-green"},[t._v("0")])]),e("div",{staticClass:"color_9"},[t._v(" 日同比: "),e("span",{staticClass:"color-hotren"},[t._v("0")])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"flex-bet mar_t10 bor_b_f7 pad_b_15"},[e("div",{staticClass:"color_9"},[t._v(" 周同比: "),e("span",{staticClass:"color-green"},[t._v("0")])]),e("div",{staticClass:"color_9"},[t._v(" 日同比: "),e("span",{staticClass:"color-hotren"},[t._v("0")])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"flex-bet mar_t10 bor_b_f7 pad_b_15"},[e("div",{staticClass:"color_9"},[t._v(" 周同比: "),e("span",{staticClass:"color-green"},[t._v("0")])]),e("div",{staticClass:"color_9"},[t._v(" 日同比: "),e("span",{staticClass:"color-hotren"},[t._v("0")])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"flex-bet mar_t10 bor_b_f7 pad_b_15"},[e("div",{staticClass:"color_9"},[t._v(" 周同比: "),e("span",{staticClass:"color-green"},[t._v("0")])]),e("div",{staticClass:"color_9"},[t._v(" 日同比: "),e("span",{staticClass:"color-hotren"},[t._v("0")])])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"wid60 ba_f outmain flex-g-1",staticStyle:{height:"480px"}},[e("div",{staticClass:"indextite"},[t._v(" 统计数据 "),e("span",{staticClass:"yb_margin lh16 fnormal color_9 mar_l10"},[t._v("统计数据")])]),e("div",{staticStyle:{height:"360px",width:"100%"},attrs:{id:"shujuEch"}})])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"indextite"},[t._v(" 订单分析 "),e("span",{staticClass:"yb_margin lh16 fnormal color_9 mar_l10"},[t._v("订单分析")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"indextite mar_b10"},[t._v(" 销量TOP10商品 "),e("span",{staticClass:"yb_margin lh16 fnormal color_9 mar_l10"},[t._v("销量TOP10商品")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"wid40 ba_f outmain mar_l20 flex-g-1",staticStyle:{height:"580px"}},[e("div",{staticClass:"indextite"},[t._v(" 营业额占比 "),e("span",{staticClass:"yb_margin lh16 fnormal color_9 mar_l10"},[t._v("营业额占比")])]),e("div",{staticClass:"mar_t20",staticStyle:{height:"420px",width:"100%"},attrs:{id:"shujuEch2"}})])}],i=(e("d81d"),e("96cf"),e("1da1")),n=e("5530"),l=e("313e"),r=e.n(l),c=e("6cdb"),_=e("ed08"),u=e("2f62"),d={name:"storeindex",created:function(){this.init()},computed:Object(n["a"])({},Object(u["d"])(["storeId"])),data:function(){return{zhData:{totalSum:"",sum:"",totalMoney:"",money:"",totalPayUser:"",payUser:"",totalVisitCount:"",visitCount:"",yujiSum:"",yesterSum:"",payCount:"",yesPayCount:"",userCount:"",yesuserCount:"",yesVisitCount:""},echarts1_option:{color:["#4165D7","#F1F1F9"],tooltip:{trigger:"axis"},legend:{data:["订单数","营业额"]},grid:{left:"3%",right:"5%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisTick:{show:!1,lineStyle:{color:"#ccc",type:"dashed"}},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},axisLine:{lineStyle:{color:"#4ECB73",width:2}},data:["2020-8-17","2020-8-16","2020-8-15","2020-8-14","2020-8-13","2020-8-12","2020-8-11","2020-8-11","2020-8-11","2020-8-11","2020-8-10"]},yAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},splitLine:{lineStyle:{type:"dotted",color:"#DDDDDD"},show:!0}},series:[{name:"订单数",type:"bar",data:[10,52,75,35,40,75,30,10,52,80,25]},{name:"营业额",type:"bar",data:[10,52,20,30,25,35,80,10,52,50,60]}]},echarts1_option1:{color:["#FBD437","#4165D7","#4EC478","#FBA33F"],legend:{orient:"vertical",right:0,data:["外卖金额","其他"]},series:[{name:"访问来源",type:"pie",radius:["47%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:35,name:"外卖金额"},{value:310,name:"其他"}]}]},tableData1:[],tableData2:[],riqidata:[new Date,new Date]}},methods:{init:function(){this.recordData()},recordData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var e,s,o,i,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e="",s="",t.riqidata&&(e=Object(_["a"])(t.riqidata[0]),s=Object(_["a"])(t.riqidata[1])),a.next=5,Object(c["a"])({storeId:t.storeId,startTime:e,endTime:s});case 5:o=a.sent,i=o.data,i&&(t.zhData.totalSum=i.totalSum?i.totalSum:0,t.zhData.sum=i.sum?i.sum:0,t.zhData.totalMoney=i.totalMoney?i.totalMoney:0,t.zhData.money=i.money?i.money:0,t.zhData.totalPayUser=i.totalPayUser?i.totalPayUser:0,t.zhData.payUser=i.payUser?i.payUser:0,t.zhData.totalVisitCount=i.totalVisitCount?i.totalVisitCount:0,t.zhData.visitCount=i.visitCount?i.visitCount:0,t.zhData.yujiSum=i.yujiSum?i.yujiSum:0,t.zhData.yesterSum=i.yesterSum?i.yesterSum:0,t.zhData.payCount=i.payCount?i.payCount:0,t.zhData.yesPayCount=i.yesPayCount?i.yesPayCount:0,t.zhData.userCount=i.userCount?i.userCount:0,t.zhData.yesuserCount=i.yesuserCount?i.yesuserCount:0,t.zhData.yesVisitCount=i.yesVisitCount?i.yesVisitCount:0,t.tableData1=i.goodsData?i.goodsData:[],t.echarts1_option.series[0].data=i.payResult.map((function(t){return t.money})),t.echarts1_option.series[1].data=i.moneyResult.map((function(t){return t.money})),t.echarts1_option.xAxis.data=i.moneyResult.map((function(t){return t.hours})),t.shujuEch(),n=[],n.push(i.sumMoney,i.outMoney),t.echarts1_option1.series[0].data=n,t.shujuEch2());case 8:case"end":return a.stop()}}),a)})))()},shujuEch:function(){var t=r.a.init(document.getElementById("shujuEch"));t.setOption(this.echarts1_option,!0)},shujuEch2:function(){var t=r.a.init(document.getElementById("shujuEch2"));t.setOption(this.echarts1_option1,!0)},onChangOption:function(){this.init()}}},p=d,f=e("2877"),v=Object(f["a"])(p,s,o,!1,null,null,null);a["default"]=v.exports},"3bbe":function(t,a,e){var s=e("861d");t.exports=function(t){if(!s(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,a,e){var s=e("861d"),o=e("d2bb");t.exports=function(t,a,e){var i,n;return o&&"function"==typeof(i=a.constructor)&&i!==e&&s(n=i.prototype)&&n!==e.prototype&&o(t,n),t}},a9e3:function(t,a,e){"use strict";var s=e("83ab"),o=e("da84"),i=e("94ca"),n=e("6eeb"),l=e("5135"),r=e("c6b6"),c=e("7156"),_=e("c04e"),u=e("d039"),d=e("7c73"),p=e("241c").f,f=e("06cf").f,v=e("9bf2").f,h=e("58a8").trim,C="Number",b=o[C],m=b.prototype,y=r(d(m))==C,g=function(t){var a,e,s,o,i,n,l,r,c=_(t,!1);if("string"==typeof c&&c.length>2)if(c=h(c),a=c.charCodeAt(0),43===a||45===a){if(e=c.charCodeAt(2),88===e||120===e)return NaN}else if(48===a){switch(c.charCodeAt(1)){case 66:case 98:s=2,o=49;break;case 79:case 111:s=8,o=55;break;default:return+c}for(i=c.slice(2),n=i.length,l=0;lo)return NaN;return parseInt(i,s)}return+c};if(i(C,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,D=function(t){var a=arguments.length<1?0:t,e=this;return e instanceof D&&(y?u((function(){m.valueOf.call(e)})):r(e)!=C)?c(new b(g(a)),e,D):g(a)},S=s?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)l(b,x=S[w])&&!l(D,x)&&v(D,x,f(b,x));D.prototype=m,m.constructor=D,n(o,C,D)}},bf19:function(t,a,e){"use strict";var s=e("23e7");s({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,a,e){var s=e("825a"),o=e("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,a=!1,e={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(e,[]),a=e instanceof Array}catch(i){}return function(e,i){return s(e),o(i),a?t.call(e,i):e.__proto__=i,e}}():void 0)},ed08:function(t,a,e){"use strict";e.d(a,"a",(function(){return s})),e.d(a,"b",(function(){return o})),e.d(a,"c",(function(){return i}));e("a9e3"),e("ac1f"),e("5319"),e("bf19");function s(t){var a=new Date(t).toJSON(),e=new Date(+new Date(a)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return e}function o(t){var a=new Date(t),e=a.getFullYear(),s=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,o=a.getDate()<10?"0"+a.getDate():a.getDate(),i=a.getHours()<10?"0"+a.getHours():a.getHours(),n=a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes(),l=a.getSeconds()<10?"0"+a.getSeconds():a.getSeconds();return e+"-"+s+"-"+o+" "+i+":"+n+":"+l}function i(t){var a=new Date(1e3*Number(t)),e=a.getFullYear()+"-",s=(a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-",o=(a.getDate()<10?"0"+a.getDate():a.getDate())+" ",i=(a.getHours()<10?"0"+a.getHours():a.getHours())+":",n=(a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes())+":",l=a.getSeconds()<10?"0"+a.getSeconds():a.getSeconds(),r=e+s+o+i+n+l;return r}}}]);