(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-348befbb"],{"1aaa":function(t,e,a){"use strict";a("6e89")},"365c":function(t,e,a){"use strict";a.d(e,"l",(function(){return n})),a.d(e,"e",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"n",(function(){return s})),a.d(e,"d",(function(){return d})),a.d(e,"k",(function(){return c})),a.d(e,"h",(function(){return u})),a.d(e,"g",(function(){return l})),a.d(e,"c",(function(){return m})),a.d(e,"i",(function(){return h})),a.d(e,"a",(function(){return _})),a.d(e,"o",(function(){return g})),a.d(e,"f",(function(){return p})),a.d(e,"j",(function(){return f})),a.d(e,"m",(function(){return b}));var r=a("b775"),n=function(t){return Object(r["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:t})},i=function(t){return Object(r["a"])({url:"/goods/get_goods_sales_value",method:"get",params:t})},o=function(t){return Object(r["a"])({url:"/order/get_order_daily_sales",method:"get",params:t})},s=function(t){return Object(r["a"])({url:"/order/get_store_top10",method:"get",params:t})},d=function(t){return Object(r["a"])({url:"/index/index",method:"get",params:t})},c=function(t){return Object(r["a"])({url:"/index/get_warea_order_by",method:"get",params:t})},u=function(t){return Object(r["a"])({url:"/goods/get_province_sales_orderBy",method:"get",params:t})},l=function(t){return Object(r["a"])({url:"/index/get_province_sales_attr",method:"get",params:t})},m=function(t){return Object(r["a"])({url:"/goods/get_city_sales_orderBy",method:"get",params:t})},h=function(t){return Object(r["a"])({url:"/index/get_sale_info",method:"get",params:t})},_=function(t){return Object(r["a"])({url:"/index/all_order_by",method:"get",params:t})},g=function(t){return Object(r["a"])({url:"/index/yesterday_order_by",method:"get",params:t})},p=function(t){return Object(r["a"])({url:"/index/get_history_total",method:"get",params:t})},f=function(t){return Object(r["a"])({url:"/index/get_sku_history_num",method:"get",params:t})},b=function(t){return Object(r["a"])({url:"/index/get_sku_order_by",method:"get",params:t})}},"6e89":function(t,e,a){},dda1:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"echarts"},[a("el-select",{on:{change:t.getOrderAccount},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-option",{attrs:{label:"省份",value:"3"}}),a("el-option",{attrs:{label:"商品",value:"2"}})],1),a("div",{ref:"style_num_echart",style:{height:t.height,width:t.width}})],1)},n=[],i=a("1da1"),o=a("ade3"),s=(a("96cf"),a("b64b"),a("d81d"),a("4de4"),a("159b"),a("313e")),d=a("feb2"),c=a("365c"),u={mixins:[d["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return Object(o["a"])({chart:null,timeLineMap:[],dataMap:{},lengedMap:[],numMap:[],type:"3",test:{"上海":[{goods:{main_attr:"精装版"},total:"22"},{goods:{main_attr:"简约版"},total:"32"},{goods:{main_attr:"纯棉版"},total:"15"},{goods:{main_attr:"纯棉老人版"},total:"11"}],"内蒙古自治区":[{goods:{main_attr:"精装版"},total:"22"},{goods:{main_attr:"简约版"},total:"35"},{goods:{main_attr:"纯棉版"},total:"32"},{goods:{main_attr:"纯棉老人版"},total:"63"}],"北京":[{goods:{main_attr:"精装版"},total:"75"},{goods:{main_attr:"简约版"},total:"25"},{goods:{main_attr:"纯棉版"},total:"45"},{goods:{main_attr:"纯棉老人版"},total:"63"}],"四川省":[{goods:{main_attr:"精装版"},total:"35"},{goods:{main_attr:"简约版"},total:"35"},{goods:{main_attr:"纯棉版"},total:"35"},{goods:{main_attr:"纯棉老人版"},total:"35"}]}},"dataMap",[{name:"精装版",data:[],type:"bar",stack:"销量",barWidth:30},{name:"简约版",data:[],type:"bar",stack:"销量",barWidth:30},{name:"纯棉版",data:[],type:"bar",stack:"销量",barWidth:30},{name:"纯棉老人版",data:[],type:"bar",stack:"销量",barWidth:30}])},created:function(){this.getOrderAccount();var t=this.test;this.timeLineMap=Object.keys(t);var e=this.dataMap;for(var a in t)t[a].map((function(t){"精装版"==t.goods.main_attr&&e[0].data.push(t.total),"简约版"==t.goods.main_attr&&e[1].data.push(t.total),"纯棉版"==t.goods.main_attr&&e[2].data.push(t.total),"纯棉老人版"==t.goods.main_attr&&e[3].data.push(t.total)}));this.initCharts()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getVal:function(t,e){t.filter((function(t){return t.goods.main_attr===e}))},initCharts:function(){var t=this;this.$nextTick((function(){t.chart=s["init"](t.$refs.style_num_echart),t.chart.clear(),t.chart.setOption({title:{text:"省份销量",top:"2%"},legend:{data:["精装版","简约版","纯棉版","纯棉老人版"]},tooltip:{trigger:"axis"},xAxis:{type:"category",data:t.timeLineMap,axisLabel:{interval:0,rotate:40}},yAxis:{type:"value",axisLine:{show:!0}},grid:{bottom:"25%",top:"10%"},dataZoom:[{type:"slider"},{type:"inside"}],series:t.dataMap}),window.onresize=t.chart.resize}))},createObjectByArray:function(t,e){var a={};return t.forEach((function(t){a[t]=e?[]:{}})),a},getOrderAccount:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,r,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.$loading(),e.prev=1,e.next=4,Object(c["c"])({type:"2",province:"河南"});case 4:r=e.sent,n=r.code,i=r.data,a.close(),200===n&&console.log(i,"data"),e.next=15;break;case 11:e.prev=11,e.t0=e["catch"](1),a.close(),console.log("获取团队售量失败:".concat(e.t0));case 15:case"end":return e.stop()}}),e,null,[[1,11]])})))()},initChart:function(){var t=this;this.$nextTick((function(){t.chart=s["init"](t.$refs.style_num_echart),t.chart.clear(),t.chart.setOption({title:{text:"省份销量",top:"50%"},tooltip:{trigger:"axis"},legend:{data:t.lengedMap},xAxis:{type:"category",axisLabel:{interval:0,rotate:40},data:t.timeLineMap},yAxis:{type:"value",axisLine:{show:!0}},series:[{name:"不可用",type:"bar",data:[5,20,36,10],itemStyle:{normal:{color:"#FF8849"}}},{name:"可用",type:"bar",data:[40,22,18,35],itemStyle:{normal:{color:"#3FBB49"}}}]}),window.onresize=t.chart.resize}))}}},l=u,m=(a("1aaa"),a("2877")),h=Object(m["a"])(l,r,n,!1,null,"beed92a4",null);e["default"]=h.exports},feb2:function(t,e,a){"use strict";var r=a("ed08");e["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){var t=this;this.__resizeHandler=Object(r["b"])((function(){t.chart&&t.chart.resize()}),100),window.addEventListener("resize",this.__resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.__resizeHandler),this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},methods:{$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.__resizeHandler()}}}}}]);