(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ca41f8b8"],{"142a":function(e,t,r){"use strict";r("f6b1")},"365c":function(e,t,r){"use strict";r.d(t,"m",(function(){return a})),r.d(t,"f",(function(){return o})),r.d(t,"e",(function(){return u})),r.d(t,"o",(function(){return l})),r.d(t,"k",(function(){return i})),r.d(t,"h",(function(){return s})),r.d(t,"i",(function(){return c})),r.d(t,"d",(function(){return d})),r.d(t,"p",(function(){return g})),r.d(t,"g",(function(){return p})),r.d(t,"j",(function(){return _})),r.d(t,"n",(function(){return m})),r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return b})),r.d(t,"l",(function(){return y}));var n=r("b775"),a=function(e){return Object(n["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:e})},o=function(e){return Object(n["a"])({url:"/goods/get_goods_sales_value",method:"get",params:e})},u=function(e){return Object(n["a"])({url:"/order/get_order_daily_sales",method:"get",params:e})},l=function(e){return Object(n["a"])({url:"/order/get_store_top10",method:"get",params:e})},i=function(e){return Object(n["a"])({url:"/index/get_warea_order_by",method:"get",params:e})},s=function(e){return Object(n["a"])({url:"/goods/get_province_sales_orderBy",method:"get",params:e})},c=function(e){return Object(n["a"])({url:"/index/get_sale_info",method:"get",params:e})},d=function(e){return Object(n["a"])({url:"/index/all_order_by",method:"get",params:e})},g=function(e){return Object(n["a"])({url:"/index/yesterday_order_by",method:"get",params:e})},p=function(e){return Object(n["a"])({url:"/index/get_history_total",method:"get",params:e})},_=function(e){return Object(n["a"])({url:"/index/get_sku_history_num",method:"get",params:e})},m=function(e){return Object(n["a"])({url:"/index/get_sku_order_by",method:"get",params:e})},f=function(e){return Object(n["a"])({url:"/index/get_every_add_agent",method:"get",params:e})},h=function(e){return Object(n["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:e})},b=function(e){return Object(n["a"])({url:"/index/get_every_add_agent_line",method:"get",params:e})},y=function(e){return Object(n["a"])({url:"/index/get_agent_pay_rate",method:"get",params:e})}},d090a:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"rank"},[e._v("代理/客户支付占比分析")]),r("el-table",{ref:"allTable",staticStyle:{width:"100%","max-height":"480px",overflow:"auto"},attrs:{border:"",data:e.list,height:"480"}},[r("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60",index:function(t){return e.params.page_size*(e.params.page_index-1)+t+1}}}),r("el-table-column",{attrs:{label:"代理昵称",prop:"name",align:"center"}}),r("el-table-column",{attrs:{label:"代理手机号",prop:"phone",align:"center",width:"120"}}),r("el-table-column",{attrs:{align:"center",label:"成交套数",prop:"all",width:"100"}}),r("el-table-column",{attrs:{label:"代支付套数",prop:"no_self_pay_total",align:"center",width:"100"}}),r("el-table-column",{attrs:{align:"center",label:"代支付套数占比",prop:"agent",width:"130"}}),r("el-table-column",{attrs:{align:"center",label:"客户支付套数",prop:"pay_total",width:"120"}}),r("el-table-column",{attrs:{align:"center",label:"客户支付套数占比",prop:"user"}})],1),r("div",{staticClass:"batch-container"},[r("el-pagination",{attrs:{"current-page":e.params.page_index,"page-sizes":[10,15,20,30,100],"page-size":e.params.page_size,layout:"total, sizes, prev, pager, next, jumper",total:e.totalPage},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},a=[],o=r("1da1"),u=(r("96cf"),r("d81d"),r("a9e3"),r("365c")),l={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(e,t){return 0===e||0===t?0:Math.round(e/t*1e4)/100+"%"},getAllOrder:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,n,a,o,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["l"])(e.params);case 2:r=t.sent;try{n=r.msg,a=r.code,o=r.data,200===a?(l=o.list,l.map((function(t){var r=Number(t.pay_total)+Number(t.no_self_pay_total),n=e.Percentage(Number(t.no_self_pay_total),r),a=e.Percentage(Number(t.pay_total),r);e.$set(t,"all",r),e.$set(t,"user",a),e.$set(t,"agent",n)})),e.list=l,e.totalPage=o.total):e.$message.error(n||"获取数据失败")}catch(i){e.$message.error(i||"获取数据失败")}case 4:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.params.page_size=e,this.getAllOrder()},handleCurrentChange:function(e){this.params.page_index=e,this.getAllOrder()}}},i=l,s=(r("142a"),r("2877")),c=Object(s["a"])(i,n,a,!1,null,"220db938",null);t["default"]=c.exports},f6b1:function(e,t,r){}}]);