合同清单明细中,第二行数据填写完整后,点击提交后提示未填写完整
parent
91dc9c8bd1
commit
f41c8ecf9c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue