|
|
@@ -999,10 +999,10 @@
|
|
|
this.pageSize * (this.pickingPageNum > 0 ? this.pickingPageNum : 1)
|
|
|
);
|
|
|
this.showPackingList.forEach((obj) => {
|
|
|
- obj.workOrderId = this.detailProductList[0].workOrderId;
|
|
|
- obj.taskId = this.detailProductList[0].taskId;
|
|
|
- obj.outsourceBatchNo = this.detailProductList[0].batchNo;
|
|
|
- obj.outsourceCode = this.detailProductList[0].sourceCode;
|
|
|
+ obj.workOrderId = this.detailProductList[0]?.workOrderId;
|
|
|
+ obj.taskId = this.detailProductList[0]?.taskId;
|
|
|
+ obj.outsourceBatchNo = this.detailProductList[0]?.batchNo;
|
|
|
+ obj.outsourceCode = this.detailProductList[0]?.sourceCode;
|
|
|
});
|
|
|
this.pickingPageNum = Math.ceil(
|
|
|
this.showPackingList.length / this.pageSize
|
|
|
@@ -1653,10 +1653,10 @@
|
|
|
this.packingList = this.packingList.map((packingItem) => {
|
|
|
return {
|
|
|
...packingItem,
|
|
|
- workOrderId: this.detailProductList[0].workOrderId,
|
|
|
- taskId: this.detailProductList[0].taskId,
|
|
|
- outsourceBatchNo: this.detailProductList[0].batchNo,
|
|
|
- outsourceCode: this.detailProductList[0].sourceCode,
|
|
|
+ workOrderId: this.detailProductList[0]?.workOrderId,
|
|
|
+ taskId: this.detailProductList[0]?.taskId,
|
|
|
+ outsourceBatchNo: this.detailProductList[0]?.batchNo,
|
|
|
+ outsourceCode: this.detailProductList[0]?.sourceCode,
|
|
|
materialDetailList: this.materialList.filter(
|
|
|
(item) => item.parentIndex === packingItem.index
|
|
|
)
|