(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-92a8b148"],{"21d2":function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"k",(function(){return i})),n.d(e,"y",(function(){return l})),n.d(e,"G",(function(){return o})),n.d(e,"H",(function(){return s})),n.d(e,"F",(function(){return c})),n.d(e,"s",(function(){return u})),n.d(e,"C",(function(){return m})),n.d(e,"q",(function(){return d})),n.d(e,"A",(function(){return f})),n.d(e,"D",(function(){return p})),n.d(e,"E",(function(){return h})),n.d(e,"z",(function(){return b})),n.d(e,"d",(function(){return g})),n.d(e,"p",(function(){return v})),n.d(e,"i",(function(){return x})),n.d(e,"g",(function(){return y})),n.d(e,"o",(function(){return S})),n.d(e,"b",(function(){return I})),n.d(e,"r",(function(){return w})),n.d(e,"t",(function(){return O})),n.d(e,"u",(function(){return P})),n.d(e,"f",(function(){return L})),n.d(e,"h",(function(){return j})),n.d(e,"a",(function(){return k})),n.d(e,"e",(function(){return C})),n.d(e,"m",(function(){return _})),n.d(e,"n",(function(){return E})),n.d(e,"x",(function(){return T})),n.d(e,"w",(function(){return A})),n.d(e,"l",(function(){return D})),n.d(e,"B",(function(){return B})),n.d(e,"N",(function(){return G})),n.d(e,"c",(function(){return $})),n.d(e,"v",(function(){return z})),n.d(e,"I",(function(){return R})),n.d(e,"J",(function(){return U})),n.d(e,"K",(function(){return N})),n.d(e,"L",(function(){return M})),n.d(e,"M",(function(){return V}));var a=n("b775");function r(){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 u(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/product/list",method:"GET",params:t})}function m(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/set/product",method:"POST",data:t})}function d(t,e){var n=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:n,method:"GET",params:e})}function f(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/statistics",method:"GET",params:t})}function p(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/statistics",method:"GET",params:t})}function h(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/statistics",method:"GET",params:t})}function b(){return Object(a["a"])({url:"/admin/platform/bcx/region/tree",method:"GET"})}function g(t,e){var n=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:n,method:"GET",params:e,responseType:"blob"})}function v(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/fxy/list",method:"GET",params:t})}function x(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/fxs/list",method:"GET",params:t})}function y(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/channel/list",method:"GET",params:t})}function S(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 I(t,e){var n=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:n,method:"GET",params:e,responseType:"blob"})}function w(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/generate/settle",method:"POST",data:t})}function O(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/bill/detail/".concat(t.id),method:"GET",params:t})}function P(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 j(t){return Object(a["a"])({url:"/admin/platform/bcx/channel/list",method:"get",params:t})}function k(t){return Object(a["a"])({url:"/admin/platform/bcx/region/tree",method:"get",params:t})}function C(t){return Object(a["a"])({url:"/admin/platform/bcx/brokerage/config/save",method:"post",data:t})}function _(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 T(t,e){var n=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:n,method:"GET",params:e})}function A(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 B(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/cancel/".concat(t.id),method:"POST",params:t})}function G(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/upload/attachments",method:"POST",data:t})}function $(t,e){var n=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:n,method:"GET",params:e,responseType:"blob"})}function z(t){return Object(a["a"])({url:"/admin/platform/bcx/settle/detail/".concat(t.id),method:"GET",params:t})}function R(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/channel/list",method:"GET",params:t})}function U(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/bill/list",method:"GET",params:t})}function N(t){return Object(a["a"])({url:"/admin/platform/bcx/performance/report/settle/list",method:"GET",params:t})}function M(t){return Object(a["a"])({url:"/front/user/performance/report/list",method:"GET",params:t})}function V(t){return Object(a["a"])({url:"/front/user/performance/report/settle/bill/list",method:"GET",params:t})}},"2f99":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-comp"},[n("div",{staticClass:"btns"},[n("div",{staticClass:"settle-btn",on:{click:t.batchSettleBill}},[t._v("批量结算")]),t._v(" "),n("div",{staticClass:"export-btn",on:{click:t.batchExport}},[t._v("批量导出")])]),t._v(" "),n("div",{staticClass:"total-amount"},[t._v("总笔数:"+t._s(t.totalCount)+"笔 | 总成交金额:"+t._s(t.totalPayPrice)+"元 | 总佣金:"+t._s(t.totalBrokeragePrice)+"元")]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"tableComp",staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.billList,size:"mini","highlight-current-row":""},on:{"selection-change":t.selectOptions}},[n("el-table-column",{attrs:{type:"selection",width:"55",selectable:t.selectable,align:"center"}}),t._v(" "),0==t.tabActive?n("el-table-column",{attrs:{prop:"departmentName",label:"部门名称","min-width":"130",align:"center"}}):n("el-table-column",{attrs:{prop:"departmentMemberName",label:"部门成员","min-width":"130",align:"center"}}),t._v(" "),0!=t.tabActive?n("el-table-column",{attrs:{prop:"departmentName",label:"所属部门","min-width":"130",align:"center"}}):t._e(),t._v(" "),n("el-table-column",{attrs:{prop:"billPeriod",label:"账期","min-width":"130",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"orderCount",label:"订单数(笔)","min-width":"100",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"orderTotalPrice",label:"实付总金额(元)","min-width":"130",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"brokerageTotalPrice",label:"佣金总额(元)","min-width":"130",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"结算状态","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.settleStatus?"待结算":2===e.row.settleStatus?"部分结算":"已结算"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"createTime",label:"账单生成时间","min-width":"130",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["*:*:*"],expression:"['*:*:*']"}],attrs:{type:"text",size:"small",disabled:3===e.row.settleStatus},on:{click:function(n){return t.openSettleDialog(e.row)}}},[t._v("\n 生成结算单\n ")]),t._v(" "),n("span",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["*:*:*"],expression:"['*:*:*']"}]},[t._v("|")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.navigateToSettleDetail(e.row.id)}}},[t._v("\n 账单详情\n ")]),t._v(" "),n("span",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["*:*:*"],expression:"['*:*:*']"}]},[t._v("|")]),t._v(" "),n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["*:*:*"],expression:"['*:*:*']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.exportDetail(e.row.id)}}},[t._v("\n 导出明细\n ")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("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),t._v(" "),n("settleDialog",{attrs:{showSettleDialog:t.showSettleDialog,checkList:t.checkList},on:{closeSettleDialog:t.closeSettleDialog,updateList:t.updateList}})],1)},r=[],i=n("21d2"),l=n("f6ba"),o={components:{settleDialog:l["a"]},props:["listLoading","billList","tabActive","limit","total","page","tabActive","searchInfo","bcxId","totalBrokeragePrice","totalCount","totalPayPrice"],data:function(){return{showSettleDialog:!1,checkList:[]}},methods:{batchSettleBill:function(){this.checkList.length?this.showSettleDialog=!0:this.$message({message:"至少选中一条记录",type:"warning",showClose:!0})},batchExport:function(){var t=[];this.checkList.length&&this.checkList.forEach((function(e){t.push(e.id)}));var e={bcxId:this.bcxId?this.bcxId:null,billPeriodStart:this.searchInfo.billPeriodStart?this.searchInfo.billPeriodStart:null,billPeriodEnd:this.searchInfo.billPeriodEnd?this.searchInfo.billPeriodEnd:null,settleStatus:this.searchInfo.settleStatus,name:this.searchInfo.name},n=0==this.tabActive?4:5;Object(i["b"])(n,e).then((function(t){var e=decodeURIComponent(t.headers["content-disposition"].split("=")[1]),n=window.URL.createObjectURL(new Blob([t.data],{type:"application/vnd.ms-excel"})),a=document.createElement("a");a.style.display="none",a.href=n,a.setAttribute("download",e),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(n)})).catch((function(){}))},selectOptions:function(t){this.checkList=t},selectable:function(t){return this.billList.findIndex((function(e){return 3===t.settleStatus}))},openSettleDialog:function(t){0===this.checkList.length?(this.checkList.push(t),this.$refs.tableComp.selection.push(t)):1===this.checkList.length?this.checkList[0].id!==t.id&&(this.$refs.tableComp.clearSelection(),this.$refs.tableComp.selection.push(t),this.checkList=[],this.checkList.push(t)):(this.$refs.tableComp.clearSelection(),this.$refs.tableComp.selection.push(t),this.checkList=[],this.checkList.push(t)),this.showSettleDialog=!0},closeSettleDialog:function(){this.showSettleDialog=!1},navigateToSettleDetail:function(t){this.$router.push({path:"/distribution/performanceBill/performanceBillDetail",query:{id:t,bcxId:this.bcxId,type:0==this.tabActive?4:5}})},exportDetail:function(t){var e={settleBillId:t},n=0==this.tabActive?4:5;Object(i["d"])(n,e).then((function(t){var e=decodeURIComponent(t.headers["content-disposition"].split("=")[1]),n=window.URL.createObjectURL(new Blob([t.data],{type:"application/vnd.ms-excel"})),a=document.createElement("a");a.style.display="none",a.href=n,a.setAttribute("download",e),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(n)})).then((function(){}))},handleSizeChange:function(t){this.$emit("handleSizeChange",t)},pageChange:function(t){this.$emit("pageChange",t)},updateList:function(){this.$emit("updateList")}}},s=o,c=(n("c897"),n("2877")),u=Object(c["a"])(s,a,r,!1,null,"4f265749",null);e["a"]=u.exports},"59b4":function(t,e,n){},"59f8":function(t,e,n){},"63f5":function(t,e,n){},"885c":function(t,e,n){"use strict";n("63f5")},a5cf:function(t,e,n){"use strict";n("59f8")},c897:function(t,e,n){"use strict";n("59b4")},f2e7:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("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"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"100px"}},[n("div",{staticClass:"time-keyword-search"},[n("div",[n("el-form-item",{attrs:{label:"账期:"}},[n("el-date-picker",{staticStyle:{width:"300px"},attrs:{"value-format":"yyyy-MM",format:"yyyy-MM",size:"small",type:"monthrange",placement:"bottom-end","start-placeholder":"账单开始时间","end-placeholder":"账单结束时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1),t._v(" "),n("div",{staticClass:"keyword-search"},[n("el-form-item",{attrs:{label:"结算状态"}},[n("el-select",{on:{change:t.seachList},model:{value:t.searchInfo.settleStatus,callback:function(e){t.$set(t.searchInfo,"settleStatus",e)},expression:"searchInfo.settleStatus"}},[n("el-option",{attrs:{label:"全部",value:-1}}),t._v(" "),n("el-option",{attrs:{label:"待结算",value:1}}),t._v(" "),n("el-option",{attrs:{label:"部分结算",value:2}}),t._v(" "),n("el-option",{attrs:{label:"已结算",value:3}})],1)],1)],1)]),t._v(" "),n("el-form-item",{attrs:{label:0==t.tabActive?"部门名称:":"成员姓名:"}},[n("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"}},[n("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:t.seachList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("tableComp",{attrs:{bcxId:t.bcxId,billList:t.billList,listLoading:t.listLoading,tabActive:t.tabActive,page:t.page,total:t.total,limit:t.limit,totalBrokeragePrice:t.totalBrokeragePrice,totalCount:t.totalCount,totalPayPrice:t.totalPayPrice,searchInfo:t.searchInfo},on:{updateList:t.getList,handleSizeChange:t.handleSizeChange,pageChange:t.pageChange}})],1)],1)},r=[],i=n("21d2"),l=n("e350"),o=n("0f56"),s=n("2f99");function c(t,e){return p(t)||f(t,e)||m(t,e)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);nt.length)&&(e=t.length);for(var n=0,a=new Array(e);n