1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d9ae063"],{3076:function(t,e,n){},"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 u})),n.d(e,"o",(function(){return c})),n.d(e,"k",(function(){return i})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return l})),n.d(e,"p",(function(){return f})),n.d(e,"g",(function(){return g})),n.d(e,"j",(function(){return _})),n.d(e,"n",(function(){return m})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return h})),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})},u=function(t){return Object(r["a"])({url:"/order/get_order_daily_sales",method:"get",params:t})},c=function(t){return Object(r["a"])({url:"/order/get_store_top10",method:"get",params:t})},i=function(t){return Object(r["a"])({url:"/index/get_warea_order_by",method:"get",params:t})},s=function(t){return Object(r["a"])({url:"/goods/get_province_sales_orderBy",method:"get",params:t})},d=function(t){return Object(r["a"])({url:"/index/get_sale_info",method:"get",params:t})},l=function(t){return Object(r["a"])({url:"/index/all_order_by",method:"get",params:t})},f=function(t){return Object(r["a"])({url:"/index/yesterday_order_by",method:"get",params:t})},g=function(t){return Object(r["a"])({url:"/index/get_history_total",method:"get",params:t})},_=function(t){return Object(r["a"])({url:"/index/get_sku_history_num",method:"get",params:t})},m=function(t){return Object(r["a"])({url:"/index/get_sku_order_by",method:"get",params:t})},p=function(t){return Object(r["a"])({url:"/index/get_every_add_agent",method:"get",params:t})},b=function(t){return Object(r["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:t})},h=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)},6149: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("el-table",{ref:"skuTable",staticStyle:{width:"100%","max-height":"480px",overflow:"auto"},attrs:{border:"",data:t.skuList,height:"480"},on:{"sort-change":t.toSort}},[n("el-table-column",{attrs:{label:"排名",type:"index",align:"center",width:"60",index:function(t){return t+1}}}),n("el-table-column",{attrs:{label:"商品名称",prop:"name",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(" "+t._s(n.goods&&n.goods.main_attr)+" ")]}}])}),n("el-table-column",{attrs:{label:"款式",prop:"type",align:"center"}}),n("el-table-column",{attrs:{label:"尺码",prop:"size",align:"center"}}),n("el-table-column",{attrs:{label:"销售数量",prop:"total",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(" "+t._s(t.format(n.detail.total,!0))+" ")]}}])}),n("el-table-column",{attrs:{label:"销售金额",prop:"account",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(" "+t._s(t.format(n.detail.account))+" ")]}}])})],1),n("div",{staticClass:"batch-container"})],1)},a=[],o=n("1da1"),u=(n("96cf"),n("365c")),c=n("44f1"),i={data:function(){return{skuList:[]}},created:function(){this.getSku(),this.format=c["a"]},methods:{getSku:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["n"])();case 2:n=e.sent;try{r=n.msg,a=n.code,o=n.data,200===a?t.skuList=o:t.$message.error(r||"获取数据失败")}catch(c){t.$message.error(c||"获取数据失败")}case 4:case"end":return e.stop()}}),e)})))()},descending:function(t){return function(e,n){var r=e.detail[t],a=n.detail[t];return r-a}},ascending:function(t){return function(e,n){var r=e.detail[t],a=n.detail[t];return a-r}},toSort:function(t){t.column;var e=t.prop,n=t.order,r=this.skuList;if("total"===e)return"ascending"===n?r.sort(this.descending("total")):r.sort(this.ascending("total")),!1;"account"===e&&("ascending"===n?r.sort(this.descending("account")):r.sort(this.ascending("account")))}}},s=i,d=(n("c00e"),n("2877")),l=Object(d["a"])(s,r,a,!1,null,"39cf00a0",null);e["default"]=l.exports},c00e:function(t,e,n){"use strict";n("3076")}}]);
|