(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eb5076d6"],{"16c2":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("el-dialog",{attrs:{title:t.title,visible:t.dialogFormVisible,width:"900px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.close}},[a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"排名"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),a("el-table-column",{attrs:{prop:"count",label:"销量"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"money",label:"销售额(元)"}})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:t.close}},[t._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)])],1)},s=[],i=(a("96cf"),a("1da1")),l=a("48fb"),n=a("ed08"),r={name:"labelSave",created:function(){},data:function(){return{title:"",dialogFormVisible:!1,list:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},time:[],storeId:""}},components:{},methods:{showEdit:function(t){t?(this.title="更多商品",this.time=t,this.init()):(this.title="更多商品",this.init()),this.dialogFormVisible=!0},setStoreId:function(t){this.storeId=t},init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,o,s,i,r,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="",o="",t.time&&(a=Object(n["a"])(t.time[0]),o=Object(n["a"])(t.time[1])),s={page:t.page.currentPage,startTime:a,endTime:o,storeId:t.storeId},e.next=6,Object(l["s"])(s);case 6:i=e.sent,r=i.data,c=i.count,t.list=r,t.page.total=c;case 11:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.init()},close:function(){this.dialogFormVisible=!1},save:function(){this.close()}}},c=r,u=a("2877"),p=Object(u["a"])(c,o,s,!1,null,null,null);e["a"]=p.exports},"3bbe":function(t,e,a){var o=a("861d");t.exports=function(t){if(!o(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},6233:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"pad_20 ba_f"},[t._m(0),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("已上架")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.upTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上架")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("库存不足")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.noTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("库存不足")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("已售罄")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.noneTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("已售罄")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("已下架商品")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.downTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("已下架商品")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("待上架")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.shelfTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("待上架")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])]),a("div",{staticClass:"flex-1 t_l pad_20 bortColor"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"title6 fon_14"},[t._v("回收站")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20"},[t._v(t._s(t.zhData.recycleTotal))])]),a("div",{staticClass:"toolTip"},[a("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("回收站")]),a("button",{staticClass:"el-button question-button-tooltip el-tooltip el-button--text fon_12",attrs:{type:"button"}},[a("span",[a("i",{staticClass:"el-icon-question"})])])])],1)])])]),a("div",{staticClass:"mar_t20",staticStyle:{height:"360px"},attrs:{id:"zhentiEch"}})]),a("div",{staticClass:"t_r mar_t20"},[a("div",{staticClass:"fon_12 mar_r10 color_9"},[a("span",{staticClass:"fon_14 color_3"},[t._v("时间筛选:")]),a("el-date-picker",{staticClass:"mar_l10",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:t.changeTime},model:{value:t.form.time,callback:function(e){t.$set(t.form,"time",e)},expression:"form.time"}})],1)]),a("div",{staticClass:"mar_t20 pad_20 ba_f"},[a("div",{staticClass:"shuju_title"},[t._m(1),a("div",{staticClass:"fon_14 ab r0 mar_r20 curs",on:{click:t.moreGoods}},[t._v("查看更多")])]),a("div",{staticClass:"flex flex-y-top",staticStyle:{height:"380px"}},[a("div",{staticClass:"bflex-5"},[a("div",{staticClass:"t_l"},[a("div",{staticClass:"mar_t10 shuju_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData11,stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"排名"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),a("el-table-column",{attrs:{prop:"count",label:"销量"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"money",label:"销售额(元)"}})],1)],1)])]),t._m(2)])]),a("div",{staticClass:"mar_t20 flex-bet ba_f pad_20"},[a("div",{staticClass:"flex-g-1 mar_r20",staticStyle:{height:"380px"}},[t._m(3),a("div",{staticClass:"mar_t10 shuju_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"排名"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"money",label:"销售额(元)"}})],1)],1)]),a("div",{staticClass:"flex-g-1",staticStyle:{height:"380px"}},[t._m(4),a("div",{staticClass:"mar_t10 shuju_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData2,stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"排名"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"count",label:"访客榜"}})],1)],1)])]),a("edit",{ref:"edit"})],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("商品分析")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("销量分析")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bflex-5 flex-center"},[a("div",{staticStyle:{height:"280px",width:"400px","margin-top":"40px"},attrs:{id:"mainEch"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("支付金额榜")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("访客榜")])])])}],i=(a("d81d"),a("96cf"),a("1da1")),l=a("5530"),n=a("313e"),r=a.n(n),c=a("48fb"),u=a("ed08"),p=a("2f62"),d=a("16c2"),f={components:{Edit:d["a"]},mounted:function(){this.init(),this.init2()},data:function(){return{tableData:[{id:"1",apply_name:"测试商家1",dt_operdate:"100",end_time:"9525"}],tableData2:[],tableData11:[],form:{shopValue:"",timeType:"1",time:[new Date,new Date],Mtime:""},options:[{value:"1",label:"全部"}],options2:[{value:"1",label:"自然日"},{value:"2",label:"自然月"}],zhData:{upTotal:"",noTotal:"",noneTotal:"",downTotal:"",shelfTotal:"",recycleTotal:""},echarts1_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F"],legend:{orient:"vertical",right:0,data:["总销售额","销量"]},series:[{name:"访问来源",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:35,name:"总销售额"},{value:10,name:"销量"}]}]},echarts2_option:{color:["#4284ED","#42CCF0"],tooltip:{trigger:"axis"},legend:{data:["商品总销量","支付总金额"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,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:"line",stack:"总量",smooth:!0,data:[10,52,75,35,40,75,30,10,52,80,25]},{name:"支付总金额",type:"line",stack:"总量",smooth:!0,data:[10,52,20,30,25,35,80,10,52,50,60]}]}}},computed:Object(l["a"])({},Object(p["d"])(["storeId"])),methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,o,s,i,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="",o="",t.form.time&&(a=Object(u["a"])(t.form.time[0]),o=Object(u["a"])(t.form.time[1])),s={startTime:a,endTime:o,storeId:t.storeId},e.next=6,Object(c["r"])(s);case 6:i=e.sent,l=i.data,l&&(t.zhData.upTotal=l.upTotal?l.upTotal:0,t.zhData.noTotal=l.noTotal?l.noTotal:0,t.zhData.noneTotal=l.noneTotal?l.noneTotal:0,t.zhData.downTotal=l.downTotal?l.downTotal:0,t.zhData.shelfTotal=l.shelfTotal?l.shelfTotal:0,t.zhData.recycleTotal=l.recycleTotal?l.recycleTotal:0,t.tableData=l.payFx,t.tableData2=l.userFx,t.tableData11=l.goodFx,t.echarts2_option.series[0].data=l.goodTotal.map((function(t){return t.money})),t.echarts2_option.series[1].data=l.goodMoney.map((function(t){return t.money})),t.echarts2_option.xAxis.data=l.goodTotal.map((function(t){return t.hours})),t.echarts1_option.series[0].data[0].value=+l.totalMoney,t.init2(),t.mainEch(),t.bus.$emit("loading",!1));case 9:case"end":return e.stop()}}),e)})))()},mainEch:function(){var t=r.a.init(document.getElementById("mainEch"));t.setOption(this.echarts1_option,!0)},init2:function(){var t=r.a.init(document.getElementById("zhentiEch"));t.setOption(this.echarts2_option,!0)},changeTime:function(){this.init()},moreGoods:function(){this.$refs["edit"].setStoreId(this.storeId),this.$refs["edit"].showEdit(this.form.time)}}},_=f,b=a("2877"),h=Object(b["a"])(_,o,s,!1,null,null,null);e["default"]=h.exports},7156:function(t,e,a){var o=a("861d"),s=a("d2bb");t.exports=function(t,e,a){var i,l;return s&&"function"==typeof(i=e.constructor)&&i!==a&&o(l=i.prototype)&&l!==a.prototype&&s(t,l),t}},a9e3:function(t,e,a){"use strict";var o=a("83ab"),s=a("da84"),i=a("94ca"),l=a("6eeb"),n=a("5135"),r=a("c6b6"),c=a("7156"),u=a("c04e"),p=a("d039"),d=a("7c73"),f=a("241c").f,_=a("06cf").f,b=a("9bf2").f,h=a("58a8").trim,v="Number",m=s[v],g=m.prototype,C=r(d(g))==v,y=function(t){var e,a,o,s,i,l,n,r,c=u(t,!1);if("string"==typeof c&&c.length>2)if(c=h(c),e=c.charCodeAt(0),43===e||45===e){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:o=2,s=49;break;case 79:case 111:o=8,s=55;break;default:return+c}for(i=c.slice(2),l=i.length,n=0;ns)return NaN;return parseInt(i,o)}return+c};if(i(v,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var x,T=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof T&&(C?p((function(){g.valueOf.call(a)})):r(a)!=v)?c(new m(y(e)),a,T):y(e)},w=o?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0;w.length>D;D++)n(m,x=w[D])&&!n(T,x)&&b(T,x,_(m,x));T.prototype=g,g.constructor=T,l(s,v,T)}},bf19:function(t,e,a){"use strict";var o=a("23e7");o({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var o=a("825a"),s=a("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,a={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(a,[]),e=a instanceof Array}catch(i){}return function(a,i){return o(a),s(i),e?t.call(a,i):a.__proto__=i,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return i}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function o(t){var e=new Date(t).toJSON(),a=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function s(t){var e=new Date(t),a=e.getFullYear(),o=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,s=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getHours()<10?"0"+e.getHours():e.getHours(),l=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),n=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+o+"-"+s+" "+i+":"+l+":"+n}function i(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",o=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",s=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",i=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",l=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",n=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),r=a+o+s+i+l+n;return r}}}]);