chunk-43734d48.e776ae92.js 6.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43734d48"],{"365c":function(t,e,r){"use strict";r.d(e,"m",(function(){return a})),r.d(e,"f",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"o",(function(){return s})),r.d(e,"k",(function(){return d})),r.d(e,"h",(function(){return u})),r.d(e,"i",(function(){return c})),r.d(e,"d",(function(){return l})),r.d(e,"p",(function(){return h})),r.d(e,"g",(function(){return f})),r.d(e,"j",(function(){return m})),r.d(e,"n",(function(){return p})),r.d(e,"a",(function(){return _})),r.d(e,"b",(function(){return g})),r.d(e,"c",(function(){return b})),r.d(e,"l",(function(){return y}));var n=r("b775"),a=function(t){return Object(n["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:t})},i=function(t){return Object(n["a"])({url:"/goods/get_goods_sales_value",method:"get",params:t})},o=function(t){return Object(n["a"])({url:"/order/get_order_daily_sales",method:"get",params:t})},s=function(t){return Object(n["a"])({url:"/order/get_store_top10",method:"get",params:t})},d=function(t){return Object(n["a"])({url:"/index/get_warea_order_by",method:"get",params:t})},u=function(t){return Object(n["a"])({url:"/goods/get_province_sales_orderBy",method:"get",params:t})},c=function(t){return Object(n["a"])({url:"/index/get_sale_info",method:"get",params:t})},l=function(t){return Object(n["a"])({url:"/index/all_order_by",method:"get",params:t})},h=function(t){return Object(n["a"])({url:"/index/yesterday_order_by",method:"get",params:t})},f=function(t){return Object(n["a"])({url:"/index/get_history_total",method:"get",params:t})},m=function(t){return Object(n["a"])({url:"/index/get_sku_history_num",method:"get",params:t})},p=function(t){return Object(n["a"])({url:"/index/get_sku_order_by",method:"get",params:t})},_=function(t){return Object(n["a"])({url:"/index/get_every_add_agent",method:"get",params:t})},g=function(t){return Object(n["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:t})},b=function(t){return Object(n["a"])({url:"/index/get_every_add_agent_line",method:"get",params:t})},y=function(t){return Object(n["a"])({url:"/index/get_agent_pay_rate",method:"get",params:t})}},"44f1":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("a9e3"),r("b680"),r("ac1f"),r("5319"),r("4ec9"),r("d3b7"),r("3ca3"),r("ddb0"),r("4de4"),r("d81d");function n(t,e){return t?(Number(t)+"").replace(/\d{1,4}(?=(\d{4})+(\.\d*)?$)/g,"$&,"):0}},"4ec9":function(t,e,r){"use strict";var n=r("6d61"),a=r("6566");t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),a)},9690:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",[r("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.dateVal,callback:function(e){t.dateVal=e},expression:"dateVal"}})],1),r("div",{ref:"style_num_echart",staticStyle:{"margin-top":"20px"},style:{height:t.height,width:t.width}})])},a=[],i=r("1da1"),o=(r("96cf"),r("313e")),s=r("feb2"),d=r("365c"),u=r("44f1"),c={mixins:[s["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],accountMap:[],cotton:[],old:[],simple:[],super:[],dateVal:""}},created:function(){this.format=u["a"]},mounted:function(){var t=this;this.$nextTick((function(){t.getData()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{changeDate:function(){if(this.timeLineMap=[],this.cotton=[],this.old=[],this.simple=[],this.super=[],this.dateVal){var t=this.dateVal[0],e=this.dateVal[1];this.getData(t,e)}else this.getData()},getData:function(t,e){var r=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var a,i,o,s,u,c,l;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=r.$loading(),n.prev=1,n.next=4,Object(d["i"])({startdate:t,enddate:e});case 4:if(i=n.sent,o=i.code,s=i.data,a.close(),200===o){for(c in u=[],s)for(l in s[c])-1===r.timeLineMap.indexOf(l)&&(u.push(l),r.timeLineMap=u.sort()),"cotton"===c&&r.cotton.push(s[c][l].total),"old"===c&&r.old.push(s[c][l].total),"simple"===c&&r.simple.push(s[c][l].total),"super"===c&&r.super.push(s[c][l].total);r.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),a.close(),console.log("".concat(n.t0));case 15:case"end":return n.stop()}}),n,null,[[1,11]])})))()},initChart:function(){var t=this;this.$nextTick((function(){t.chart=o["init"](t.$refs.style_num_echart),t.chart.clear(),t.chart.setOption({title:{text:"款式日销售数量"},tooltip:{trigger:"axis"},legend:{data:["精装版","简约版","老人版","纯棉老人版"]},dataZoom:[{type:"slider"},{type:"inside"}],xAxis:{type:"category",name:"日期",data:t.timeLineMap,axisLabel:{textStyle:{color:"#000"}}},yAxis:{type:"value",name:"数量",axisLabel:{textStyle:{color:"#000"},formatter:function(e){return t.format(e,!0)}},axisLine:{show:!0}},series:[{data:t.super,type:"line",name:"精装版",stack:"总量",label:{show:!0,position:"top",color:"black",formatter:function(e){return t.format(e.data,!0)}},barWidth:60,itemStyle:{normal:{color:"#9BCA63"}}},{data:t.simple,type:"line",name:"简约版",stack:"总量",label:{show:!0,position:"top",color:"black",formatter:function(e){return t.format(e.data,!0)}},barWidth:60,itemStyle:{normal:{color:"#F4E001"}}},{data:t.old,type:"line",stack:"总量",name:"老人版",label:{show:!0,position:"top",color:"black",formatter:function(e){return t.format(e.data,!0)}},barWidth:60,itemStyle:{normal:{color:"#D7504B"}}},{data:t.cotton,type:"line",stack:"总量",name:"纯棉老人版",label:{show:!0,position:"top",color:"black",formatter:function(e){return t.format(e.data,!0)}},barWidth:60,itemStyle:{normal:{color:"#f00"}}}]}),window.onresize=t.chart.resize}))}}},l=c,h=r("2877"),f=Object(h["a"])(l,n,a,!1,null,null,null);e["default"]=f.exports},feb2:function(t,e,r){"use strict";var n=r("ed08");e["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){var t=this;this.__resizeHandler=Object(n["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()}}}}}]);