(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60b04ea6"],{"21d2":function(e,t,r){"use strict";r.d(t,"j",(function(){return n})),r.d(t,"k",(function(){return o})),r.d(t,"y",(function(){return i})),r.d(t,"G",(function(){return l})),r.d(t,"H",(function(){return s})),r.d(t,"F",(function(){return c})),r.d(t,"s",(function(){return m})),r.d(t,"C",(function(){return d})),r.d(t,"q",(function(){return u})),r.d(t,"A",(function(){return p})),r.d(t,"D",(function(){return f})),r.d(t,"E",(function(){return b})),r.d(t,"z",(function(){return h})),r.d(t,"d",(function(){return g})),r.d(t,"p",(function(){return x})),r.d(t,"i",(function(){return v})),r.d(t,"g",(function(){return O})),r.d(t,"o",(function(){return j})),r.d(t,"b",(function(){return I})),r.d(t,"r",(function(){return k})),r.d(t,"t",(function(){return _})),r.d(t,"u",(function(){return y})),r.d(t,"f",(function(){return w})),r.d(t,"h",(function(){return L})),r.d(t,"a",(function(){return T})),r.d(t,"e",(function(){return C})),r.d(t,"m",(function(){return P})),r.d(t,"n",(function(){return S})),r.d(t,"x",(function(){return N})),r.d(t,"w",(function(){return E})),r.d(t,"l",(function(){return G})),r.d(t,"B",(function(){return U})),r.d(t,"N",(function(){return R})),r.d(t,"c",(function(){return z})),r.d(t,"v",(function(){return $})),r.d(t,"I",(function(){return B})),r.d(t,"J",(function(){return M})),r.d(t,"K",(function(){return V})),r.d(t,"L",(function(){return A})),r.d(t,"M",(function(){return D}));var a=r("b775");function n(){return Object(a["a"])({url:"/admin/platform/retail/store/config/get",method:"get"})}function o(e){return Object(a["a"])({url:"/admin/platform/retail/store/config/save",method:"post",data:e})}function i(e){return Object(a["a"])({url:"/admin/platform/retail/store/people/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/admin/platform/retail/store/sub/user/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/admin/platform/retail/store/promotion/order/list",method:"get",params:e})}function c(e){return Object(a["a"])({url:"/admin/platform/retail/store/clean/spread/".concat(e),method:"get"})}function m(e){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/product/list",method:"GET",params:e})}function d(e){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/set/product",method:"POST",data:e})}function u(e,t){var r=1==e?"/admin/platform/bcx/performance/report/fxy/list":2==e?"/admin/platform/bcx/performance/report/fxs/list":3==e?"/admin/platform/bcx/performance/report/channel/list":4==e?"/admin/platform/bcx/performance/report/department/list":"/admin/platform/bcx/performance/report/department/member/list";return Object(a["a"])({url:r,method:"GET",params:t})}function p(e){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/statistics",method:"GET",params:e})}function f(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/statistics",method:"GET",params:e})}function b(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/statistics",method:"GET",params:e})}function h(){return Object(a["a"])({url:"/admin/platform/bcx/region/tree",method:"GET"})}function g(e,t){var r=1===e?"/admin/platform/bcx/performance/report/fxy/list/excel":2===e?"/admin/platform/bcx/performance/report/fxs/list/excel":3===e?"/admin/platform/bcx/performance/report/channel/list/excel":4===e?"/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:t,responseType:"blob"})}function x(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/fxy/list",method:"GET",params:e})}function v(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/fxs/list",method:"GET",params:e})}function O(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/channel/list",method:"GET",params:e})}function j(e,t){return Object(a["a"])({url:0==e?"/admin/platform/bcx/settle/bill/department/list":"/admin/platform/bcx/settle/bill/department/member/list",method:"GET",params:t})}function I(e,t){var r=1===e?"/admin/platform/bcx/settle/bill/fxy/list/excel":2===e?"/admin/platform/bcx/settle/bill/fxs/list/excel":3===e?"/admin/platform/bcx/settle/bill/channel/list/excel":4===e?"/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:t,responseType:"blob"})}function k(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/generate/settle",method:"POST",data:e})}function _(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/detail/".concat(e.id),method:"GET",params:e})}function y(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/get/settle/info",method:"POST",data:e})}function w(e){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/load",method:"get",params:e})}function L(e){return Object(a["a"])({url:"/admin/platform/bcx/channel/list",method:"get",params:e})}function T(e){return Object(a["a"])({url:"/admin/platform/bcx/region/tree",method:"get",params:e})}function C(e){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/save",method:"post",data:e})}function P(e){return Object(a["a"])({url:"/admin/platform/bcx/department/tree",method:"get",params:e})}function S(e){return Object(a["a"])({url:"/admin/platform/bcx/department/member/list",method:"GET",params:e})}function N(e,t){var r=1===e?"/admin/platform/bcx/settle/fxy/list":2===e?"/admin/platform/bcx/settle/fxs/list":3===e?"/admin/platform/bcx/settle/channel/list":4===e?"/admin/platform/bcx/settle/department/list":"/admin/platform/bcx/settle/department/member/list";return Object(a["a"])({url:r,method:"GET",params:t})}function E(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/get/settle/info",method:"POST",data:e})}function G(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/do/settle",method:"POST",data:e})}function U(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/cancel/".concat(e.id),method:"POST",params:e})}function R(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/upload/attachments",method:"POST",data:e})}function z(e,t){var r=1===e?"/admin/platform/bcx/settle/fxy/list/excel":2===e?"/admin/platform/bcx/settle/fxs/list/excel":3===e?"/admin/platform/bcx/settle/channel/list/excel":4===e?"/admin/platform/bcx/settle/department/list/excel":"/admin/platform/bcx/settle/department/member/list/excel";return Object(a["a"])({url:r,method:"GET",params:t,responseType:"blob"})}function $(e){return Object(a["a"])({url:"/admin/platform/bcx/settle/detail/".concat(e.id),method:"GET",params:e})}function B(e){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/channel/list",method:"GET",params:e})}function M(e){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/bill/list",method:"GET",params:e})}function V(e){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/list",method:"GET",params:e})}function A(e){return Object(a["a"])({url:"/front/user/performance/report/list",method:"GET",params:e})}function D(e){return Object(a["a"])({url:"/front/user/performance/report/settle/bill/list",method:"GET",params:e})}},"33d5":function(e,t,r){},a9a4:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:bcx:performance:report:department:member:list"],expression:"['platform:bcx:performance:report:department:member:list']"}],staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("div",{staticClass:"container"},[r("el-form",{attrs:{size:"small","label-width":"110px"}},[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:e.searchList},model:{value:e.searchInfo.dateLimit,callback:function(t){e.$set(e.searchInfo,"dateLimit",t)},expression:"searchInfo.dateLimit"}},e._l(e.fromList.fromTxt,(function(t,a){return r("el-radio-button",{key:a,attrs:{label:t.val}},[e._v("\n "+e._s(t.text)+"\n ")])})),1),e._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:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1),e._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:e.searchInfo.name,callback:function(t){e.$set(e.searchInfo,"name","string"===typeof t?t.trim():t)},expression:"searchInfo.name"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:bcx:performance:report:department:member:list"],expression:"['platform:bcx:performance:report:department:member:list']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.searchList},slot:"append"})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"结算状态:"}},[r("el-select",{on:{change:e.searchList},model:{value:e.searchInfo.settleStatus,callback:function(t){e.$set(e.searchInfo,"settleStatus",t)},expression:"searchInfo.settleStatus"}},[r("el-option",{attrs:{label:"全部",value:-1}}),e._v(" "),r("el-option",{attrs:{label:"待生效",value:1}}),e._v(" "),r("el-option",{attrs:{label:"冻结中",value:2}}),e._v(" "),r("el-option",{attrs:{label:"待结算",value:3}}),e._v(" "),r("el-option",{attrs:{label:"结算中",value:4}}),e._v(" "),r("el-option",{attrs:{label:"已结算",value:5}}),e._v(" "),r("el-option",{attrs:{label:"无效",value:6}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"订单号:"}},[r("el-input",{staticClass:"selWidth1",attrs:{placeholder:"请输入订单号",size:"small",clearable:""},model:{value:e.searchInfo.orderNo,callback:function(t){e.$set(e.searchInfo,"orderNo","string"===typeof t?t.trim():t)},expression:"searchInfo.orderNo"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:bcx:performance:report:department:member:list"],expression:"['platform:bcx:performance:report:department:member:list']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.searchList},slot:"append"})],1)],1)],1),e._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:e.searchInfo.orderUserName,callback:function(t){e.$set(e.searchInfo,"orderUserName","string"===typeof t?t.trim():t)},expression:"searchInfo.orderUserName"}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:bcx:performance:report:department:list"],expression:"['platform:bcx:performance:report:department:list']"}],attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.searchList},slot:"append"})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"区域:"}},[r("el-select",{staticStyle:{width:"500px"},attrs:{placeholder:"请选择区域",clearable:""},on:{change:e.searchList},model:{value:e.searchInfo.orderRegionCode,callback:function(t){e.$set(e.searchInfo,"orderRegionCode",t)},expression:"searchInfo.orderRegionCode"}},e._l(e.regionOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)])],1)]),e._v(" "),r("div",{staticClass:"export-btn",on:{click:e.batchExport}},[e._v("批量导出")]),e._v(" "),r("div",{staticClass:"total-amount"},[e._v("总笔数:"+e._s(e.totalCount)+"笔 | 总成交金额:"+e._s(e.totalPayPrice)+"元 | 总佣金:"+e._s(e.totalBrokeragePrice)+"元")]),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.reportList,size:"mini","highlight-current-row":""},on:{"selection-change":e.selectOptions}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"orderNo",label:"订单ID",width:"150",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"orderTime",label:"订单时间","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"productName",label:"商品名称","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"isServe",label:"绩效类型","min-width":"130",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(1===t.row.isServe?"服务绩效":"业务绩效"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"payPrice",label:"成交金额","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"brokeragePrice",label:"佣金","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"departmentMemberName",label:"成员名称","min-width":"100",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"departmentName",label:"所属部门","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"佣金类型","min-width":"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(1===t.row.brokerageType?"比例":2===t.row.brokerageType?"固定":3===t.row.brokerageType?"自留":""))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"brokerageRatio",label:"分佣规则","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"orderUserRealName",label:"客户(购买人)","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"orderRegion",label:"区域","min-width":"130",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"结算状态","min-width":"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(1===t.row.settleStatus?"待生效":2===t.row.settleStatus?"冻结中":3===t.row.settleStatus?"待结算":4===t.row.settleStatus?"结算中":5===t.row.settleStatus?"已结算":"无效"))])]}}])})],1),e._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.limit,"current-page":e.page,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)],1)},n=[],o=r("21d2"),i=r("0f56"),l=r("e350"),s={name:"memberPerformance",components:{cardsData:i["a"]},data:function(){return{listLoading:!1,fromList:this.$constants.fromList,reportList:[],checkList:[],timeVal:[],searchInfo:{brokerageUserPhone:"",name:"",dateLimit:"",orderNo:"",orderUserName:"",orderRegionCode:""},page:1,limit:20,total:0,regionOptions:[],totalBrokeragePrice:"",totalCount:"",totalPayPrice:""}},mounted:function(){Object(l["a"])(["platform:bcx:performance:report:department:member:list"])&&this.getList(),this.getRegionTree()},methods:{checkPermi:l["a"],getList:function(){var e=this;this.listLoading=!0;var t={limit:this.limit,page:this.page,bcxId:this.bcxId,dateLimit:this.searchInfo.dateLimit,brokerageUserPhone:this.searchInfo.brokerageUserPhone,name:this.searchInfo.name,orderNo:this.searchInfo.orderNo,settleStatus:this.searchInfo.settleStatus,orderUserName:this.searchInfo.orderUserName,orderRegionCode:this.searchInfo.orderRegionCode};Object(o["q"])(5,t).then((function(t){e.getStatistics(),e.limit=t.limit,e.reportList=t.list,e.page=t.page,e.total=t.total,e.listLoading=!1})).catch((function(){e.listLoading=!1}))},getStatistics:function(){var e=this,t={searchType:3,bcxId:this.bcxId,dateLimit:this.searchInfo.dateLimit,brokerageUserPhone:this.searchInfo.brokerageUserPhone,name:this.searchInfo.name,orderNo:this.searchInfo.orderNo,settleStatus:this.searchInfo.settleStatus,orderUserName:this.searchInfo.orderUserName,orderRegionCode:this.searchInfo.orderRegionCode};Object(o["A"])(t).then((function(t){e.totalBrokeragePrice=t.totalBrokeragePrice,e.totalCount=t.totalCount,e.totalPayPrice=t.totalPayPrice}))},getRegionTree:function(){var e=this;Object(o["z"])().then((function(t){e.regionOptions=[],console.log(t),t.forEach((function(t){e.regionOptions.push({value:t.regionCode,label:t.regionName})}))}))},searchList:function(){this.page=1,this.getList()},onchangeTime:function(e){this.timeVal=e,this.searchInfo.dateLimit=e?this.timeVal.join(","):"",this.getList()},batchExport:function(){var e=[];this.checkList.length&&this.checkList.forEach((function(t){e.push(t.id)}));var t={bcxId:this.bcxId?this.bcxId:null,dateLimit:this.searchInfo.dateLimit,brokerageUserPhone:this.searchInfo.brokerageUserPhone,name:this.searchInfo.name,orderNo:this.searchInfo.orderNo,settleStatus:this.searchInfo.settleStatus,orderUserName:this.searchInfo.orderUserName,orderRegionCode:this.searchInfo.orderRegionCode};Object(o["d"])(5,t).then((function(e){var t=decodeURIComponent(e.headers["content-disposition"].split("=")[1]),r=window.URL.createObjectURL(new Blob([e.data],{type:"application/vnd.ms-excel"})),a=document.createElement("a");a.style.display="none",a.href=r,a.setAttribute("download",t),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(r)})).catch((function(){}))},selectOptions:function(e){this.checkList=e},handleSizeChange:function(e){this.limit=e,this.getList()},pageChange:function(e){this.page=e,this.getList()}}},c=s,m=(r("b9ef"),r("2877")),d=Object(m["a"])(c,a,n,!1,null,"ceabfbe6",null);t["default"]=d.exports},b9ef:function(e,t,r){"use strict";r("33d5")}}]);