食材入库字段修改
This commit is contained in:
1 parent
0a7cfe3df0
commit
5a1850f9a4
1 file changed
+3
-3
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user