| | |
| | | v-model="scope.row.currentPaymentAmount" |
| | | :disabled="!scope.row.editType" |
| | | :precision="2" |
| | | :max="scope.row.maxAmountTTotal + maxAmount" |
| | | placeholder="请输入" |
| | | clearable /> |
| | | </template> |
| | |
| | | } |
| | | }); |
| | | }; |
| | | const maxAmount = ref(0); |
| | | const maxAmountTTotal = ref(0); |
| | | // 展开行 |
| | | const expandChange = (row, expandedRows) => { |
| | | if (expandedRows.length > 0) { |
| | |
| | | expandedRowKeys.value = []; |
| | | try { |
| | | childrenLoading.value = true; |
| | | maxAmount.value = row.unPaymentAmountTotal; |
| | | registrationListPageGetById({ id: row.id }).then(res => { |
| | | childrenLoading.value = false; |
| | | const index = tableData.value.findIndex(item => item.id === row.id); |
| | | if (index > -1) { |
| | | expandData.value = res; |
| | | } |
| | | expandData.value = res.map(item => ({ |
| | | ...item, |
| | | maxAmountTTotal: item.currentPaymentAmount, |
| | | })); |
| | | expandedRowKeys.value.push(row.id); |
| | | }); |
| | | } catch (error) { |