Commit 9e675676e17aed862a4475e7fd6485c6e9336cec

Authored by 史婷婷
1 parent 794cc0e7

feat: 规格变更后ID:afterId 将原来的物料行Id值赋给afterId,自己新增的数据不需要

Showing 1 changed file with 1 additions and 1 deletions
@@ -303,7 +303,7 @@ export default { @@ -303,7 +303,7 @@ export default {
303 delete next.id 303 delete next.id
304 delete next.status 304 delete next.status
305 this.form = next 305 this.form = next
306 - const lines = Array.isArray(item.purchaseOrderLineList) ? item.purchaseOrderLineList.map(x => ({ ...x, purchaseOrderId: x.id, id: '' })) : [] 306 + const lines = Array.isArray(item.purchaseOrderLineList) ? item.purchaseOrderLineList.map(x => ({ ...x, purchaseOrderId: x.id, afterId: x.id, id: '' })) : []
307 this.initPurchaseOrderLineList = lines 307 this.initPurchaseOrderLineList = lines
308 const sum = lines.reduce((acc, it) => { 308 const sum = lines.reduce((acc, it) => {
309 const v = Number(it && it.quantity) 309 const v = Number(it && it.quantity)