From fa3063b3b58a0869fc19cffbc18009cec774ae29 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Mon, 5 Jan 2026 16:03:55 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20Transaction=20Record=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2total=20amount=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Administrator/Transaction/TransactionTable.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component/Administrator/Transaction/TransactionTable.vue b/src/component/Administrator/Transaction/TransactionTable.vue index d8b09c93..fcc4b418 100644 --- a/src/component/Administrator/Transaction/TransactionTable.vue +++ b/src/component/Administrator/Transaction/TransactionTable.vue @@ -471,9 +471,9 @@ export default defineComponent({ filter.dataList = rv.content; filterData.total = rv.total; filter.tableLoading = false; - rv.content.forEach((item: any) => { - filterData.totalPayer += Number(item.payerTotal) - }) + filterData.totalPayer = rv.content.reduce((sum: number, item: any) => { + return sum + Number(item.payerTotal); + }, 0); // this.workspaceItem.position = this.singleTypeList[0].label }