1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-790a8ed7","chunk-3b02ea27","chunk-6149ba2d","chunk-4df6effe","chunk-83c0db8c","chunk-9f05b934","chunk-4527f126","chunk-7c3498da","chunk-3229a351","chunk-420d6fe4","chunk-1420d2e1","chunk-5440fbb5","chunk-23327eeb","chunk-132fb16c","chunk-9901d3a2","chunk-38dcb7f8"],{"005d":function(t,e,a){"use strict";a("d910")},"115e":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",{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",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],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(e){return t.params.page_size*(t.params.page_index-1)+e+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"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(t.format(a.total,!0))+" ")]}}])}),a("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(t.format(a.account))+" ")]}}])})],1),a("div",{staticClass:"batch-container"},[a("el-pagination",{attrs:{"current-page":t.params.page_index,"page-sizes":[10,15,20,30,100],"page-size":t.params.page_size,layout:"total, sizes, prev, pager, next, jumper",total:t.totalPage},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},r=[],i=a("c7eb"),s=a("1da1"),c=a("365c"),o=a("44f1"),l={data:function(){return{yeslist:[],current:1,params:{page_index:1,page_size:20},totalPage:0,loading:!1}},created:function(){this.format=o["d"],this.getList()},methods:{choose:function(t){this.params.page_index=1,this.current=t,this.getList()},getList:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s,o,l,u,d;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,Object(c["n"])(t.params);case 3:if(a=e.sent,e.prev=4,n=a.msg,r=a.code,s=a.data,200!==r){e.next=27;break}o=s.cotton_info,l=s.old_info,u=s.simple_info,d=s.super_info,e.t0=t.current,e.next=1===e.t0?11:2===e.t0?14:3===e.t0?17:4===e.t0?20:23;break;case 11:return t.yeslist=d.list,t.totalPage=d.total,e.abrupt("break",25);case 14:return t.yeslist=u.list,t.totalPage=u.total,e.abrupt("break",25);case 17:return t.yeslist=l.list,t.totalPage=l.total,e.abrupt("break",25);case 20:return t.yeslist=o.list,t.totalPage=o.total,e.abrupt("break",25);case 23:t.yeslist=d.list,t.totalPage=d.total;case 25:e.next=28;break;case 27:t.$message.error(n||"获取数据失败");case 28:t.loading=!1,e.next=35;break;case 31:e.prev=31,e.t1=e["catch"](4),t.loading=!1,console.log("获取排行失败:".concat(e.t1));case 35:case"end":return e.stop()}}),e,null,[[4,31]])})))()},handleSizeChange:function(t){this.params.page_size=t,this.getList()},handleCurrentChange:function(t){this.params.page_index=t,this.getList()}}},u=l,d=(a("005d"),a("2877")),h=Object(d["a"])(u,n,r,!1,null,"0b7e042f",null);e["default"]=h.exports},"1ae5":function(t,e,a){"use strict";a("1bcf")},"1bcf":function(t,e,a){},"246d":function(t,e,a){},"2a77":function(t,e,a){"use strict";a("789a")},"365c":function(t,e,a){"use strict";a.d(e,"k",(function(){return r})),a.d(e,"e",(function(){return i})),a.d(e,"m",(function(){return s})),a.d(e,"f",(function(){return c})),a.d(e,"h",(function(){return o})),a.d(e,"d",(function(){return l})),a.d(e,"n",(function(){return u})),a.d(e,"g",(function(){return d})),a.d(e,"i",(function(){return h})),a.d(e,"l",(function(){return p})),a.d(e,"a",(function(){return f})),a.d(e,"b",(function(){return m})),a.d(e,"c",(function(){return g})),a.d(e,"j",(function(){return b}));var n=a("b775"),r=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:"/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})},c=function(t){return Object(n["a"])({url:"/index/index",method:"get",params:t})},o=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})},u=function(t){return Object(n["a"])({url:"/index/yesterday_order_by",method:"get",params:t})},d=function(t){return Object(n["a"])({url:"/index/get_history_total",method:"get",params:t})},h=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})},f=function(t){return Object(n["a"])({url:"/index/get_every_add_agent",method:"get",params:t})},m=function(t){return Object(n["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:t})},g=function(t){return Object(n["a"])({url:"/index/get_every_add_agent_line",method:"get",params:t})},b=function(t){return Object(n["a"])({url:"/index/get_agent_pay_rate",method:"get",params:t})}},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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=(a("d3b7"),a("159b"),a("d81d"),a("b0c0"),a("fb6a"),a("313e")),o=a("feb2"),l=a("365c"),u=a("44f1"),d={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.format=u["d"]},mounted:function(){var t=this;this.$nextTick((function(){t.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(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.$loading(),e.prev=1,e.next=4,Object(l["m"])();case 4:n=e.sent,r=n.code,s=n.data,a.close(),200===r&&(s.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=c["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",formatter:function(e){return t.format(e.data,!0)}},barWidth:30,itemStyle:{normal:{color:"#1A9F90"}}}]}),window.onresize=t.chart.resize}))}}},h=d,p=a("2877"),f=Object(p["a"])(h,n,r,!1,null,null,null);e["default"]=f.exports},"44f1":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"d",(function(){return r})),a.d(e,"e",(function(){return i})),a.d(e,"g",(function(){return s})),a.d(e,"f",(function(){return c})),a.d(e,"b",(function(){return o})),a.d(e,"i",(function(){return l})),a.d(e,"h",(function(){return u})),a.d(e,"c",(function(){return d}));a("a9e3"),a("b680"),a("ac1f"),a("5319"),a("4ec9"),a("d3b7"),a("3ca3"),a("ddb0"),a("4de4"),a("d81d");function n(t){var e=Number(t);if(e){e=Math.round(100*e)/1e4,e=e.toFixed(2),e+="";var a=e.indexOf(".")>-1?/(\d{1,3})(?=(?:\d{3})+\.)/g:/(\d{1,3})(?=(?:\d{3})+$)/g;return e.replace(a,"$1,")}return e+".00"}function r(t,e){return t?(Number(t)+"").replace(/\d{1,4}(?=(\d{4})+(\.\d*)?$)/g,"$&,"):0}function i(t,e){if(t){var a=new Map([[0,{color:"#909399",name:"没取消"}],[1,{color:"#909399",name:"审核中"}],[2,{color:"#909399",name:"已取消"}],[3,{color:"#909399",name:"被驳回"}]]);return a.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 s(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 o(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 l=function(t){var e=0;return t.map((function(t){t.sku.map((function(t){e+=t.num*t.price}))})),e},u=function(t){var e=0;return t.map((function(t){t.sku.map((function(t){e+=t.num}))})),e};function d(t,e){if(null==t)return 0;var a=Date.parse(new Date(e))/1e3,n=Date.parse(new Date(t))/1e3,r=function(t){return t<10?"0"+t:t},i=a-n;if(i>0){var s=Math.floor(i/86400),c=Math.floor(i%86400/3600),o=Math.floor((i-86400*s-3600*c)/60);Math.floor(i-86400*s-3600*c-60*o);return"".concat(r(s))}return 0}},"4e82":function(t,e,a){"use strict";var n=a("23e7"),r=a("1c0b"),i=a("7b0b"),s=a("d039"),c=a("a640"),o=[],l=o.sort,u=s((function(){o.sort(void 0)})),d=s((function(){o.sort(null)})),h=c("sort"),p=u||!d||!h;n({target:"Array",proto:!0,forced:p},{sort:function(t){return void 0===t?l.call(i(this)):l.call(i(this),r(t))}})},"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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=a("313e"),o=a("feb2"),l=a("365c"),u=a("44f1"),d={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.format=u["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.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(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o,u,d;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.$loading(),n.prev=1,n.next=4,Object(l["g"])({startdate:t,enddate:e});case 4:if(s=n.sent,c=s.code,o=s.data,r.close(),200===c){for(u in o)d="","all"===u&&(d="销售额"),"cancel"===u&&(d="取消额"),"refund"===u&&(d="退货额"),a.timeLineMap.push(d),a.lengedMap.push(o[u].account),a.numMap.push(o[u].total);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),r.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:["金额","数量"]},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",formatter:function(e){return t.format(e.data,!0)}},name:"数量",barWidth:30,itemStyle:{normal:{color:"#FE8463"}}},{data:t.lengedMap,yAxisIndex:1,type:"bar",label:{show:!0,position:"top",formatter:function(e){return t.format(e.data)}},name:"金额",barWidth:30,itemStyle:{normal:{color:"#26C0C0"}}}]}),window.onresize=t.chart.resize}))}}},h=d,p=a("2877"),f=Object(p["a"])(h,n,r,!1,null,null,null);e["default"]=f.exports},"4ec9":function(t,e,a){"use strict";var n=a("6d61"),r=a("6566");t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},5647: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.date,callback:function(e){t.date=e},expression:"date"}}),a("div",{ref:"style_num_echart",style:{height:t.height,width:t.width}})],1)},r=[],i=a("c7eb"),s=a("1da1"),c=(a("d3b7"),a("159b"),a("d81d"),a("b0c0"),a("313e")),o=a("feb2"),l=a("365c"),u={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],date:""}},created:function(){this.date=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(),r=e+"-"+a+"-"+n;return r},createObjectByArray:function(t,e){var a={};return t.forEach((function(t){a[t]=e?[]:{}})),a},getOrderAccount:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s;return Object(i["a"])().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["b"])({date:t.date});case 6:n=e.sent,r=n.code,s=n.data,a.close(),200===r&&(s.map((function(e){t.timeLineMap.push(e.warea.name),t.lengedMap.push(e.count)})),t.initChart()),e.next=17;break;case 13:e.prev=13,e.t0=e["catch"](3),a.close(),console.log(e.t0);case 17:case"end":return e.stop()}}),e,null,[[3,13]])})))()},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:"服务每日新增注册人数排行"},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:"#FB231F"}}}]}),window.onresize=t.chart.resize}))}}},d=u,h=a("2877"),p=Object(h["a"])(d,n,r,!1,null,null,null);e["default"]=p.exports},6149: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",{staticClass:"rank"},[t._v("尺码总销售排名")]),a("el-table",{ref:"skuTable",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"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.goods&&a.goods.main_attr)+" ")]}}])}),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"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(t.format(a.detail.total,!0))+" ")]}}])}),a("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(t.format(a.detail.account))+" ")]}}])})],1),a("div",{staticClass:"batch-container"})],1)},r=[],i=a("c7eb"),s=a("1da1"),c=(a("4e82"),a("365c")),o=a("44f1"),l={data:function(){return{skuList:[]}},created:function(){this.getSku(),this.format=o["d"]},methods:{getSku:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["l"])();case 2:a=e.sent;try{n=a.msg,r=a.code,s=a.data,200===r?t.skuList=s:t.$message.error(n||"获取数据失败")}catch(i){t.$message.error(i||"获取数据失败")}case 4:case"end":return e.stop()}}),e)})))()},descending:function(t){return function(e,a){var n=e.detail[t],r=a.detail[t];return n-r}},ascending:function(t){return function(e,a){var n=e.detail[t],r=a.detail[t];return r-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")))}}},u=l,d=(a("1ae5"),a("2877")),h=Object(d["a"])(u,n,r,!1,null,"39cf00a0",null);e["default"]=h.exports},"789a":function(t,e,a){},8175: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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=a("313e"),o=a("feb2"),l=a("365c"),u={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:{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(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o,u;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.$loading(),n.prev=1,n.next=4,Object(l["a"])({startdate:t,enddate:e});case 4:if(s=n.sent,c=s.code,o=s.data,r.close(),200===c){for(u in o)a.timeLineMap.push(u),a.lengedMap.push(o[u]);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),r.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:"每日新增注册人数"},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=u,h=a("2877"),p=Object(h["a"])(d,n,r,!1,null,null,null);e["default"]=p.exports},"87ea":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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=(a("13d5"),a("d3b7"),a("b0c0"),a("313e")),o=a("feb2"),l=a("365c"),u={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],accountMap:[],legendMap:[],cotton:[],old:[],simple:[],super:[],dateVal:"",showData:[]}},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 a=this;return Object(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o,u,d,h,p,f;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a.legendMap=[],a.timeLineMap=[],r=a.$loading(),n.prev=3,n.next=6,Object(l["c"])({startdate:t,enddate:e});case 6:if(s=n.sent,c=s.code,o=s.data,r.close(),200===c){for(d in u=[],o)for(p in h=[],a.legendMap.push(d),o[d])h.push(o[d][p]),-1===a.timeLineMap.indexOf(p)&&a.timeLineMap.push(p),u.push({name:d,type:"line",stack:"数量",data:h});f={},a.showData=u.reduce((function(t,e){return!f[e.name]&&(f[e.name]=t.push(e)),t}),[]),a.initChart()}n.next=17;break;case 13:n.prev=13,n.t0=n["catch"](3),r.close(),console.log("".concat(n.t0));case 17:case"end":return n.stop()}}),n,null,[[3,13]])})))()},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:t.legendMap},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:t.showData}),window.onresize=t.chart.resize}))}}},d=u,h=a("2877"),p=Object(h["a"])(d,n,r,!1,null,null,null);e["default"]=p.exports},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.format(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.format(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)])],1)],1),a("div",{staticClass:"echarts"},[a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart12"},[a("new-daily",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart13"},[a("warea-new",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"style_num_container"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart14"},[a("warea-line",{attrs:{width:"100%"}})],1)])],1),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("el-col",{attrs:{span:24}},[a("div",{ref:"echart6"},[a("sku-rank",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"table_con"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart7"},[a("all-rank",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"table_con",staticStyle:{height:"650px"}},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart8"},[a("yes-rank",{attrs:{width:"100%"}})],1)])],1),a("el-row",{staticClass:"table_con",staticStyle:{height:"650px"}},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart15"},[a("pay-rate",{attrs:{width:"100%"}})],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:"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)])},r=[],i=a("c7eb"),s=a("1da1"),c=a("5530"),o=a("2f62"),l=a("365c"),u=a("9c3a"),d=a("4242"),h=a("b4a4"),p=a("d4f7"),f=a("ebbe"),m=a("9690"),g=a("4e89"),b=a("9cc2"),y=a("8175"),v=a("5647"),x=a("87ea"),_=a("c553"),w=a("6149"),k=a("115e"),M=a("d090a"),O=a("44f1"),j={name:"Dashboard",components:{dailySale:h["default"],dailyNum:p["default"],skudaySale:u["default"],topTen:d["default"],saleInfo:f["default"],saleNum:m["default"],historyTotal:g["default"],typeAll:b["default"],newDaily:y["default"],wareaNew:v["default"],wareaLine:x["default"],allRank:_["default"],skuRank:w["default"],yesRank:k["default"],payRate:M["default"]},data:function(){return{yeslist:[],skuList:[],sum:{user_count:0,store_count:0,goods_count:0,order_sale:0},cur:"",navList:[{id:12,text:"每日新增注册人数"},{id:13,text:"服务每日新增注册人数排行"},{id:14,text:"服务每日新增注册人数"},{id:1,text:"款式日销售金额"},{id:2,text:"款式日销售数量"},{id:3,text:"款式总销售汇总"},{id:4,text:"日总销售金额统计"},{id:5,text:"日总销售数量统计"},{id:6,text:"尺码总销售排名"},{id:7,text:"昨日销量数据排名"},{id:15,text:"公司客户/客户支付占比分析"},{id:8,text:"销售取消退货数据汇总"},{id:10,text:"店铺销售前十"},{id:11,text:"尺码日销量统计"}]}},computed:Object(c["a"])({},Object(o["b"])(["name"])),created:function(){var t=this;this.format=O["d"],this.$nextTick((function(){t.getData()}))},destroyed:function(){window.removeEventListener("resize",this.initEchart,20)},methods:{toPosition:function(t){this.cur=t;var e="echart".concat(t);this.$refs[e].scrollIntoView(!0)},getData:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["f"])();case 2:a=e.sent;try{n=a.msg,r=a.code,s=a.data,200===r?t.sum=s:t.$message.error(n||"获取数据失败")}catch(i){t.$message.error(i||"获取数据失败")}case 4:case"end":return e.stop()}}),e)})))()}}},L=j,S=(a("db5c"),a("2877")),C=Object(S["a"])(L,n,r,!1,null,"56036730",null);e["default"]=C.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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=(a("4e82"),a("313e")),o=a("feb2"),l=a("365c"),u=a("44f1"),d={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.format=u["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 a=this;return Object(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o,u,d,h;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.$loading(),n.prev=1,n.next=4,Object(l["h"])({startdate:t,enddate:e});case 4:if(s=n.sent,c=s.code,o=s.data,r.close(),200===c){for(d in u=[],o)for(h in o[d])-1===a.timeLineMap.indexOf(h)&&(u.push(h),a.timeLineMap=u.sort()),"cotton"===d&&a.cotton.push(o[d][h].total),"old"===d&&a.old.push(o[d][h].total),"simple"===d&&a.simple.push(o[d][h].total),"super"===d&&a.super.push(o[d][h].total);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),r.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}))}}},h=d,p=a("2877"),f=Object(p["a"])(h,n,r,!1,null,null,null);e["default"]=f.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)},r=[],i=a("c7eb"),s=a("1da1"),c=(a("d3b7"),a("159b"),a("d81d"),a("99af"),a("25f0"),a("313e")),o=a("feb2"),l=a("365c"),u={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()},mounted:function(){var t=this;this.$nextTick((function(){t.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(),r=e+"-"+a+"-"+n;return r},createObjectByArray:function(t,e){var a={};return t.forEach((function(t){a[t]=e?[]:{}})),a},getOrderAccount:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s;return Object(i["a"])().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["k"])({date:t.value1});case 6:n=e.sent,r=n.code,s=n.data,a.close(),200===r&&(s.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=c["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=u,h=a("2877"),p=Object(h["a"])(d,n,r,!1,null,null,null);e["default"]=p.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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=(a("d81d"),a("313e")),o=a("feb2"),l=a("365c"),u=a("44f1"),d={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.format=u["d"],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(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.$loading(),n.prev=1,n.next=4,Object(l["i"])({startdate:t,enddate:e});case 4:s=n.sent,c=s.code,o=s.data,r.close(),200===c&&(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),r.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:["数量","金额"]},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",formatter:function(e){return t.format(e.data,!0)}},name:"数量",barWidth:30,itemStyle:{normal:{color:"#C1232B"}},yAxisIndex:0},{data:t.lengedMap,type:"bar",label:{show:!0,position:"top",formatter:function(e){return t.format(e.data)}},name:"金额",barWidth:30,itemStyle:{normal:{color:"#F3A43B"}},yAxisIndex:1}]}),window.onresize=t.chart.resize}))}}},h=d,p=a("2877"),f=Object(p["a"])(h,n,r,!1,null,null,null);e["default"]=f.exports},addd:function(t,e,a){},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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=a("313e"),o=a("feb2"),l=a("365c"),u=a("44f1"),d={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.format=u["d"],this.getData()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{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(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o,u;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.$loading(),n.prev=1,n.next=4,Object(l["e"])({startdate:t,enddate:e});case 4:if(s=n.sent,c=s.code,o=s.data,r.close(),200===c){for(u in o)a.timeLineMap.push(u),a.lengedMap.push(o[u].money);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),r.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:"日总销售金额统计"},xAxis:{type:"category",name:"日期",data:t.timeLineMap,axisLabel:{textStyle:{color:"#000"}}},dataZoom:[{type:"slider"},{type:"inside"}],yAxis:{type:"value",name:"金额",axisLabel:{textStyle:{color:"#000"},formatter:function(e){return t.format(e)}},axisLine:{show:!0}},series:[{data:t.lengedMap,type:"line",label:{show:!0,position:"top",color:"black",formatter:function(e){return t.format(e.data)}},barWidth:60,itemStyle:{normal:{color:"#FC721E"}}}]}),window.onresize=t.chart.resize}))}}},h=d,p=a("2877"),f=Object(p["a"])(h,n,r,!1,null,null,null);e["default"]=f.exports},c553: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",{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(e){return t.params.page_size*(t.params.page_index-1)+e+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.store&&e.store.img}})]}}])}),a("el-table-column",{attrs:{label:"店铺名称",prop:"name",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.store&&a.store.name)+" ")]}}])}),a("el-table-column",{attrs:{label:"销售数量",prop:"total",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(t.format(a.total,!0))+" ")]}}])}),a("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(t.format(a.account))+" ")]}}])})],1),a("div",{staticClass:"batch-container"},[a("el-pagination",{attrs:{total:t.totalPage,"current-page":t.params.page_index,"page-sizes":[10,15,20,30,100],"page-size":t.params.page_size,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},r=[],i=a("c7eb"),s=a("1da1"),c=a("365c"),o=a("44f1"),l={data:function(){return{list:[],params:{page_index:1,page_size:10},totalPage:0}},created:function(){this.getAllOrder(),this.format=o["d"]},methods:{getAllOrder:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["d"])(t.params);case 2:a=e.sent;try{n=a.msg,r=a.code,s=a.data,200===r?(t.list=s.list,t.totalPage=s.total):t.$message.error(n||"获取数据失败")}catch(i){t.$message.error(i||"获取数据失败")}case 4:case"end":return e.stop()}}),e)})))()},handleSizeChange:function(t){this.params.page_size=t,this.getAllOrder()},handleCurrentChange:function(t){this.params.page_index=t,this.getAllOrder()}}},u=l,d=(a("e466"),a("2877")),h=Object(d["a"])(u,n,r,!1,null,"f87021d8",null);e["default"]=h.exports},d090a: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",{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(e){return t.params.page_size*(t.params.page_index-1)+e+1}}}),a("el-table-column",{attrs:{label:"昵称",prop:"name",align:"center"}}),a("el-table-column",{attrs:{label:"手机号",prop:"phone",align:"center",width:"120"}}),a("el-table-column",{attrs:{align:"center",label:"成交套数",prop:"all",width:"100"}}),a("el-table-column",{attrs:{label:"代支付套数",prop:"no_self_pay_total",align:"center",width:"100"}}),a("el-table-column",{attrs:{align:"center",label:"代支付套数占比",prop:"agent",width:"130"}}),a("el-table-column",{attrs:{align:"center",label:"客户支付套数",prop:"pay_total",width:"120"}}),a("el-table-column",{attrs:{align:"center",label:"客户支付套数占比",prop:"user"}})],1),a("div",{staticClass:"batch-container"},[a("el-pagination",{attrs:{"current-page":t.params.page_index,"page-sizes":[10,15,20,30,100],"page-size":t.params.page_size,layout:"total, sizes, prev, pager, next, jumper",total:t.totalPage},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},r=[],i=a("c7eb"),s=a("1da1"),c=(a("d81d"),a("a9e3"),a("365c")),o={data:function(){return{list:[],params:{page_index:1,page_size:10},totalPage:0}},created:function(){this.getAllOrder()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{Percentage:function(t,e){return 0===t||0===e?0:Math.round(t/e*1e4)/100+"%"},getAllOrder:function(){var t=this;return Object(s["a"])(Object(i["a"])().mark((function e(){var a,n,r,s,o;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["j"])(t.params);case 2:a=e.sent;try{n=a.msg,r=a.code,s=a.data,200===r?(o=s.list,o.map((function(e){var a=Number(e.pay_total)+Number(e.no_self_pay_total),n=t.Percentage(Number(e.no_self_pay_total),a),r=t.Percentage(Number(e.pay_total),a);t.$set(e,"all",a),t.$set(e,"user",r),t.$set(e,"agent",n)})),t.list=o,t.totalPage=s.total):t.$message.error(n||"获取数据失败")}catch(i){t.$message.error(i||"获取数据失败")}case 4:case"end":return e.stop()}}),e)})))()},handleSizeChange:function(t){this.params.page_size=t,this.getAllOrder()},handleCurrentChange:function(t){this.params.page_index=t,this.getAllOrder()}}},l=o,u=(a("2a77"),a("2877")),d=Object(u["a"])(l,n,r,!1,null,"3bb94190",null);e["default"]=d.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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=a("313e"),o=a("feb2"),l=a("365c"),u={mixins:[o["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],dateVal:""}},mounted:function(){var t=this;this.$nextTick((function(){t.getData()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{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(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o,u;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.$loading(),n.prev=1,n.next=4,Object(l["e"])({startdate:t,enddate:e});case 4:if(s=n.sent,c=s.code,o=s.data,r.close(),200===c){for(u in o)a.timeLineMap.push(u),a.lengedMap.push(o[u].total);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),r.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:"日总销售数量统计"},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=u,h=a("2877"),p=Object(h["a"])(d,n,r,!1,null,null,null);e["default"]=p.exports},d910:function(t,e,a){},db5c:function(t,e,a){"use strict";a("246d")},e466:function(t,e,a){"use strict";a("addd")},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}})])},r=[],i=a("c7eb"),s=a("1da1"),c=(a("4e82"),a("313e")),o=a("feb2"),l=a("365c"),u=a("44f1"),d={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.format=u["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 a=this;return Object(s["a"])(Object(i["a"])().mark((function n(){var r,s,c,o,u,d,h;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=a.$loading(),n.prev=1,n.next=4,Object(l["h"])({startdate:t,enddate:e});case 4:if(s=n.sent,c=s.code,o=s.data,r.close(),200===c){for(d in u=[],o)for(h in o[d])-1===a.timeLineMap.indexOf(h)&&(u.push(h),a.timeLineMap=u.sort()),"cotton"===d&&a.cotton.push(o[d][h].account),"old"===d&&a.old.push(o[d][h].account),"simple"===d&&a.simple.push(o[d][h].account),"super"===d&&a.super.push(o[d][h].account);a.initChart()}n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](1),r.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)}},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)}},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)}},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)}},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)}},barWidth:60,itemStyle:{normal:{color:"#f00"}}}]}),window.onresize=t.chart.resize}))}}},h=d,p=a("2877"),f=Object(p["a"])(h,n,r,!1,null,null,null);e["default"]=f.exports},feb2:function(t,e,a){"use strict";var n=a("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()}}}}}]);
|