(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35bed566"],{"21d2":function(t,e,r){"use strict";r.d(e,"j",(function(){return n})),r.d(e,"k",(function(){return i})),r.d(e,"y",(function(){return l})),r.d(e,"G",(function(){return o})),r.d(e,"H",(function(){return s})),r.d(e,"F",(function(){return c})),r.d(e,"s",(function(){return m})),r.d(e,"C",(function(){return u})),r.d(e,"q",(function(){return d})),r.d(e,"A",(function(){return p})),r.d(e,"D",(function(){return f})),r.d(e,"E",(function(){return b})),r.d(e,"z",(function(){return h})),r.d(e,"d",(function(){return g})),r.d(e,"p",(function(){return x})),r.d(e,"i",(function(){return v})),r.d(e,"g",(function(){return w})),r.d(e,"o",(function(){return O})),r.d(e,"b",(function(){return y})),r.d(e,"r",(function(){return j})),r.d(e,"t",(function(){return T})),r.d(e,"u",(function(){return L})),r.d(e,"f",(function(){return k})),r.d(e,"h",(function(){return _})),r.d(e,"a",(function(){return P})),r.d(e,"e",(function(){return S})),r.d(e,"m",(function(){return I})),r.d(e,"n",(function(){return E})),r.d(e,"x",(function(){return G})),r.d(e,"w",(function(){return C})),r.d(e,"l",(function(){return D})),r.d(e,"B",(function(){return N})),r.d(e,"N",(function(){return z})),r.d(e,"c",(function(){return V})),r.d(e,"v",(function(){return $})),r.d(e,"I",(function(){return M})),r.d(e,"J",(function(){return A})),r.d(e,"K",(function(){return U})),r.d(e,"L",(function(){return B})),r.d(e,"M",(function(){return J}));var a=r("b775");function n(){return Object(a["a"])({url:"/admin/platform/retail/store/config/get",method:"get"})}function i(t){return Object(a["a"])({url:"/admin/platform/retail/store/config/save",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/admin/platform/retail/store/people/list",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/admin/platform/retail/store/sub/user/list",method:"get",params:t})}function s(t){return Object(a["a"])({url:"/admin/platform/retail/store/promotion/order/list",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/admin/platform/retail/store/clean/spread/".concat(t),method:"get"})}function m(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/product/list",method:"GET",params:t})}function u(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/set/product",method:"POST",data:t})}function d(t,e){var r=1==t?"/admin/platform/bcx/performance/report/fxy/list":2==t?"/admin/platform/bcx/performance/report/fxs/list":3==t?"/admin/platform/bcx/performance/report/channel/list":4==t?"/admin/platform/bcx/performance/report/department/list":"/admin/platform/bcx/performance/report/department/member/list";return Object(a["a"])({url:r,method:"GET",params:e})}function p(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/statistics",method:"GET",params:t})}function f(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/statistics",method:"GET",params:t})}function b(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/statistics",method:"GET",params:t})}function h(){return Object(a["a"])({url:"/admin/platform/bcx/region/tree",method:"GET"})}function g(t,e){var r=1===t?"/admin/platform/bcx/performance/report/fxy/list/excel":2===t?"/admin/platform/bcx/performance/report/fxs/list/excel":3===t?"/admin/platform/bcx/performance/report/channel/list/excel":4===t?"/admin/platform/bcx/performance/report/department/list/excel":"/admin/platform/bcx/performance/report/department/member/list/excel";return Object(a["a"])({url:r,method:"GET",params:e,responseType:"blob"})}function x(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/fxy/list",method:"GET",params:t})}function v(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/fxs/list",method:"GET",params:t})}function w(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/channel/list",method:"GET",params:t})}function O(t,e){return Object(a["a"])({url:0==t?"/admin/platform/bcx/settle/bill/department/list":"/admin/platform/bcx/settle/bill/department/member/list",method:"GET",params:e})}function y(t,e){var r=1===t?"/admin/platform/bcx/settle/bill/fxy/list/excel":2===t?"/admin/platform/bcx/settle/bill/fxs/list/excel":3===t?"/admin/platform/bcx/settle/bill/channel/list/excel":4===t?"/admin/platform/bcx/settle/bill/department/list/excel":"/admin/platform/bcx/settle/bill/department/member/list/excel";return Object(a["a"])({url:r,method:"GET",params:e,responseType:"blob"})}function j(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/generate/settle",method:"POST",data:t})}function T(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/detail/".concat(t.id),method:"GET",params:t})}function L(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/get/settle/info",method:"POST",data:t})}function k(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/load",method:"get",params:t})}function _(t){return Object(a["a"])({url:"/admin/platform/bcx/channel/list",method:"get",params:t})}function P(t){return Object(a["a"])({url:"/admin/platform/bcx/region/tree",method:"get",params:t})}function S(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/save",method:"post",data:t})}function I(t){return Object(a["a"])({url:"/admin/platform/bcx/department/tree",method:"get",params:t})}function E(t){return Object(a["a"])({url:"/admin/platform/bcx/department/member/list",method:"GET",params:t})}function G(t,e){var r=1===t?"/admin/platform/bcx/settle/fxy/list":2===t?"/admin/platform/bcx/settle/fxs/list":3===t?"/admin/platform/bcx/settle/channel/list":4===t?"/admin/platform/bcx/settle/department/list":"/admin/platform/bcx/settle/department/member/list";return Object(a["a"])({url:r,method:"GET",params:e})}function C(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/get/settle/info",method:"POST",data:t})}function D(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/do/settle",method:"POST",data:t})}function N(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/cancel/".concat(t.id),method:"POST",params:t})}function z(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/upload/attachments",method:"POST",data:t})}function V(t,e){var r=1===t?"/admin/platform/bcx/settle/fxy/list/excel":2===t?"/admin/platform/bcx/settle/fxs/list/excel":3===t?"/admin/platform/bcx/settle/channel/list/excel":4===t?"/admin/platform/bcx/settle/department/list/excel":"/admin/platform/bcx/settle/department/member/list/excel";return Object(a["a"])({url:r,method:"GET",params:e,responseType:"blob"})}function $(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/detail/".concat(t.id),method:"GET",params:t})}function M(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/channel/list",method:"GET",params:t})}function A(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/bill/list",method:"GET",params:t})}function U(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/list",method:"GET",params:t})}function B(t){return Object(a["a"])({url:"/front/user/performance/report/list",method:"GET",params:t})}function J(t){return Object(a["a"])({url:"/front/user/performance/report/settle/bill/list",method:"GET",params:t})}},"98a7":function(t,e,r){},a5576:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:retail:store:people:list"],expression:"['platform:retail:store:people:list']"}],staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("div",{staticClass:"container"},[r("el-form",{attrs:{size:"small","label-width":"100px"}},[r("div",{staticClass:"time-keyword-search"},[r("div",{staticStyle:{width:"60%"}},[r("el-form-item",{attrs:{label:"时间选择:"}},[r("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:t.searchList},model:{value:t.searchInfo.dateLimit,callback:function(e){t.$set(t.searchInfo,"dateLimit",e)},expression:"searchInfo.dateLimit"}},t._l(t.fromList.fromTxt,(function(e,a){return r("el-radio-button",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),r("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1),t._v(" "),r("div",{staticClass:"keyword-search"},[r("el-form-item",{attrs:{label:"分销类型"}},[r("el-select",{attrs:{placeholder:"请选择"},on:{change:t.searchList},model:{value:t.searchInfo.userType,callback:function(e){t.$set(t.searchInfo,"userType",e)},expression:"searchInfo.userType"}},[r("el-option",{attrs:{label:"全部",value:-1}}),t._v(" "),r("el-option",{attrs:{label:"分销商(企业)",value:1}}),t._v(" "),r("el-option",{attrs:{label:"分销员",value:2}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"所属企业"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入企业名称",size:"small",clearable:""},model:{value:t.searchInfo.org,callback:function(e){t.$set(t.searchInfo,"org","string"===typeof e?e.trim():e)},expression:"searchInfo.org"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:retail:store:people:list"],expression:"['platform:retail:store:people:list']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.searchList},slot:"append"})],1)],1)],1)]),t._v(" "),r("el-form-item",{attrs:{label:"关键字:"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入姓名、电话、UID",size:"small",clearable:""},model:{value:t.searchInfo.keywords,callback:function(e){t.$set(t.searchInfo,"keywords","string"===typeof e?e.trim():e)},expression:"searchInfo.keywords"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:retail:store:people:list"],expression:"['platform:retail:store:people:list']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.searchList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.distributorList,size:"mini","highlight-current-row":""},on:{"selection-change":t.selectOptions}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"id",label:"ID",width:"80",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"头像","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}})],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"realName",label:"分销员姓名","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"phone",label:"电话","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"brokerageUserOrg",label:"所属企业","min-width":"150",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"分销类型","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1===e.row.brokerageUserType?"企业":"个人"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"spreadCount",label:"推广人","min-width":"100",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"推广订单数量(笔)",prop:"spreadOrderNum","min-width":"150",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"推广订单金额(元)","min-width":"150",prop:"spreadOrderTotalPrice",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"promoterTime",label:"加入时间","min-width":"100",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"spreadNickname",label:"上级","min-width":"150",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"佣金总金额","min-width":"120",prop:"totalBrokeragePrice",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:retail:store:sub:user:list"],expression:"['platform:retail:store:sub:user:list']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(r){return t.onSpread(e.row.id,"man","推广人")}}},[t._v("推广人")]),t._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:retail:store:sub:user:list"],expression:"['platform:retail:store:sub:user:list']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},nativeOn:{click:function(r){return t.onSpread(e.row.id,"order","推广订单")}}},[t._v("推广订单")])]}}])})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.limit,"current-page":t.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),r("promoterList",{attrs:{showPromoterListDialog:t.showPromoterListDialog,titleName:t.titleName,uid:t.uid,onName:t.onName},on:{closePromoterListDialog:t.closePromoterListDialog}}),t._v(" "),r("AddSubordinateDialog",{attrs:{showSubordinateDialog:t.showSubordinateDialog,type:t.type}})],1)},n=[],i=r("21d2"),l=r("0f56"),o=r("2542"),s=r("59f2"),c=r("e350"),m={name:"AccountsUser",components:{cardsData:l["a"],promoterList:o["a"],addSubordinateDialog:s["a"],AddSubordinateDialog:s["a"]},data:function(){return{listLoading:!1,showPromoterListDialog:!1,showSubordinateDialog:!1,titleName:"",uid:"",onName:"",fromList:this.$constants.fromList,distributorList:[],timeVal:[],checkList:[],searchInfo:{dateLimit:"",keywords:"",userType:null,org:""},limit:20,total:0,page:1,type:""}},mounted:function(){Object(c["a"])(["platform:retail:store:people:list"])&&this.getList(),console.info("debug")},methods:{checkPermi:c["a"],getList:function(){var t=this;this.listLoading=!0;var e={page:this.page,limit:this.limit};this.searchInfo.dateLimit&&(e.dateLimit=this.searchInfo.dateLimit),this.searchInfo.keywords&&(e.keywords=this.searchInfo.keywords),this.searchInfo.org&&(e.org=this.searchInfo.org),this.searchInfo.userType>0&&(e.userType=this.searchInfo.userType),Object(i["y"])(e).then((function(e){var r=e.limit,a=e.list,n=e.page,i=e.total,l=e.totalPage;t.distributorList=a,t.limit=r,t.total=i,t.page=n,t.totalPage=l,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},searchList:function(){this.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.searchInfo.dateLimit=t?this.timeVal.join(","):"",this.getList()},selectOptions:function(t){this.checkList=t},onSpread:function(t,e,r){this.onName=e,this.titleName=r,this.uid=t,this.showPromoterListDialog=!0},openSubordinateDialog:function(t){this.type=t,this.showSubordinateDialog=!0},handleSizeChange:function(t){this.limit=t,this.getList()},pageChange:function(t){this.page=t,this.getList()},closePromoterListDialog:function(){this.showPromoterListDialog=!1}}},u=m,d=(r("b91f"),r("2877")),p=Object(d["a"])(u,a,n,!1,null,"a8c640ee",null);e["default"]=p.exports},b91f:function(t,e,r){"use strict";r("98a7")}}]);