From 9d787c0f551bbf0dd096ebcbb79b8b69caaaddd7 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 16 一月 2026 11:44:29 +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