From c6fcb12a5bb5db31e0edcfa817796db4dd6db46e Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 10 Oct 2025 14:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flow/components/payMx.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/flow/components/payMx.vue b/src/views/flow/components/payMx.vue index 1e36b6e..a7d6a01 100644 --- a/src/views/flow/components/payMx.vue +++ b/src/views/flow/components/payMx.vue @@ -577,7 +577,11 @@ import {getToken} from "@/utils/auth"; // 从明细中聚合主数据:合同ID串与金额合计 const contractIdStr = Array.from(new Set(wuzicaigou_items.map(i => i.contract_id).filter(Boolean))).join(',') - const amtTotal = wuzicaigou_items.reduce((sum, i) => sum + (Number(i.group_apply_money || i.apply_money) || 0), 0) + // 金额按每个区块的申请金额求和(同一支付内不重复累加明细) + const amtTotal = (this.payList || []).reduce((sum, p) => { + const form = this.fundlogFormMap[p.id] || {} + return sum + (Number(form.applyMoney) || 0) + }, 0) // 从合同列表聚合展示数据 const sumMoney = (contracts || []).reduce((sum, c) => sum + (Number(c?.money) || 0), 0)