1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e5a65464"],{"03c3":function(t,e,a){"use strict";a("c0eb")},"0474":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{ref:"style_num_echart",style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("159b"),a("d81d"),a("b0c0"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["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(t,e){var a={};return t.forEach((function(t){a[t]=e?[]:{}})),a},getOrderAccount:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r;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(l["e"])();case 4:n=e.sent,i=n.code,r=n.data,a.close(),200===i&&(r.map((function(e){t.timeLineMap.push(e.goods.name),t.lengedMap.push(e.amount),t.numMap.push(e.total)})),t.initChart()),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:"款式总销量"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:t.timeLineMap},yAxis:{type:"value",name:"销售数量",axisLine:{show:!0}},series:[{data:t.numMap,type:"bar",label:{show:!0,position:"top"},name:"销量",barWidth:30,itemStyle:{}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},"07ac":function(t,e,a){var n=a("23e7"),i=a("6f53").values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},"1aaa":function(t,e,a){"use strict";a("6e89")},4242:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{ref:"style_num_echart",style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("159b"),a("d81d"),a("b0c0"),a("fb6a"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],cycle:"3",first:""}},created:function(){this.getOrderAccount()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{createObjectByArray:function(t,e){var a={};return t.forEach((function(t){a[t]=e?[]:{}})),a},getOrderAccount:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r;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(l["n"])();case 4:n=e.sent,i=n.code,r=n.data,a.close(),200===i&&(r.map((function(e){e.store&&e.store.name&&t.timeLineMap.push(e.store.name.length<10?e.store.name:e.store.name.slice(0,10)+"..."),t.lengedMap.push(e.money)})),t.initChart()),e.next=15;break;case 11:e.prev=11,e.t0=e["catch"](1),a.close(),console.log(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:"店铺销售前十"},xAxis:{type:"category",data:t.timeLineMap,name:"店铺",axisLabel:{textStyle:{color:"#000"},interval:0}},yAxis:{type:"value",name:"金额",axisLabel:{show:!0,textStyle:{color:"#000"}},axisLine:{show:!0}},series:[{data:t.lengedMap,type:"bar",label:{show:!0,position:"top",color:"black"},barWidth:30,itemStyle:{normal:{color:"#1A9F90"}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},"4e89":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("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),a("div",{ref:"style_num_echart",staticStyle:{"margin-top":"20px"},style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],numMap:[],dateVal:""}},created:function(){this.getData()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{changeDate:function(){if(this.timeLineMap=[],this.lengedMap=[],this.numMap=[],this.dateVal){var t=this.dateVal[0],e=this.dateVal[1];this.getData(t,e)}else this.getData()},getData:function(t,e){var a=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,r,s,o,c,d;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=a.$loading(),n.prev=1,n.next=4,Object(l["f"])({startdate:t,enddate:e});case 4:if(r=n.sent,s=r.code,o=r.data,i.close(),200===s){for(c in o)d="","all"===c&&(d="销售额"),"cancel"==c&&(d="取消额"),"refund"==c&&(d="退货额"),a.timeLineMap.push(d),a.lengedMap.push(o[c].account),a.numMap.push(o[c].total);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),i.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=s["init"](t.$refs.style_num_echart),t.chart.clear(),t.chart.setOption({title:{text:"销售取消退货数据汇总"},tooltip:{trigger:"axis"},legend:{data:["金额","数量"]},xAxis:{type:"category",data:t.timeLineMap},yAxis:[{type:"value",name:"数量",axisLine:{show:!0}},{type:"value",name:"金额",axisLine:{show:!0}}],series:[{data:t.numMap,yAxisIndex:0,type:"bar",label:{show:!0,position:"top"},name:"数量",barWidth:30,itemStyle:{normal:{color:"#FE8463"}}},{data:t.lengedMap,yAxisIndex:1,type:"bar",label:{show:!0,position:"top"},name:"金额",barWidth:30,itemStyle:{normal:{color:"#26C0C0"}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},"6e89":function(t,e,a){},"6f53":function(t,e,a){var n=a("83ab"),i=a("df75"),r=a("fc6a"),s=a("d1e7").f,o=function(t){return function(e){var a,o=r(e),l=i(o),c=l.length,d=0,u=[];while(c>d)a=l[d++],n&&!s.call(o,a)||u.push(t?[a,o[a]]:o[a]);return u}};t.exports={entries:o(!0),values:o(!1)}},9406:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home"},[a("div",{staticClass:"home_data"},[a("el-row",{attrs:{gutter:20,type:"flex",justify:"space-between"}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content"},[a("div",[a("div",{staticClass:"name"},[t._v("用户总数")]),a("div",{staticClass:"num"},[t._v(t._s(t.sum.user_count))])]),a("svg-icon",{attrs:{"icon-class":"user","class-name":"custom-class"}})],1)]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content"},[a("div",[a("div",{staticClass:"name"},[t._v("店铺总数")]),a("div",{staticClass:"num"},[t._v(t._s(t.sum.store_count))])]),a("svg-icon",{attrs:{"icon-class":"store","class-name":"custom-class"}})],1)]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content"},[a("div",[a("div",{staticClass:"name"},[t._v("商品总数")]),a("div",{staticClass:"num"},[t._v(t._s(t.sum.goods_count))])]),a("svg-icon",{attrs:{"icon-class":"goods","class-name":"custom-class"}})],1)]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"grid-content"},[a("div",[a("div",{staticClass:"name"},[t._v("总销售额")]),a("div",{staticClass:"num"},[t._v(t._s(t.sum.order_sale))])]),a("svg-icon",{attrs:{"icon-class":"sale","class-name":"custom-class"}})],1)])],1)],1),a("div",{staticClass:"echarts"},[a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart1"},[a("sale-info",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart2"},[a("sale-num",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart3"},[a("type-all",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart4"},[a("daily-sale",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart5"},[a("daily-num",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"table_con"},[a("div",{ref:"echart6",staticClass:"rank"},[t._v("尺码总销售排名")]),a("el-table",{ref:"allTable",staticStyle:{width:"100%","max-height":"480px",overflow:"auto"},attrs:{border:"",data:t.skuList,height:"480"},on:{"sort-change":t.toSort}},[a("el-table-column",{attrs:{label:"排名",type:"index",align:"center",width:"60",index:function(t){return t+1}}}),a("el-table-column",{attrs:{label:"商品名称",prop:"name",align:"center"}}),a("el-table-column",{attrs:{label:"款式",prop:"type",align:"center"}}),a("el-table-column",{attrs:{label:"尺码",prop:"size",align:"center"}}),a("el-table-column",{attrs:{label:"销售数量",prop:"total",align:"center",sortable:"custom"}}),a("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center",sortable:"custom"}})],1)],1),a("el-row",{staticClass:"table_con"},[a("div",{ref:"echart7",staticClass:"rank"},[t._v("总销量数据排名")]),a("el-table",{ref:"allTable",staticStyle:{width:"100%","max-height":"480px",overflow:"auto"},attrs:{border:"",data:t.list,height:"480"}},[a("el-table-column",{attrs:{label:"排名",type:"index",align:"center",width:"60",index:function(t){return t+1}}}),a("el-table-column",{staticStyle:{padding:"0"},attrs:{label:"头像",prop:"img",width:"80","label-class-name":"label",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[a("img",{staticClass:"hoverImg",attrs:{width:"36",height:"36",src:e.img}})]}}])}),a("el-table-column",{attrs:{label:"店铺名称",prop:"name",align:"center"}}),a("el-table-column",{attrs:{label:"销售数量",prop:"total",align:"center"}}),a("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center"}})],1)],1),a("el-row",{staticClass:"table_con",staticStyle:{height:"600px"}},[a("div",{ref:"echart8",staticClass:"rank"},[t._v("昨日销量数据排名")]),a("div",{staticClass:"tabs"},[a("div",{class:1==t.current?"active":"",on:{click:function(e){return t.choose(1)}}},[t._v(" 精装版 ")]),a("div",{class:2==t.current?"active":"",on:{click:function(e){return t.choose(2)}}},[t._v(" 简约版 ")]),a("div",{class:3==t.current?"active":"",on:{click:function(e){return t.choose(3)}}},[t._v(" 老人版 ")]),a("div",{class:4==t.current?"active":"",on:{click:function(e){return t.choose(4)}}},[t._v(" 纯棉老人版 ")])]),a("el-table",{ref:"yesTable",staticStyle:{width:"100%","max-height":"480px",overflow:"auto"},attrs:{border:"",data:t.yeslist,height:"480"}},[a("el-table-column",{attrs:{label:"排名",type:"index",align:"center",width:"60",index:function(t){return t+1}}}),a("el-table-column",{staticStyle:{padding:"0"},attrs:{label:"头像",prop:"img",width:"80","label-class-name":"label",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[a("img",{staticClass:"hoverImg",attrs:{width:"36",height:"36",src:e.img}})]}}])}),a("el-table-column",{attrs:{label:"店铺名称",prop:"name",align:"center"}}),a("el-table-column",{attrs:{label:"销售数量",prop:"total",align:"center"}}),a("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center"}})],1)],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart8"},[a("history-total",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart9"},[a("team-top",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart10"},[a("top-ten",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart11"},[a("skuday-sale",{attrs:{width:"100%"}})],1)])],1)],1),a("div",{staticClass:"nav"},t._l(t.navList,(function(e,n){return a("div",{key:n,class:t.cur==e.id?"active":"",on:{click:function(a){return t.toPosition(e.id)}}},[t._v(" "+t._s(e.text)+" ")])})),0)])},i=[],r=a("5530"),s=a("2f62"),o=a("365c"),l=a("9c3a"),c=a("4242"),d=a("b4a4"),u=a("d4f7"),h=a("0474"),p=a("d279"),m=a("a110"),f=a("dda1"),g=a("0abe"),y=a("ebbe"),v=a("9690"),b=a("4e89"),x=a("9cc2"),w={name:"Dashboard",computed:Object(r["a"])({},Object(s["b"])(["name"])),components:{dailySale:d["default"],dailyNum:u["default"],skudaySale:l["default"],topTen:c["default"],goodsSale:h["default"],teamTop:p["default"],provinceSale:m["default"],citySale:f["default"],mapCharts:g["default"],saleInfo:y["default"],saleNum:v["default"],historyTotal:b["default"],typeAll:x["default"]},data:function(){return{list:[],yeslist:[],skuList:[],current:1,sum:{user_count:0,store_count:0,goods_count:0,order_sale:0},cur:"",navList:[{id:1,text:"款式日销售金额"},{id:2,text:"款式日销售数量"},{id:3,text:"款式总销售汇总"},{id:4,text:"日总销售金额统计"},{id:5,text:"日总销售数量统计"},{id:6,text:"尺码总销售排名"},{id:7,text:"昨日销量数据排名"},{id:8,text:"销售取消退货数据汇总"},{id:9,text:"团队销售排名"},{id:10,text:"店铺销售前十"},{id:11,text:"尺码日销量统计"}]}},created:function(){this.getData(),this.getList()},methods:{toPosition:function(t){this.cur=t;var e="echart".concat(t);this.$refs[e].scrollIntoView(!0)},descending:function(t){return function(e,a){var n=e[t],i=a[t];return n-i}},ascending:function(t){return function(e,a){var n=e[t],i=a[t];return i-n}},toSort:function(t){t.column;var e=t.prop,a=t.order,n=this.skuList;if("total"===e)return"ascending"===a?n.sort(this.descending("total")):n.sort(this.ascending("total")),!1;"account"===e&&("ascending"===a?n.sort(this.descending("account")):n.sort(this.ascending("account")))},choose:function(t){this.current=t,this.getList()},getData:function(){var t=this;Object(o["d"])().then((function(e){200==e.code?t.sum=e.data:t.$message.error(e.msg||"获取数据失败")})),Object(o["a"])().then((function(e){200==e.code?t.list=e.data:t.$message.error(e.msg||"获取数据失败")})),Object(o["m"])().then((function(e){200==e.code?t.skuList=e.data:t.$message.error(e.msg||"获取数据失败")}))},getList:function(){var t=this;Object(o["o"])().then((function(e){if(200==e.code){var a=e.data,n=a.cotton_info,i=a.old_info,r=a.simple_info,s=a.super_info;switch(t.current){case 1:t.yeslist=s;break;case 2:t.yeslist=r;break;case 3:t.yeslist=i;break;case 4:t.yeslist=n;break;default:t.yeslist=s}}else t.$message.error(e.msg||"获取数据失败")}))}}},_=w,M=(a("03c3"),a("2877")),k=Object(M["a"])(_,n,i,!1,null,"5e38e17e",null);e["default"]=k.exports},9690:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("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),a("div",{ref:"style_num_echart",staticStyle:{"margin-top":"20px"},style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["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.getData()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getDefault:function(){var t=new Date,e=t.getDate(),a=t.getMonth(),n=t.getDay(),i=n||7,r=this.formatDate(new Date(t.getFullYear(),a,e+1-i)),s=this.formatDate(new Date(t.getFullYear(),a,e+7-i));this.dateVal=[r,s],this.getData(r,s)},formatDate:function(t){var e=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return a<10&&(a="0"+a),n<10&&(n="0"+n),e+"-"+a+"-"+n},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 a=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,r,s,o,c,d,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=a.$loading(),n.prev=1,n.next=4,Object(l["i"])({startdate:t,enddate:e});case 4:if(r=n.sent,s=r.code,o=r.data,i.close(),200===s){for(d in c=[],o)for(u in o[d])-1===a.timeLineMap.indexOf(u)&&(c.push(u),a.timeLineMap=c.sort()),"cotton"===d&&a.cotton.push(o[d][u].total),"old"===d&&a.old.push(o[d][u].total),"simple"===d&&a.simple.push(o[d][u].total),"super"===d&&a.super.push(o[d][u].total);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),i.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=s["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"}},axisLine:{show:!0}},series:[{data:t.super,type:"line",name:"精装版",stack:"总量",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#9BCA63"}}},{data:t.simple,type:"line",name:"简约版",stack:"总量",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#F4E001"}}},{data:t.old,type:"line",stack:"总量",name:"老人版",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#D7504B"}}},{data:t.cotton,type:"line",stack:"总量",name:"纯棉老人版",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#f00"}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},"9c3a":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.getOrderAccount},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),a("div",{ref:"style_num_echart",style:{height:t.height,width:t.width}})],1)},i=[],r=a("1da1"),s=(a("96cf"),a("159b"),a("d81d"),a("99af"),a("d3b7"),a("25f0"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],dataMap:{},lengedMap:[],cycle:"3",value1:""}},created:function(){this.value1=this.getTime(),this.getOrderAccount()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),i=e+"-"+a+"-"+n;return i},createObjectByArray:function(t,e){var a={};return t.forEach((function(t){a[t]=e?[]:{}})),a},getOrderAccount:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.timeLineMap=[],t.lengedMap=[],a=t.$loading(),e.prev=3,e.next=6,Object(l["l"])({date:t.value1});case 6:n=e.sent,i=n.code,r=n.data,a.close(),200===i&&(r.map((function(e){t.timeLineMap.push("".concat(e.goods.main_attr,"-").concat(e.type,"-").concat(e.size)),t.lengedMap.push(e.sale_num)})),t.initChart()),e.next=17;break;case 13:e.prev=13,e.t0=e["catch"](3),a.close(),console.log("获取商品销售量失败:".concat(e.t0));case 17:case"end":return e.stop()}}),e,null,[[3,13]])})))()},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:"2%"},tooltip:{trigger:"axis"},xAxis:{type:"category",axisLabel:{interval:0,rotate:40},data:t.timeLineMap},yAxis:{type:"value",axisLine:{show:!0}},grid:{bottom:"25%",top:"10%"},dataZoom:[{type:"slider"},{type:"inside"}],series:[{data:t.lengedMap,type:"bar",label:{show:!0,position:"top"},barWidth:20,itemStyle:{normal:{color:function(t){return"#"+Math.floor(16777215*Math.random()).toString(16)}}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},"9cc2":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("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),a("div",{ref:"style_num_echart",staticStyle:{"margin-top":"20px"},style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("d81d"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],numMap:[],dateVal:""}},created:function(){this.getData()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{changeDate:function(){if(this.timeLineMap=[],this.lengedMap=[],this.numMap=[],this.dateVal){var t=this.dateVal[0],e=this.dateVal[1];this.getData(t,e)}else this.getData()},getData:function(t,e){var a=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,r,s,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=a.$loading(),n.prev=1,n.next=4,Object(l["j"])({startdate:t,enddate:e});case 4:r=n.sent,s=r.code,o=r.data,i.close(),200===s&&(o.map((function(t){a.timeLineMap.push(t.goods.main_attr),a.lengedMap.push(t.account),a.numMap.push(t.total)})),a.initChart()),n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),i.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=s["init"](t.$refs.style_num_echart),t.chart.clear(),t.chart.setOption({title:{text:"款式总销售汇总"},tooltip:{trigger:"axis"},legend:{data:["数量","金额"]},xAxis:{type:"category",data:t.timeLineMap},yAxis:[{type:"value",name:"数量",axisLine:{show:!0}},{type:"value",name:"金额",axisLine:{show:!0}}],series:[{data:t.numMap,type:"bar",label:{show:!0,position:"top"},name:"数量",barWidth:30,itemStyle:{normal:{color:"#C1232B"}},yAxisIndex:0},{data:t.lengedMap,type:"bar",label:{show:!0,position:"top"},name:"金额",barWidth:30,itemStyle:{normal:{color:"#F3A43B"}},yAxisIndex:1}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},a110:function(t,e,a){"use strict";a.r(e);var n=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)},i=[],r=a("1da1"),s=(a("96cf"),a("b64b"),a("07ac"),a("d81d"),a("b0c0"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],numMap:[],dataMap:[],type:"3"}},created:function(){this.getOrderAccount()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getOrderAccount:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.chart&&t.chart.dispose(),t.lengedMap=[],a=t.$loading(),e.prev=3,e.next=6,Object(l["h"])({type:t.type});case 6:n=e.sent,i=n.code,r=n.data,a.close(),200===i&&(t.timeLineMap=Object.keys(r),"3"==t.type?(s=Object.values(r),s.map((function(e){t.dataMap.push(0==e?0:e[0].total)})),t.initChart()):t.getAtrr()),e.next=17;break;case 13:e.prev=13,e.t0=e["catch"](3),a.close(),console.log("获取省份销量失败:".concat(e.t0));case 17:case"end":return e.stop()}}),e,null,[[3,13]])})))()},getAtrr:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.chart&&t.chart.dispose(),a=t.$loading(),e.prev=2,e.next=5,Object(l["g"])();case 5:n=e.sent,i=n.code,r=n.data,a.close(),200===i&&(r.map((function(e){t.$set(e,"type","bar"),t.lengedMap.push(e.name)})),t.dataMap=r,t.initChart()),e.next=16;break;case 12:e.prev=12,e.t0=e["catch"](2),a.close(),console.log("获取团队售量失败:".concat(e.t0));case 16:case"end":return e.stop()}}),e,null,[[2,12]])})))()},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:2==t.type?"各省款式总销量":"各省总销量",top:"2%"},tooltip:{trigger:"axis"},legend:{data:t.lengedMap},xAxis:{type:"category",axisLabel:{interval:0,rotate:40},data:t.timeLineMap},grid:{bottom:"25%",top:"10%"},dataZoom:[{type:"slider"},{type:"inside"}],yAxis:{type:"value",axisLine:{show:!0}},series:"2"==t.type?t.dataMap:[{data:t.dataMap,type:"bar"}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},b4a4:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("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),a("div",{ref:"style_num_echart",staticStyle:{"margin-top":"15px"},style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],dateVal:""}},created:function(){this.getData()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getDefault:function(){var t=new Date,e=t.getDate(),a=t.getMonth(),n=t.getDay(),i=n||7,r=this.formatDate(new Date(t.getFullYear(),a,e+1-i)),s=this.formatDate(new Date(t.getFullYear(),a,e+7-i));this.dateVal=[r,s],this.getData(r,s)},formatDate:function(t){var e=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return a<10&&(a="0"+a),n<10&&(n="0"+n),e+"-"+a+"-"+n},changeDate:function(){if(this.timeLineMap=[],this.lengedMap=[],this.dateVal){var t=this.dateVal[0],e=this.dateVal[1];this.getData(t,e)}else this.getData()},getData:function(t,e){var a=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,r,s,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=a.$loading(),n.prev=1,n.next=4,Object(l["b"])({startdate:t,enddate:e});case 4:if(r=n.sent,s=r.code,o=r.data,i.close(),200===s){for(c in o)a.timeLineMap.push(c),a.lengedMap.push(o[c].money);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),i.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=s["init"](t.$refs.style_num_echart),t.chart.clear(),t.chart.setOption({title:{text:"日总销售金额统计"},xAxis:{type:"category",name:"日期",data:t.timeLineMap,axisLabel:{textStyle:{color:"#000"}}},dataZoom:[{type:"slider"},{type:"inside"}],yAxis:{type:"value",name:"金额",axisLabel:{textStyle:{color:"#000"}},axisLine:{show:!0}},series:[{data:t.lengedMap,type:"line",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#FC721E"}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},c0eb:function(t,e,a){},d279:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{ref:"style_num_echart",style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("159b"),a("d81d"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["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(t,e){var a={};return t.forEach((function(t){a[t]=e?[]:{}})),a},getOrderAccount:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r;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(l["k"])();case 4:n=e.sent,i=n.code,r=n.data,a.close(),200===i&&(r.map((function(e){t.timeLineMap.push(e.warea),t.lengedMap.push(e.account),t.numMap.push(e.num)})),t.initChart()),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:"团队销售排名"},tooltip:{trigger:"axis"},legend:{data:["销售金额","销售数量"]},xAxis:{type:"category",data:t.timeLineMap},yAxis:{type:"value",axisLine:{show:!0}},series:[{data:t.lengedMap,type:"bar",label:{show:!0,position:"top"},name:"销售金额",barWidth:30,itemStyle:{normal:{color:"#9BCA63"}}},{data:t.numMap,type:"bar",label:{show:!0,position:"top"},name:"销售数量",barWidth:30,itemStyle:{normal:{color:"#FC6087"}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},d4f7:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("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),a("div",{ref:"style_num_echart",staticStyle:{"margin-top":"15px"},style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],dateVal:""}},created:function(){this.getData()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getDefault:function(){var t=new Date,e=t.getDate(),a=t.getMonth(),n=t.getDay(),i=n||7,r=this.formatDate(new Date(t.getFullYear(),a,e+1-i)),s=this.formatDate(new Date(t.getFullYear(),a,e+7-i));this.dateVal=[r,s],this.getData(r,s)},formatDate:function(t){var e=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return a<10&&(a="0"+a),n<10&&(n="0"+n),e+"-"+a+"-"+n},changeDate:function(){if(this.timeLineMap=[],this.lengedMap=[],this.dateVal){var t=this.dateVal[0],e=this.dateVal[1];this.getData(t,e)}else this.getData()},getData:function(t,e){var a=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,r,s,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=a.$loading(),n.prev=1,n.next=4,Object(l["b"])({startdate:t,enddate:e});case 4:if(r=n.sent,s=r.code,o=r.data,i.close(),200===s){for(c in o)a.timeLineMap.push(c),a.lengedMap.push(o[c].total);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),i.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=s["init"](t.$refs.style_num_echart),t.chart.clear(),t.chart.setOption({title:{text:"日总销售数量统计"},xAxis:{type:"category",name:"日期",data:t.timeLineMap,axisLabel:{textStyle:{color:"#000"}}},lenged:["销量"],dataZoom:[{type:"slider"},{type:"inside"}],yAxis:{type:"value",name:"数量",axisLabel:{textStyle:{color:"#000"}},axisLine:{show:!0}},series:[{data:t.lengedMap,type:"line",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#FC721E"}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports},dda1:function(t,e,a){"use strict";a.r(e);var n=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)},i=[],r=a("1da1"),s=a("ade3"),o=(a("96cf"),a("b64b"),a("d81d"),a("4de4"),a("159b"),a("313e")),l=a("feb2"),c=a("365c"),d={mixins:[l["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return Object(s["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=o["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(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r;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:n=e.sent,i=n.code,r=n.data,a.close(),200===i&&console.log(r,"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=o["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}))}}},u=d,h=(a("1aaa"),a("2877")),p=Object(h["a"])(u,n,i,!1,null,"beed92a4",null);e["default"]=p.exports},ebbe:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("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),a("div",{ref:"style_num_echart",staticStyle:{"margin-top":"20px"},style:{height:t.height,width:t.width}})])},i=[],r=a("1da1"),s=(a("96cf"),a("313e")),o=a("feb2"),l=a("365c"),c={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],accountMap:[],cotton:[],old:[],simple:[],super:[],dateVal:""}},created:function(){this.getData()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getDefault:function(){var t=new Date,e=t.getDate(),a=t.getMonth(),n=t.getDay(),i=n||7,r=this.formatDate(new Date(t.getFullYear(),a,e+1-i)),s=this.formatDate(new Date(t.getFullYear(),a,e+7-i));this.dateVal=[r,s],this.getData(r,s)},formatDate:function(t){var e=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return a<10&&(a="0"+a),n<10&&(n="0"+n),e+"-"+a+"-"+n},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 a=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,r,s,o,c,d,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=a.$loading(),n.prev=1,n.next=4,Object(l["i"])({startdate:t,enddate:e});case 4:if(r=n.sent,s=r.code,o=r.data,i.close(),200===s){for(d in c=[],o)for(u in o[d])-1===a.timeLineMap.indexOf(u)&&(c.push(u),a.timeLineMap=c.sort()),"cotton"===d&&a.cotton.push(o[d][u].account),"old"===d&&a.old.push(o[d][u].account),"simple"===d&&a.simple.push(o[d][u].account),"super"===d&&a.super.push(o[d][u].account);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),i.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=s["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"}},axisLine:{show:!0}},series:[{data:t.super,type:"line",name:"精装版",stack:"总量",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#9BCA63"}}},{data:t.simple,type:"line",name:"简约版",stack:"总量",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#F4E001"}}},{data:t.old,type:"line",stack:"总量",name:"老人版",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#D7504B"}}},{data:t.cotton,type:"line",stack:"总量",name:"纯棉老人版",label:{show:!0,position:"top",color:"black"},barWidth:60,itemStyle:{normal:{color:"#f00"}}}]}),window.onresize=t.chart.resize}))}}},d=c,u=a("2877"),h=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=h.exports}}]);
|