From a4203d1c0e24a69b3de3a4cf9f3cb1d727602224 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 15 一月 2026 17:24:58 +0800
Subject: [PATCH] 来票登记,开票登记一些计算问题(后端接口未完善)
---
src/views/procurementManagement/paymentEntry/index.vue | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/views/procurementManagement/paymentEntry/index.vue b/src/views/procurementManagement/paymentEntry/index.vue
index 0cab5c2..dcba772 100644
--- a/src/views/procurementManagement/paymentEntry/index.vue
+++ b/src/views/procurementManagement/paymentEntry/index.vue
@@ -75,6 +75,7 @@
v-model="scope.row.currentPaymentAmount"
:disabled="!scope.row.editType"
:precision="2"
+ :max="scope.row.maxAmountTTotal + maxAmount"
placeholder="璇疯緭鍏�"
clearable />
</template>
@@ -447,6 +448,8 @@
}
});
};
+ const maxAmount = ref(0);
+ const maxAmountTTotal = ref(0);
// 灞曞紑琛�
const expandChange = (row, expandedRows) => {
if (expandedRows.length > 0) {
@@ -454,12 +457,17 @@
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) {
--
Gitblit v1.9.3