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 303 delete next.id
304 304 delete next.status
305 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 307 this.initPurchaseOrderLineList = lines
308 308 const sum = lines.reduce((acc, it) => {
309 309 const v = Number(it && it.quantity)
... ...