Commit 1612a3c6 by chenwq

fix: 移除重复的purchaseOrderGoodsId并正确设置到deliveryDetailList中

1 parent 4a4745f2
...@@ -316,7 +316,6 @@ export default { ...@@ -316,7 +316,6 @@ export default {
orderCode: data.orderCode, orderCode: data.orderCode,
orderDeliveryId: data.orderDeliveryId, orderDeliveryId: data.orderDeliveryId,
upgradeGoodsId: data.upgradeGoodsId, upgradeGoodsId: data.upgradeGoodsId,
purchaseOrderGoodsId: data.purchaseOrderGoodsId,
goodsWarehousingList: [ goodsWarehousingList: [
{ {
increaseStockNum: '', increaseStockNum: '',
...@@ -382,6 +381,7 @@ export default { ...@@ -382,6 +381,7 @@ export default {
for (let i = 0; i < params.deliveryDetailList.length; i++) { for (let i = 0; i < params.deliveryDetailList.length; i++) {
item = params.deliveryDetailList[i] item = params.deliveryDetailList[i]
item.id = this.detailInfo.id item.id = this.detailInfo.id
item.purchaseOrderGoodsId = this.detailInfo.purchaseOrderGoodsId
for (let j = 0; j < item.goodsWarehousingList.length; j++) { for (let j = 0; j < item.goodsWarehousingList.length; j++) {
let subItem = item.goodsWarehousingList[j] let subItem = item.goodsWarehousingList[j]
if (this.manageMode) { if (this.manageMode) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!