(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-adc34cac"],{"04dc":function(t,e,a){"use strict";var i=a("9998"),n=a.n(i);n.a},"3bbe":function(t,e,a){var i=a("861d");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,e,a){var i=a("861d"),n=a("d2bb");t.exports=function(t,e,a){var o,r;return n&&"function"==typeof(o=e.constructor)&&o!==a&&i(r=o.prototype)&&r!==a.prototype&&n(t,r),t}},"8c5a":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"mar_t20 ba_f outmain"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTabClick},model:{value:t.activeName1,callback:function(e){t.activeName1=e},expression:"activeName1"}},[a("el-tab-pane",{attrs:{label:"店内订单概况",name:"dnddgk"}}),a("el-tab-pane",{attrs:{label:"店内支付概况",name:"dnzfgk"}}),a("el-tab-pane",{attrs:{label:"店内商品概况",name:"dnspgk"}})],1),t._m(0),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[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 wei"},[t._v(t._s(t.jeData.allGoods||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[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 wei"},[t._v(t._s(t.jeData.onGoods||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[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 wei"},[t._v(t._s(t.jeData.downGoods||0))])])])])])],1),a("div",{staticClass:"mar_t20 ba_f pad_20"},[t._m(1),a("div",{staticClass:"pad_20 flex-bet flex-y-top"},[a("el-form",{staticStyle:{width:"100%"},attrs:{inline:!0,model:t.formInline}},[a("el-form-item",{attrs:{label:"排行类型:"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.selectType},model:{value:t.formInline.type,callback:function(e){t.$set(t.formInline,"type",e)},expression:"formInline.type"}},t._l(t.lyOptions,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{staticClass:"mar_l20",attrs:{label:"查询日期:"}},[a("div",{staticClass:"flex-bet"},[a("div",[a("el-radio-group",{on:{change:t.selectType},model:{value:t.formInline.timeType,callback:function(e){t.$set(t.formInline,"timeType",e)},expression:"formInline.timeType"}},[a("el-radio-button",{attrs:{label:"1"}},[t._v("今天")]),a("el-radio-button",{attrs:{label:"2"}},[t._v("近七天")]),a("el-radio-button",{attrs:{label:"3"}},[t._v("近十五天")]),a("el-radio-button",{attrs:{label:"4"}},[t._v("自定义时间")])],1),"4"==t.formInline.timeType?a("span",{staticClass:"mar_l20"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日","picker-options":t.pickerOptions},on:{change:t.selectType},model:{value:t.formInline.time,callback:function(e){t.$set(t.formInline,"time",e)},expression:"formInline.time"}})],1):t._e()],1)])]),a("div",{staticClass:"flex ba_f"},[a("el-form-item",{attrs:{label:"商品导出:"}},[a("a",{staticClass:"mar_l10",attrs:{href:t.handelExport()}},[a("el-button",{attrs:{size:"medium",type:"primary"}},[t._v("导出商品")])],1)])],1)],1)],1),a("div",{staticClass:"flex-g-1 mar_r20"},[a("div",{staticClass:"mar_t10 shuju_table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData2}},[a("el-table-column",{attrs:{type:"index",label:"排名",width:"300"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"categoryName",label:"商品分类"}}),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),t._v(" > "),a("el-table-column",{attrs:{prop:"num",label:"销量(件)"}}),a("el-table-column",{attrs:{prop:"money",label:"销售额(元)"}})],1)],1)])])])},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_t20"},[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("商品排行")])])])}],o=(a("96cf"),a("1da1")),r=a("5530"),s=a("313e"),l=a.n(s),c=a("48fb"),d=a("ed08"),u=a("2f62"),p=a("365c"),m={mounted:function(){this.bus.$emit("loading",!0),this.init(),window.addEventListener("resize",this.initchart)},computed:Object(r["a"])({},Object(u["d"])(["storeId"])),data:function(){var t=this;return{formInline:{type:"1",timeType:"1",time:[new Date,new Date],Mtime:""},lyOptions:[{value:"1",label:"按商品销量排行"},{value:"2",label:"按商品销售额排行"}],activeName1:"dnspgk",selectData:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.selectData=i.getTime(),a&&(t.selectData="")},disabledDate:function(e){if(t.isNull(t.selectData))return!1;var a=new Date(t.selectData);return a.getMonth()>new Date(e).getMonth()||a.getMonth()2)if(c=b(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:i=2,n=49;break;case 79:case 111:i=8,n=55;break;default:return+c}for(o=c.slice(2),r=o.length,s=0;sn)return NaN;return parseInt(o,i)}return+c};if(o(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,D=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof D&&(_?u((function(){y.valueOf.call(a)})):l(a)!=g)?c(new v(w(e)),a,D):w(e)},C=i?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),I=0;C.length>I;I++)s(v,x=C[I])&&!s(D,x)&&h(D,x,f(v,x));D.prototype=y,y.constructor=D,r(n,g,D)}},bf19:function(t,e,a){"use strict";var i=a("23e7");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var i=a("825a"),n=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(o){}return function(a,o){return i(a),n(o),e?t.call(a,o):a.__proto__=o,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function i(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 n(t){var e=new Date(t),a=e.getFullYear(),i=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+i+"-"+n+" "+o+":"+r+":"+s}function o(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",n=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",r=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),l=a+i+n+o+r+s;return l}}}]);