ソースを参照

解决死循环

ysy 1 年間 前
コミット
d9f0423acd
1 ファイル変更3 行追加2 行削除
  1. 3 2
      src/views/bpm/stockManagement/storage.vue

+ 3 - 2
src/views/bpm/stockManagement/storage.vue

@@ -1652,7 +1652,8 @@
             return;
           }
           // 处理包装数据
-          this.packingList = this.packingList.map((packingItem) => {
+          let _packingList  = []
+           _packingList = this.packingList.map((packingItem) => {
             return {
               ...packingItem,
               workOrderId: this.detailProductList[0]?.workOrderId,
@@ -1670,7 +1671,7 @@
           this.productList = this.productList.map((productItem) => {
             return {
               ...productItem,
-              outInDetailRecordRequestList: this.packingList.filter(
+              outInDetailRecordRequestList: _packingList.filter(
                 (item) => item.parentIndex === productItem.index
               )
             };