From 234c3028d6ad30bcaa38d7d34e1cb50c34f5ced7 Mon Sep 17 00:00:00 2001 From: weizong song Date: Thu, 4 Jun 2026 15:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=AE=97=E5=A4=9A=E9=80=89=E4=B8=8D?= =?UTF-8?q?=E9=99=90=E5=90=8C=E4=B8=80=E7=88=B6=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/payment/CreatePayment.vue | 2 +- src/views/payment/IndirectPayment.vue | 4 ++-- src/views/payment/PaymentQuery.vue | 15 ++++----------- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/views/payment/CreatePayment.vue b/src/views/payment/CreatePayment.vue index 0fee76e..100179d 100644 --- a/src/views/payment/CreatePayment.vue +++ b/src/views/payment/CreatePayment.vue @@ -509,7 +509,7 @@ :on-remove="(file) => handleUploadRemove(file, element.id)" :before-upload="beforeUpload" multiple - :limit="10" + :limit="50" > diff --git a/src/views/payment/IndirectPayment.vue b/src/views/payment/IndirectPayment.vue index 1b8a4b4..3cbd165 100644 --- a/src/views/payment/IndirectPayment.vue +++ b/src/views/payment/IndirectPayment.vue @@ -279,7 +279,7 @@ :on-remove="(file) => handleFileRemove(field.key, file)" :before-upload="beforeUpload" multiple - :limit="10" + :limit="50" class="file-upload-component" > @@ -1054,7 +1054,7 @@ :on-remove="(file) => handlePaymentUploadRemove(file, element.id)" :before-upload="beforeUpload" multiple - :limit="10" + :limit="50" > diff --git a/src/views/payment/PaymentQuery.vue b/src/views/payment/PaymentQuery.vue index d765cab..3dfeadb 100644 --- a/src/views/payment/PaymentQuery.vue +++ b/src/views/payment/PaymentQuery.vue @@ -1583,6 +1583,7 @@ const rebuildConfirmAllocationsFromSelection = async (existingMap) => { const auths = await getDepartmentAuthorizations(node.id) if (!auths || auths.length === 0) { confirmSelectionError.value = '该预算来源未配置部门授权' + confirmSelectedBudgetIds.value = [...confirmLastValidBudgetIds.value] setConfirmCheckedIds(confirmLastValidBudgetIds.value) return } @@ -1615,19 +1616,12 @@ const rebuildConfirmAllocationsFromSelection = async (existingMap) => { return } - // 多预算:同父、唯一授权部门 - const parentId = selectedNodes[0].parent_id ?? null - const parentMismatch = selectedNodes.some((n) => (n.parent_id ?? null) !== parentId) - if (parentMismatch) { - confirmSelectionError.value = '多条预算来源必须同属一个直接父级' - setConfirmCheckedIds(confirmLastValidBudgetIds.value) - return - } const rows = [] for (const node of selectedNodes) { const auths = await getDepartmentAuthorizations(node.id) if (!auths || auths.length !== 1) { - confirmSelectionError.value = '多条预算来源时,每条预算必须且仅能授权给一个部门' + confirmSelectionError.value = '多预算时,每条预算必须且仅能授权给一个部门' + confirmSelectedBudgetIds.value = [...confirmLastValidBudgetIds.value] setConfirmCheckedIds(confirmLastValidBudgetIds.value) return } @@ -1825,6 +1819,7 @@ const onConfirmTreeCheckChange = async () => { if (mySeq !== rebuildSeq.value) return if (confirmSelectionError.value) { ElMessage.warning(confirmSelectionError.value) + confirmSelectedBudgetIds.value = [...beforeIds] setConfirmCheckedIds(beforeIds) // 回滚后不改右侧、不改 lastValid confirmSelectionError.value = '' @@ -2131,5 +2126,3 @@ onMounted(async () => { - -