1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9f05b934"],{"365c":function(t,e,r){"use strict";r.d(e,"k",(function(){return a})),r.d(e,"e",(function(){return o})),r.d(e,"m",(function(){return i})),r.d(e,"f",(function(){return c})),r.d(e,"h",(function(){return u})),r.d(e,"d",(function(){return s})),r.d(e,"n",(function(){return d})),r.d(e,"g",(function(){return l})),r.d(e,"i",(function(){return f})),r.d(e,"l",(function(){return m})),r.d(e,"a",(function(){return h})),r.d(e,"b",(function(){return p})),r.d(e,"c",(function(){return b})),r.d(e,"j",(function(){return g}));var n=r("b775"),a=function(t){return Object(n["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:t})},o=function(t){return Object(n["a"])({url:"/order/get_order_daily_sales",method:"get",params:t})},i=function(t){return Object(n["a"])({url:"/order/get_store_top10",method:"get",params:t})},c=function(t){return Object(n["a"])({url:"/index/index",method:"get",params:t})},u=function(t){return Object(n["a"])({url:"/index/get_sale_info",method:"get",params:t})},s=function(t){return Object(n["a"])({url:"/index/all_order_by",method:"get",params:t})},d=function(t){return Object(n["a"])({url:"/index/yesterday_order_by",method:"get",params:t})},l=function(t){return Object(n["a"])({url:"/index/get_history_total",method:"get",params:t})},f=function(t){return Object(n["a"])({url:"/index/get_sku_history_num",method:"get",params:t})},m=function(t){return Object(n["a"])({url:"/index/get_sku_order_by",method:"get",params:t})},h=function(t){return Object(n["a"])({url:"/index/get_every_add_agent",method:"get",params:t})},p=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})},g=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.d(e,"d",(function(){return a})),r.d(e,"e",(function(){return o})),r.d(e,"g",(function(){return i})),r.d(e,"f",(function(){return c})),r.d(e,"b",(function(){return u})),r.d(e,"i",(function(){return s})),r.d(e,"h",(function(){return d})),r.d(e,"c",(function(){return l}));r("a9e3"),r("b680"),r("ac1f"),r("5319"),r("4ec9"),r("d3b7"),r("3ca3"),r("ddb0"),r("4de4"),r("d81d");function n(t){var e=Number(t);if(e){e=Math.round(100*e)/1e4,e=e.toFixed(2),e+="";var r=e.indexOf(".")>-1?/(\d{1,3})(?=(?:\d{3})+\.)/g:/(\d{1,3})(?=(?:\d{3})+$)/g;return e.replace(r,"$1,")}return e+".00"}function a(t,e){return t?(Number(t)+"").replace(/\d{1,4}(?=(\d{4})+(\.\d*)?$)/g,"$&,"):0}function o(t,e){if(t){var r=new Map([[0,{color:"#909399",name:"没取消"}],[1,{color:"#909399",name:"审核中"}],[2,{color:"#909399",name:"已取消"}],[3,{color:"#909399",name:"被驳回"}]]);return r.get(t)||{name:"未知订单状态",color:"#909399"}}var n=new Map([[0,{color:"#f97547",name:"待付款"}],[1,{color:"#13c19f",name:"待发货"}],[2,{color:"#ffaa1d",name:"待收货"}],[3,{color:"#409EFF",name:"已完成"}],[4,{color:"#74a2e6",name:"已完成"}]]);return n.get(e)||{name:"未知订单状态",color:"#909399"}}function i(t){switch(+t){case 0:return{name:"未认证",color:"#f97547"};case 1:return{name:"审核中",color:"#13c19f"};case 2:return{name:"待签约",color:"#ffaa1d"};case 3:return{name:"已完成",color:"#409EFF"};case 4:return{name:"被驳回",color:"#999"};case 5:return{name:"已冻结",color:"#ccc"};default:return{name:"审核中",color:"#13c19f"}}}function c(t){switch(+t){case 0:return{name:"未审核",color:"#f96b6b"};case 1:return{name:"已同意",color:"#13c19f"};case 2:return{name:"已驳回",color:"#415161"};case 3:return{name:"已完成",color:"#f96b6b"};default:return{name:"未知支付状态",color:"#909399"}}}function u(t){var e;switch(t){case 0:e="销售未实名认证";break;case 1:e="等待邀请人审核";break;case 2:e="等待审核";break;case 3:e="等待用户确认";break;case 4:e="邀请人审核驳回";break;case 5:e="审核驳回";break;case 6:e="授权成功";break;default:e=t}return e}var s=function(t){var e=0;return t.map((function(t){t.sku.map((function(t){e+=t.num*t.price}))})),e},d=function(t){var e=0;return t.map((function(t){t.sku.map((function(t){e+=t.num}))})),e};function l(t,e){if(null==t)return 0;var r=Date.parse(new Date(e))/1e3,n=Date.parse(new Date(t))/1e3,a=function(t){return t<10?"0"+t:t},o=r-n;if(o>0){var i=Math.floor(o/86400),c=Math.floor(o%86400/3600),u=Math.floor((o-86400*i-3600*c)/60);Math.floor(o-86400*i-3600*c-60*u);return"".concat(a(i))}return 0}},"4e82":function(t,e,r){"use strict";var n=r("23e7"),a=r("1c0b"),o=r("7b0b"),i=r("d039"),c=r("a640"),u=[],s=u.sort,d=i((function(){u.sort(void 0)})),l=i((function(){u.sort(null)})),f=c("sort"),m=d||!l||!f;n({target:"Array",proto:!0,forced:m},{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),a(t))}})},"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=[],o=r("c7eb"),i=r("1da1"),c=(r("4e82"),r("313e")),u=r("feb2"),s=r("365c"),d=r("44f1"),l={mixins:[u["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=d["d"]},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"])(Object(o["a"])().mark((function n(){var a,i,c,u,d,l,f;return Object(o["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=r.$loading(),n.prev=1,n.next=4,Object(s["h"])({startdate:t,enddate:e});case 4:if(i=n.sent,c=i.code,u=i.data,a.close(),200===c){for(l in d=[],u)for(f in u[l])-1===r.timeLineMap.indexOf(f)&&(d.push(f),r.timeLineMap=d.sort()),"cotton"===l&&r.cotton.push(u[l][f].total),"old"===l&&r.old.push(u[l][f].total),"simple"===l&&r.simple.push(u[l][f].total),"super"===l&&r.super.push(u[l][f].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=c["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}))}}},f=l,m=r("2877"),h=Object(m["a"])(f,n,a,!1,null,null,null);e["default"]=h.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()}}}}}]);
|