合同清单明细中,第二行数据填写完整后,点击提交后提示未填写完整

master
Harry Yang 2023-01-05 20:42:29 +08:00
parent 91dc9c8bd1
commit f41c8ecf9c
1 changed files with 2 additions and 2 deletions

View File

@ -834,7 +834,8 @@
const first = purchaseDetails.shift();
// 再处理剩余的子元素
purchaseDetails = purchaseDetails.map(purchase => ({
...purchase, rowKey: rowKey++, parent, newRow: true
...purchase, rowKey: rowKey++, parent, newRow: true,
amountCurrent: parent.amountCurrent // 复制父级 amountCurrent
}))
// 合并第一行到父级
Object.assign(parent, first)
@ -845,7 +846,6 @@
}
ret.push(parent)
}
console.log(ret)
return ret
}