(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e613b10"],{"21d2":function(t,e,r){"use strict";r.d(e,"j",(function(){return a})),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 u})),r.d(e,"C",(function(){return m})),r.d(e,"q",(function(){return d})),r.d(e,"A",(function(){return f})),r.d(e,"D",(function(){return p})),r.d(e,"E",(function(){return h})),r.d(e,"z",(function(){return b})),r.d(e,"d",(function(){return g})),r.d(e,"p",(function(){return v})),r.d(e,"i",(function(){return x})),r.d(e,"g",(function(){return y})),r.d(e,"o",(function(){return S})),r.d(e,"b",(function(){return O})),r.d(e,"r",(function(){return w})),r.d(e,"t",(function(){return I})),r.d(e,"u",(function(){return j})),r.d(e,"f",(function(){return k})),r.d(e,"h",(function(){return P})),r.d(e,"a",(function(){return L})),r.d(e,"e",(function(){return _})),r.d(e,"m",(function(){return C})),r.d(e,"n",(function(){return E})),r.d(e,"x",(function(){return T})),r.d(e,"w",(function(){return D})),r.d(e,"l",(function(){return G})),r.d(e,"B",(function(){return B})),r.d(e,"N",(function(){return $})),r.d(e,"c",(function(){return A})),r.d(e,"v",(function(){return z})),r.d(e,"I",(function(){return U})),r.d(e,"J",(function(){return R})),r.d(e,"K",(function(){return N})),r.d(e,"L",(function(){return M})),r.d(e,"M",(function(){return V}));var n=r("b775");function a(){return Object(n["a"])({url:"/admin/platform/retail/store/config/get",method:"get"})}function i(t){return Object(n["a"])({url:"/admin/platform/retail/store/config/save",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/admin/platform/retail/store/people/list",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/admin/platform/retail/store/sub/user/list",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/admin/platform/retail/store/promotion/order/list",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/admin/platform/retail/store/clean/spread/".concat(t),method:"get"})}function u(t){return Object(n["a"])({url:"/admin/platform/bcx/brokerage/config/product/list",method:"GET",params:t})}function m(t){return Object(n["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(n["a"])({url:r,method:"GET",params:e})}function f(t){return Object(n["a"])({url:"/admin/platform/bcx/performance/report/statistics",method:"GET",params:t})}function p(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/bill/statistics",method:"GET",params:t})}function h(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/statistics",method:"GET",params:t})}function b(){return Object(n["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(n["a"])({url:r,method:"GET",params:e,responseType:"blob"})}function v(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/bill/fxy/list",method:"GET",params:t})}function x(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/bill/fxs/list",method:"GET",params:t})}function y(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/bill/channel/list",method:"GET",params:t})}function S(t,e){return Object(n["a"])({url:0==t?"/admin/platform/bcx/settle/bill/department/list":"/admin/platform/bcx/settle/bill/department/member/list",method:"GET",params:e})}function O(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(n["a"])({url:r,method:"GET",params:e,responseType:"blob"})}function w(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/bill/generate/settle",method:"POST",data:t})}function I(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/bill/detail/".concat(t.id),method:"GET",params:t})}function j(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/bill/get/settle/info",method:"POST",data:t})}function k(t){return Object(n["a"])({url:"/admin/platform/bcx/brokerage/config/load",method:"get",params:t})}function P(t){return Object(n["a"])({url:"/admin/platform/bcx/channel/list",method:"get",params:t})}function L(t){return Object(n["a"])({url:"/admin/platform/bcx/region/tree",method:"get",params:t})}function _(t){return Object(n["a"])({url:"/admin/platform/bcx/brokerage/config/save",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/admin/platform/bcx/department/tree",method:"get",params:t})}function E(t){return Object(n["a"])({url:"/admin/platform/bcx/department/member/list",method:"GET",params:t})}function T(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(n["a"])({url:r,method:"GET",params:e})}function D(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/get/settle/info",method:"POST",data:t})}function G(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/do/settle",method:"POST",data:t})}function B(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/cancel/".concat(t.id),method:"POST",params:t})}function $(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/upload/attachments",method:"POST",data:t})}function A(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(n["a"])({url:r,method:"GET",params:e,responseType:"blob"})}function z(t){return Object(n["a"])({url:"/admin/platform/bcx/settle/detail/".concat(t.id),method:"GET",params:t})}function U(t){return Object(n["a"])({url:"/admin/platform/bcx/performance/report/channel/list",method:"GET",params:t})}function R(t){return Object(n["a"])({url:"/admin/platform/bcx/performance/report/settle/bill/list",method:"GET",params:t})}function N(t){return Object(n["a"])({url:"/admin/platform/bcx/performance/report/settle/list",method:"GET",params:t})}function M(t){return Object(n["a"])({url:"/front/user/performance/report/list",method:"GET",params:t})}function V(t){return Object(n["a"])({url:"/front/user/performance/report/settle/bill/list",method:"GET",params:t})}},"37af":function(t,e,r){},"63f5":function(t,e,r){},"885c":function(t,e,r){"use strict";r("63f5")},"95b5":function(t,e,r){"use strict";r("37af")},b538:function(t,e,r){"use strict";r.r(e);var n=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",[r("el-form-item",{attrs:{label:"账期:"}},[r("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(" "),r("div",{staticClass:"keyword-search"},[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}})],1)],1)],1)]),t._v(" "),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: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("div",{staticClass:"btns"},[r("div",{staticClass:"batch-settle-btn",on:{click:t.batchSettleBill}},[t._v("批量生成")]),t._v(" "),r("div",{staticClass:"batch-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"}],ref:"tableComp",staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.billList,size:"mini","highlight-current-row":""},on:{"selection-change":t.selectOptions}},[r("el-table-column",{attrs:{type:"selection",width:"55",selectable:t.selectable,align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"brokerageUserRealName",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:{prop:"billPeriod",label:"账期","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"orderCount",label:"订单数(笔)","min-width":"100",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"orderTotalPrice",label:"实付总金额(元)","min-width":"130",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"brokerageTotalPrice",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?"部分结算":"已结算"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"createTime",label:"账单生成时间","min-width":"130",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']"}],attrs:{type:"text",size:"small",disabled:3===e.row.settleStatus},on:{click:function(r){return t.openSettleDialog(e.row)}}},[t._v("\n 生成结算单\n ")]),t._v(" "),r("span",[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']"}],attrs:{type:"text",size:"small"},on:{click:function(r){return t.navigateToSettleDetail(e.row.id)}}},[t._v("\n 账单详情\n ")]),t._v(" "),r("span",[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"},on:{click:function(r){return t.exportDetail(e.row.id)}}},[t._v("\n 导出明细\n ")])]}}])})],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("settleDialog",{attrs:{showSettleDialog:t.showSettleDialog,checkList:t.checkList},on:{updateList:t.getList,closeSettleDialog:t.closeSettleDialog}})],1)},a=[],i=r("21d2"),l=r("0f56"),o=r("e350"),s=r("f6ba");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 r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r