|
@@ -58,7 +58,6 @@
|
|
|
<div>
|
|
|
<a-button type="primary" style="margin-right: 5px" @click="handleBatchAdd" :loading="addMoreLoading">批量选择</a-button>
|
|
|
<span v-if="selNums&&selNums!=0" style="margin:0 0 0 10px;">已选中{{ selNums }}项</span>
|
|
|
- <span v-if="totalAmount&&totalAmount!=0">,余额 {{ Number(totalAmount).toFixed(2) }}元</span>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -70,8 +69,8 @@
|
|
|
class="sTable"
|
|
|
ref="chooseTable"
|
|
|
size="small"
|
|
|
- :rowKey="(record) => record.bizSn"
|
|
|
- rowKeyName="bizSn"
|
|
|
+ :rowKey="(record) => record.verifyAccountBizSn"
|
|
|
+ rowKeyName="verifyAccountBizSn"
|
|
|
:row-selection="{ columnWidth: 40 }"
|
|
|
@rowSelection="rowSelectionFun"
|
|
|
:columns="columns"
|
|
@@ -224,12 +223,6 @@ export default {
|
|
|
},
|
|
|
selNums () {
|
|
|
return this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length || 0
|
|
|
- },
|
|
|
- totalAmount () {
|
|
|
- const amount = this.rowSelectionInfo && this.rowSelectionInfo.selectedRows.reduce((total, item) => {
|
|
|
- return total + item.debitAmount || 0 - item.creditorAmount || 0
|
|
|
- }, 0)
|
|
|
- return amount
|
|
|
}
|
|
|
},
|
|
|
methods: {
|