(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ae892b5"],{"0474":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"style_num_echart",style:{height:e.height,width:e.width}})])},a=[],i=n("1da1"),o=(n("96cf"),n("159b"),n("d81d"),n("b0c0"),n("313e")),u=n("feb2"),s=n("365c"),c={mixins:[u["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],dataMap:{},lengedMap:[],numMap:[],cycle:"3"}},created:function(){this.getOrderAccount()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{createObjectByArray:function(e,t){var n={};return e.forEach((function(e){n[e]=t?[]:{}})),n},getOrderAccount:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$loading(),t.prev=1,t.next=4,Object(s["f"])();case 4:r=t.sent,a=r.code,i=r.data,n.close(),200===a&&(i.map((function(t){e.timeLineMap.push(t.goods.name),e.lengedMap.push(t.amount),e.numMap.push(t.total)})),e.initChart()),t.next=15;break;case 11:t.prev=11,t.t0=t["catch"](1),n.close(),console.log("获取商品销售量失败:".concat(t.t0));case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))()},initChart:function(){var e=this;this.$nextTick((function(){e.chart=o["init"](e.$refs.style_num_echart),e.chart.clear(),e.chart.setOption({title:{text:"款式总销量"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:e.timeLineMap},yAxis:{type:"value",name:"销售数量",axisLine:{show:!0}},series:[{data:e.numMap,type:"bar",label:{show:!0,position:"top"},name:"销量",barWidth:30,itemStyle:{}}]}),window.onresize=e.chart.resize}))}}},d=c,l=n("2877"),h=Object(l["a"])(d,r,a,!1,null,null,null);t["default"]=h.exports},"365c":function(e,t,n){"use strict";n.d(t,"m",(function(){return a})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"o",(function(){return u})),n.d(t,"k",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"p",(function(){return h})),n.d(t,"g",(function(){return _})),n.d(t,"j",(function(){return m})),n.d(t,"n",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"l",(function(){return y}));var r=n("b775"),a=function(e){return Object(r["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:e})},i=function(e){return Object(r["a"])({url:"/goods/get_goods_sales_value",method:"get",params:e})},o=function(e){return Object(r["a"])({url:"/order/get_order_daily_sales",method:"get",params:e})},u=function(e){return Object(r["a"])({url:"/order/get_store_top10",method:"get",params:e})},s=function(e){return Object(r["a"])({url:"/index/get_warea_order_by",method:"get",params:e})},c=function(e){return Object(r["a"])({url:"/goods/get_province_sales_orderBy",method:"get",params:e})},d=function(e){return Object(r["a"])({url:"/index/get_sale_info",method:"get",params:e})},l=function(e){return Object(r["a"])({url:"/index/all_order_by",method:"get",params:e})},h=function(e){return Object(r["a"])({url:"/index/yesterday_order_by",method:"get",params:e})},_=function(e){return Object(r["a"])({url:"/index/get_history_total",method:"get",params:e})},m=function(e){return Object(r["a"])({url:"/index/get_sku_history_num",method:"get",params:e})},f=function(e){return Object(r["a"])({url:"/index/get_sku_order_by",method:"get",params:e})},p=function(e){return Object(r["a"])({url:"/index/get_every_add_agent",method:"get",params:e})},g=function(e){return Object(r["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:e})},b=function(e){return Object(r["a"])({url:"/index/get_every_add_agent_line",method:"get",params:e})},y=function(e){return Object(r["a"])({url:"/index/get_agent_pay_rate",method:"get",params:e})}},feb2:function(e,t,n){"use strict";var r=n("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){var e=this;this.__resizeHandler=Object(r["b"])((function(){e.chart&&e.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(e){"width"===e.propertyName&&this.__resizeHandler()}}}}}]);