From 5a1850f9a442809bb839287c3488865678087aa5 Mon Sep 17 00:00:00 2001 From: weiwei Date: Fri, 23 May 2025 10:20:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=9F=E6=9D=90=E5=85=A5=E5=BA=93=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/canteen/canteenInventoryRecords/form.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/canteen/canteenInventoryRecords/form.vue b/src/views/canteen/canteenInventoryRecords/form.vue index d16209d..45ee28b 100644 --- a/src/views/canteen/canteenInventoryRecords/form.vue +++ b/src/views/canteen/canteenInventoryRecords/form.vue @@ -254,11 +254,11 @@ const tableFormItems = () => // 提交数据 成功返回 true 失败返回 false const submitData = async () => { - const canteenInventoryRecordsItemDTOS = tableFormItems() + const items = tableFormItems() const _pa = { ...baseForm, - totalAmount: canteenInventoryRecordsItemDTOS.reduce((acc: number, cur: any) => acc + Number(cur.totalAmount), 0), - canteenInventoryRecordsItemDTOS, + totalAmount: items.reduce((acc: number, cur: any) => acc + Number(cur.totalAmount), 0), + items, } console.log("提交的数据:", _pa)