(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e69f8a7c"],{"1a4c":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.selectOption}},[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:"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