chunk-7685936f.e2e22c81.js 6.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7685936f"],{"022d":function(t,e,n){"use strict";n("b095")},"115e":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"rank"},[t._v("昨日销量数据排名")]),n("div",{staticClass:"tabs"},[n("div",{class:1==t.current?"active":"",on:{click:function(e){return t.choose(1)}}},[t._v("精装版")]),n("div",{class:2==t.current?"active":"",on:{click:function(e){return t.choose(2)}}},[t._v("简约版")]),n("div",{class:3==t.current?"active":"",on:{click:function(e){return t.choose(3)}}},[t._v("老人版")]),n("div",{class:4==t.current?"active":"",on:{click:function(e){return t.choose(4)}}},[t._v(" 纯棉老人版 ")])]),n("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"}},[n("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}}}),n("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[n("img",{staticClass:"hoverImg",attrs:{width:"36",height:"36",src:e.img}})]}}])}),n("el-table-column",{attrs:{label:"店铺名称",prop:"name",align:"center"}}),n("el-table-column",{attrs:{label:"销售数量",prop:"total",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(" "+t._s(t.format(n.total,!0))+" ")]}}])}),n("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(" "+t._s(t.format(n.account))+" ")]}}])})],1),n("div",{staticClass:"batch-container"},[n("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)},a=[],o=n("1da1"),i=(n("96cf"),n("365c")),s=n("44f1"),u={data:function(){return{yeslist:[],current:1,params:{page_index:1,page_size:20},totalPage:0,loading:!1}},created:function(){this.format=s["a"],this.getList()},methods:{choose:function(t){this.params.page_index=1,this.current=t,this.getList()},getList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,a,o,s,u,c,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,Object(i["p"])(t.params);case 3:if(n=e.sent,e.prev=4,r=n.msg,a=n.code,o=n.data,200!==a){e.next=27;break}s=o.cotton_info,u=o.old_info,c=o.simple_info,l=o.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=l.list,t.totalPage=l.total,e.abrupt("break",25);case 14:return t.yeslist=c.list,t.totalPage=c.total,e.abrupt("break",25);case 17:return t.yeslist=u.list,t.totalPage=u.total,e.abrupt("break",25);case 20:return t.yeslist=s.list,t.totalPage=s.total,e.abrupt("break",25);case 23:t.yeslist=l.list,t.totalPage=l.total;case 25:e.next=28;break;case 27:t.$message.error(r||"获取数据失败");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()}}},c=u,l=(n("022d"),n("2877")),d=Object(l["a"])(c,r,a,!1,null,"0b7e042f",null);e["default"]=d.exports},"365c":function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return i})),n.d(e,"o",(function(){return s})),n.d(e,"k",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return l})),n.d(e,"d",(function(){return d})),n.d(e,"p",(function(){return g})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"n",(function(){return _})),n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return b})),n.d(e,"l",(function(){return v}));var r=n("b775"),a=function(t){return Object(r["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:t})},o=function(t){return Object(r["a"])({url:"/goods/get_goods_sales_value",method:"get",params:t})},i=function(t){return Object(r["a"])({url:"/order/get_order_daily_sales",method:"get",params:t})},s=function(t){return Object(r["a"])({url:"/order/get_store_top10",method:"get",params:t})},u=function(t){return Object(r["a"])({url:"/index/get_warea_order_by",method:"get",params:t})},c=function(t){return Object(r["a"])({url:"/goods/get_province_sales_orderBy",method:"get",params:t})},l=function(t){return Object(r["a"])({url:"/index/get_sale_info",method:"get",params:t})},d=function(t){return Object(r["a"])({url:"/index/all_order_by",method:"get",params:t})},g=function(t){return Object(r["a"])({url:"/index/yesterday_order_by",method:"get",params:t})},f=function(t){return Object(r["a"])({url:"/index/get_history_total",method:"get",params:t})},p=function(t){return Object(r["a"])({url:"/index/get_sku_history_num",method:"get",params:t})},_=function(t){return Object(r["a"])({url:"/index/get_sku_order_by",method:"get",params:t})},m=function(t){return Object(r["a"])({url:"/index/get_every_add_agent",method:"get",params:t})},h=function(t){return Object(r["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:t})},b=function(t){return Object(r["a"])({url:"/index/get_every_add_agent_line",method:"get",params:t})},v=function(t){return Object(r["a"])({url:"/index/get_agent_pay_rate",method:"get",params:t})}},"44f1":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a9e3"),n("b680"),n("ac1f"),n("5319"),n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("4de4"),n("d81d");function r(t,e){return t?(Number(t)+"").replace(/\d{1,4}(?=(\d{4})+(\.\d*)?$)/g,"$&,"):0}},"4ec9":function(t,e,n){"use strict";var r=n("6d61"),a=n("6566");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),a)},b095:function(t,e,n){}}]);