2213980799@qq.com před 1 rokem
rodič
revize
e9f011b844

+ 4 - 0
src/views/bpm/handleTask/components/saleOrder/customerReturnGoods/customerReturnOrder.vue

@@ -988,6 +988,7 @@
             }
           }
           let totalCount = 0;
+          console.log(1)
           this.detailList = this.form.detailList.map((item) => {
             item['outType'] = item.outboundType;
             item['categoryName'] = item.productName;
@@ -1001,9 +1002,12 @@
             totalCount += item.measurementCount;
             return item;
           });
+          console.log(this.detailList)
+
           this.form.totalCount = totalCount;
           this.form['warehouseId'] = this.detailList[0].warehouseId;
           this.form['warehouseName'] = this.detailList[0].warehouseName;
+          console.log(3)
 
           // this.form.detailList.forEach((item) => {
           //   if (item.outboundType == 1) {

+ 11 - 0
src/views/bpm/stockManagement/storage.vue

@@ -1021,6 +1021,15 @@
           );
         },
         deep: true
+      },
+      detailList: {
+        handler(newVal) {
+          if(newVal.length){
+           this.initFormData()
+          }
+      
+        },
+        deep: true
       }
     },
     async created() {
@@ -1113,6 +1122,8 @@
       },
       // 初始化信息
       async initFormData() {
+        console.log(4)
+
         this.formData.type = 1;
         this.formData.bizType = this.bizType;
         this.formData.extInfo.assetType = Array.from(