(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21251418"],{1075:function(e,t,a){"use strict";var i=a("57e7"),n=a.n(i);n.a},"3bbe":function(e,t,a){var i=a("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"57e7":function(e,t,a){},7156:function(e,t,a){var i=a("861d"),n=a("d2bb");e.exports=function(e,t,a){var o,r;return n&&"function"==typeof(o=t.constructor)&&o!==a&&i(r=o.prototype)&&r!==a.prototype&&n(e,r),e}},a9e3:function(e,t,a){"use strict";var i=a("83ab"),n=a("da84"),o=a("94ca"),r=a("6eeb"),l=a("5135"),s=a("c6b6"),c=a("7156"),u=a("c04e"),d=a("d039"),p=a("7c73"),m=a("241c").f,f=a("06cf").f,h=a("9bf2").f,b=a("58a8").trim,g="Number",v=n[g],y=v.prototype,_=s(p(y))==g,w=function(e){var t,a,i,n,o,r,l,s,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=b(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){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,l=0;ln)return NaN;return parseInt(o,i)}return+c};if(o(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,D=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof D&&(_?d((function(){y.valueOf.call(a)})):s(a)!=g)?c(new v(w(t)),a,D):w(t)},I=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(","),C=0;I.length>C;C++)l(v,x=I[C])&&!l(D,x)&&h(D,x,f(v,x));D.prototype=y,y.constructor=D,r(n,g,D)}},bc18:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"ba_f outmain"},[e._m(0),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:e.form,"label-width":"100px"}},[a("div",{staticClass:"flex ba_f"},[a("el-form-item",{attrs:{label:"选择店铺:"}},[a("div",{},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeStore},model:{value:e.form.shopValue,callback:function(t){e.$set(e.form,"shopValue",t)},expression:"form.shopValue"}},e._l(e.options,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name+"(ID:"+e.id+")",value:e.id}})})),1)],1)])],1)]),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"},[e._v("商品总数")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.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"},[e._v("已上架商品")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.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"},[e._v("已下架商品")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.jeData.downGoods||0))])])])])])],1),a("div",{staticClass:"mar_t20 ba_f pad_20"},[e._m(1),a("div",{staticClass:"pad_20 flex-bet flex-y-top"},[a("el-form",{staticStyle:{width:"100%"},attrs:{inline:!0,model:e.formInline}},[a("el-form-item",{attrs:{label:"排行类型:"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.selectType},model:{value:e.formInline.type,callback:function(t){e.$set(e.formInline,"type",t)},expression:"formInline.type"}},e._l(e.lyOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.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:e.selectType},model:{value:e.formInline.timeType,callback:function(t){e.$set(e.formInline,"timeType",t)},expression:"formInline.timeType"}},[a("el-radio-button",{attrs:{label:"1"}},[e._v("今天")]),a("el-radio-button",{attrs:{label:"2"}},[e._v("近七天")]),a("el-radio-button",{attrs:{label:"3"}},[e._v("近十五天")]),a("el-radio-button",{attrs:{label:"4"}},[e._v("自定义时间")])],1),"4"==e.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":e.pickerOptions},on:{change:e.selectType},model:{value:e.formInline.time,callback:function(t){e.$set(e.formInline,"time",t)},expression:"formInline.time"}})],1):e._e()],1)])]),a("div",{staticClass:"flex ba_f"},[a("el-form-item",{attrs:{label:"商品导出:"}},[a("a",{staticClass:"mar_l10",attrs:{href:e.handelExport()}},[a("el-button",{attrs:{size:"medium",type:"primary"}},[e._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:e.tableData2}},[a("el-table-column",{attrs:{type:"index",label:"排名",width:"300"}}),e._v(" > "),a("el-table-column",{attrs:{prop:"categoryName",label:"商品分类"}}),a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),e._v(" > "),a("el-table-column",{attrs:{prop:"num",label:"销量(件)"}}),a("el-table-column",{attrs:{prop:"money",label:"销售额(元)"}})],1)],1)])])])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("商品概况")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("商品排行")])])])}],o=(a("96cf"),a("1da1")),r=a("5530"),l=a("313e"),s=a.n(l),c=a("48fb"),u=a("ed08"),d=a("2f62"),p=a("365c"),m={mounted:function(){this.bus.$emit("loading",!0),this.init(),window.addEventListener("resize",this.initchart)},created:function(){this.form.shopValue=this.market[0].id,this.options=this.market},data:function(){var e=this;return{formInline:{type:"1",timeType:"1",time:[new Date,new Date],Mtime:""},lyOptions:[{value:"1",label:"按商品销量排行"},{value:"2",label:"按商品销售额排行"}],selectData:"",pickerOptions:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.selectData=i.getTime(),a&&(e.selectData="")},disabledDate:function(t){if(e.isNull(e.selectData))return!1;var a=new Date(e.selectData);return a.getMonth()>new Date(t).getMonth()||a.getMonth()