(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18aae5d7"],{"365c":function(e,t,r){"use strict";r.d(t,"m",(function(){return a})),r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"o",(function(){return u})),r.d(t,"k",(function(){return s})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return d})),r.d(t,"d",(function(){return l})),r.d(t,"p",(function(){return h})),r.d(t,"g",(function(){return f})),r.d(t,"j",(function(){return _})),r.d(t,"n",(function(){return m})),r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return g})),r.d(t,"c",(function(){return b})),r.d(t,"l",(function(){return y}));var n=r("b775"),a=function(e){return Object(n["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:e})},i=function(e){return Object(n["a"])({url:"/goods/get_goods_sales_value",method:"get",params:e})},o=function(e){return Object(n["a"])({url:"/order/get_order_daily_sales",method:"get",params:e})},u=function(e){return Object(n["a"])({url:"/order/get_store_top10",method:"get",params:e})},s=function(e){return Object(n["a"])({url:"/index/get_warea_order_by",method:"get",params:e})},c=function(e){return Object(n["a"])({url:"/goods/get_province_sales_orderBy",method:"get",params:e})},d=function(e){return Object(n["a"])({url:"/index/get_sale_info",method:"get",params:e})},l=function(e){return Object(n["a"])({url:"/index/all_order_by",method:"get",params:e})},h=function(e){return Object(n["a"])({url:"/index/yesterday_order_by",method:"get",params:e})},f=function(e){return Object(n["a"])({url:"/index/get_history_total",method:"get",params:e})},_=function(e){return Object(n["a"])({url:"/index/get_sku_history_num",method:"get",params:e})},m=function(e){return Object(n["a"])({url:"/index/get_sku_order_by",method:"get",params:e})},p=function(e){return Object(n["a"])({url:"/index/get_every_add_agent",method:"get",params:e})},g=function(e){return Object(n["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:e})},b=function(e){return Object(n["a"])({url:"/index/get_every_add_agent_line",method:"get",params:e})},y=function(e){return Object(n["a"])({url:"/index/get_agent_pay_rate",method:"get",params:e})}},bf21:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{ref:"style_num_echart",style:{height:e.height,width:e.width}})])},a=[],i=r("1da1"),o=(r("96cf"),r("159b"),r("d81d"),r("b0c0"),r("313e")),u=r("feb2"),s=r("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 r={};return e.forEach((function(e){r[e]=t?[]:{}})),r},getOrderAccount:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.$loading(),t.prev=1,t.next=4,Object(s["f"])();case 4:n=t.sent,a=n.code,i=n.data,r.close(),200===a&&(i.map((function(t){e.timeLineMap.push(t.goods.name),e.dataMap.push(t.amount)})),e.initChart()),t.next=15;break;case 11:t.prev=11,t.t0=t["catch"](1),r.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:"销售金额",axisLabel:{formatter:"{value}元"},axisLine:{show:!0}},series:[{data:e.dataMap,type:"bar",label:{show:!0,position:"top"},name:"销量",barWidth:30,itemStyle:{normal:{color:"#00e5ce"}}}]}),window.onresize=e.chart.resize}))}}},d=c,l=r("2877"),h=Object(l["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},feb2:function(e,t,r){"use strict";var n=r("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){var e=this;this.__resizeHandler=Object(n["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()}}}}}]);