|
@@ -65,7 +65,7 @@
|
|
|
</div>
|
|
|
</a-alert>
|
|
|
<div style="margin-bottom: 15px">
|
|
|
- <a-button type="primary" id="financialCollectionList-export" :disabled="!hasSelected" :loading="loading" @click="handleCollection">批量收款</a-button>
|
|
|
+ <a-button type="primary" id="financialCollectionList-export" :loading="loading" @click="handleCollection">批量收款</a-button>
|
|
|
<span style="margin-left: 8px">
|
|
|
<template v-if="hasSelected">
|
|
|
{{ `已选 ${selectedRowKeys.length} 项` }}
|
|
@@ -310,6 +310,10 @@ export default {
|
|
|
},
|
|
|
// 批量收款
|
|
|
handleCollection () {
|
|
|
+ if (this.selectedRowKeys.length < 1) {
|
|
|
+ this.$message.warning('请在列表勾选后再进行批量操作!')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.loading = true
|
|
|
settleReceiptMoney({ settleChangeIds: this.selectedRowKeys }).then(res => {
|
|
|
this.loading = false
|