(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3229a351"],{"2a77":function(e,t,a){"use strict";a("789a")},"365c":function(e,t,a){"use strict";a.d(t,"k",(function(){return r})),a.d(t,"e",(function(){return u})),a.d(t,"m",(function(){return l})),a.d(t,"f",(function(){return o})),a.d(t,"h",(function(){return i})),a.d(t,"d",(function(){return c})),a.d(t,"n",(function(){return s})),a.d(t,"g",(function(){return d})),a.d(t,"i",(function(){return g})),a.d(t,"l",(function(){return p})),a.d(t,"a",(function(){return h})),a.d(t,"b",(function(){return m})),a.d(t,"c",(function(){return _})),a.d(t,"j",(function(){return b}));var n=a("b775"),r=function(e){return Object(n["a"])({url:"/goods/get_goods_sku_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})},o=function(e){return Object(n["a"])({url:"/index/index",method:"get",params:e})},i=function(e){return Object(n["a"])({url:"/index/get_sale_info",method:"get",params:e})},c=function(e){return Object(n["a"])({url:"/index/all_order_by",method:"get",params:e})},s=function(e){return Object(n["a"])({url:"/index/yesterday_order_by",method:"get",params:e})},d=function(e){return Object(n["a"])({url:"/index/get_history_total",method:"get",params:e})},g=function(e){return Object(n["a"])({url:"/index/get_sku_history_num",method:"get",params:e})},p=function(e){return Object(n["a"])({url:"/index/get_sku_order_by",method:"get",params:e})},h=function(e){return Object(n["a"])({url:"/index/get_every_add_agent",method:"get",params:e})},m=function(e){return Object(n["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:e})},_=function(e){return Object(n["a"])({url:"/index/get_every_add_agent_line",method:"get",params:e})},b=function(e){return Object(n["a"])({url:"/index/get_agent_pay_rate",method:"get",params:e})}},"789a":function(e,t,a){},d090a:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"rank"},[e._v("公司客户/客户支付占比分析")]),a("el-table",{ref:"allTable",staticStyle:{width:"100%","max-height":"480px",overflow:"auto"},attrs:{border:"",data:e.list,height:"480"}},[a("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}}}),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":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)},r=[],u=a("c7eb"),l=a("1da1"),o=(a("d81d"),a("a9e3"),a("365c")),i={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(l["a"])(Object(u["a"])().mark((function t(){var a,n,r,l,i;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["j"])(e.params);case 2:a=t.sent;try{n=a.msg,r=a.code,l=a.data,200===r?(i=l.list,i.map((function(t){var a=Number(t.pay_total)+Number(t.no_self_pay_total),n=e.Percentage(Number(t.no_self_pay_total),a),r=e.Percentage(Number(t.pay_total),a);e.$set(t,"all",a),e.$set(t,"user",r),e.$set(t,"agent",n)})),e.list=i,e.totalPage=l.total):e.$message.error(n||"获取数据失败")}catch(u){e.$message.error(u||"获取数据失败")}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()}}},c=i,s=(a("2a77"),a("2877")),d=Object(s["a"])(c,n,r,!1,null,"3bb94190",null);t["default"]=d.exports}}]);