(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e2d7bb4c"],{"21d2":function(t,e,r){"use strict";r.d(e,"j",(function(){return n})),r.d(e,"k",(function(){return l})),r.d(e,"y",(function(){return o})),r.d(e,"G",(function(){return i})),r.d(e,"H",(function(){return c})),r.d(e,"F",(function(){return s})),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 x})),r.d(e,"p",(function(){return g})),r.d(e,"i",(function(){return v})),r.d(e,"g",(function(){return O})),r.d(e,"o",(function(){return y})),r.d(e,"b",(function(){return j})),r.d(e,"r",(function(){return _})),r.d(e,"t",(function(){return w})),r.d(e,"u",(function(){return k})),r.d(e,"f",(function(){return L})),r.d(e,"h",(function(){return T})),r.d(e,"a",(function(){return I})),r.d(e,"e",(function(){return S})),r.d(e,"m",(function(){return P})),r.d(e,"n",(function(){return E})),r.d(e,"x",(function(){return C})),r.d(e,"w",(function(){return G})),r.d(e,"l",(function(){return N})),r.d(e,"B",(function(){return z})),r.d(e,"N",(function(){return U})),r.d(e,"c",(function(){return R})),r.d(e,"v",(function(){return B})),r.d(e,"I",(function(){return V})),r.d(e,"J",(function(){return $})),r.d(e,"K",(function(){return M})),r.d(e,"L",(function(){return A})),r.d(e,"M",(function(){return D}));var a=r("b775");function n(){return Object(a["a"])({url:"/admin/platform/retail/store/config/get",method:"get"})}function l(t){return Object(a["a"])({url:"/admin/platform/retail/store/config/save",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/admin/platform/retail/store/people/list",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/admin/platform/retail/store/sub/user/list",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/admin/platform/retail/store/promotion/order/list",method:"get",params:t})}function s(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 x(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 g(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 O(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/channel/list",method:"GET",params:t})}function y(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 j(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 _(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/generate/settle",method:"POST",data:t})}function w(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/detail/".concat(t.id),method:"GET",params:t})}function k(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/get/settle/info",method:"POST",data:t})}function L(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/load",method:"get",params:t})}function T(t){return Object(a["a"])({url:"/admin/platform/bcx/channel/list",method:"get",params:t})}function I(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 P(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 C(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 G(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/get/settle/info",method:"POST",data:t})}function N(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/do/settle",method:"POST",data:t})}function z(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/cancel/".concat(t.id),method:"POST",params:t})}function U(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/upload/attachments",method:"POST",data:t})}function R(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 B(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/detail/".concat(t.id),method:"GET",params:t})}function V(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/channel/list",method:"GET",params:t})}function $(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/bill/list",method:"GET",params:t})}function M(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/list",method:"GET",params:t})}function A(t){return Object(a["a"])({url:"/front/user/performance/report/list",method:"GET",params:t})}function D(t){return Object(a["a"])({url:"/front/user/performance/report/settle/bill/list",method:"GET",params:t})}},4312: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:bcx:performance:report:fxy:list"],expression:"['platform:bcx:performance:report:fxy:list']"}],staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("div",{staticClass:"container"},[r("el-form",{attrs:{size:"small","label-width":"100px"}},[r("div",{staticClass:"form-item-container"},[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("\n "+t._s(e.text)+"\n ")])})),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:"form-item-container"},[r("el-form-item",{attrs:{label:"分销员名称"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入姓名",size:"small",clearable:""},model:{value:t.searchInfo.name,callback:function(e){t.$set(t.searchInfo,"name","string"===typeof e?e.trim():e)},expression:"searchInfo.name"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:bcx:performance:report:fxy:list"],expression:"['platform:bcx:performance:report:fxy:list']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.searchList},slot:"append"})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"结算状态:"}},[r("el-select",{on:{change:t.searchList},model:{value:t.searchInfo.settleStatus,callback:function(e){t.$set(t.searchInfo,"settleStatus",e)},expression:"searchInfo.settleStatus"}},[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}}),t._v(" "),r("el-option",{attrs:{label:"待结算",value:3}}),t._v(" "),r("el-option",{attrs:{label:"结算中",value:4}}),t._v(" "),r("el-option",{attrs:{label:"已结算",value:5}}),t._v(" "),r("el-option",{attrs:{label:"无效",value:6}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"订单号:"}},[r("el-input",{staticClass:"selWidth1",attrs:{placeholder:"请输入订单号",size:"small",clearable:""},model:{value:t.searchInfo.orderNo,callback:function(e){t.$set(t.searchInfo,"orderNo","string"===typeof e?e.trim():e)},expression:"searchInfo.orderNo"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:bcx:performance:report:fxy:list"],expression:"['platform:bcx:performance:report:fxy:list']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.searchList},slot:"append"})],1)],1)],1)])],1)]),t._v(" "),r("div",{staticClass:"export-btn",on:{click:t.batchExport}},[t._v("批量导出")]),t._v(" "),r("div",{staticClass:"total-amount"},[t._v("总笔数:"+t._s(t.totalCount)+"笔 | 总成交金额:"+t._s(t.totalPayPrice)+"元 | 总佣金:"+t._s(t.totalBrokeragePrice)+"元")]),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.reportList,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:"orderNo",label:"订单ID",width:"150",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"orderTime",label:"订单时间","min-width":"140",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"productName",label:"商品名称","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"payPrice",label:"成交金额","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"brokeragePrice",label:"佣金","min-width":"130",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:"brokerageUserRealName",label:"分销员姓名","min-width":"100",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"brokerageUserNikeName",label:"分销员昵称","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"brokerageUserPhone",label:"分销员手机号","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"brokerageUserOrg",label:"分销员所属企业","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"佣金类型","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1===e.row.brokerageType?"比例":2===e.row.brokerageType?"固定":3===e.row.brokerageType?"自留":""))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"brokerageRatio",label:"分佣规则","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"orderUserRealName",label:"客户(购买人)","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"结算状态","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1===e.row.settleStatus?"待生效":2===e.row.settleStatus?"冻结中":3===e.row.settleStatus?"待结算":4===e.row.settleStatus?"结算中":5===e.row.settleStatus?"已结算":"无效"))])]}}])})],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)],1)},n=[],l=r("21d2"),o=r("0f56"),i=r("e350"),c={name:"distributionPeople",components:{cardsData:o["a"]},data:function(){return{listLoading:!1,fromList:this.$constants.fromList,reportList:[],checkList:[],timeVal:[],searchInfo:{name:"",dateLimit:"",orderNo:"",settleStatus:null},page:1,limit:20,total:0,totalBrokeragePrice:"",totalCount:"",totalPayPrice:""}},mounted:function(){Object(i["a"])(["platform:bcx:performance:report:fxy:list"])&&this.getList()},methods:{checkPermi:i["a"],getList:function(){var t=this;this.listLoading=!0;var e={limit:this.limit,page:this.page,bcxId:this.bcxId,dateLimit:this.searchInfo.dateLimit,name:this.searchInfo.name,orderNo:this.searchInfo.orderNo,settleStatus:this.searchInfo.settleStatus};Object(l["q"])(1,e).then((function(e){t.getStatistics(),t.limit=e.limit,t.reportList=e.list,t.page=e.page,t.total=e.total,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},getStatistics:function(){var t=this,e={searchType:5,bcxId:this.bcxId,dateLimit:this.searchInfo.dateLimit,name:this.searchInfo.name,orderNo:this.searchInfo.orderNo,settleStatus:this.searchInfo.settleStatus};Object(l["A"])(e).then((function(e){t.totalBrokeragePrice=e.totalBrokeragePrice,t.totalCount=e.totalCount,t.totalPayPrice=e.totalPayPrice}))},searchList:function(){this.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.searchInfo.dateLimit=t?this.timeVal.join(","):"",this.getList()},batchExport:function(){var t=[];this.checkList.length&&this.checkList.forEach((function(e){t.push(e.id)}));var e={bcxId:this.bcxId?this.bcxId:null,dateLimit:this.searchInfo.dateLimit,name:this.searchInfo.name,orderNo:this.searchInfo.orderNo,settleStatus:this.searchInfo.settleStatus};Object(l["d"])(1,e).then((function(t){var e=decodeURIComponent(t.headers["content-disposition"].split("=")[1]),r=window.URL.createObjectURL(new Blob([t.data],{type:"application/vnd.ms-excel"})),a=document.createElement("a");a.style.display="none",a.href=r,a.setAttribute("download",e),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(r)})).catch((function(){}))},selectOptions:function(t){this.checkList=t},handleSizeChange:function(t){this.limit=t,this.getList()},pageChange:function(t){this.page=t,this.getList()}}},s=c,m=(r("6ead"),r("2877")),u=Object(m["a"])(s,a,n,!1,null,"31e8331c",null);e["default"]=u.exports},"6ead":function(t,e,r){"use strict";r("9738")},9738:function(t,e,r){}}]);