huang_an 2 жил өмнө
parent
commit
afde306986

+ 2 - 0
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -877,6 +877,7 @@
             let obj = { ...this.formData, type: 2 };
 
             obj.extInfo.sourceBizNo = obj.sourceBizNo;
+            // obj.fromId=
             obj.fromType = obj.type;
             this.saveLoading = true;
             obj = { ...obj, ...this.wlParams };
@@ -923,6 +924,7 @@
         this.title = '产品';
         this.formData.sourceBizNo = row.orderNo;
         this.formData.sid = row.id;
+        this.formData.fromId = row.id;
         this.formData.clientName = row.contactName;
         this.formData.clientUser = row.linkName;
         this.formData.clientPhone = row.linkPhone;

+ 3 - 2
src/views/warehouseManagement/stockManagement/add.vue

@@ -1953,10 +1953,11 @@
                 item.outInDetailRecordAddPOList = list;
               }
             });
-
             let obj = { ...this.formData, type: 1 };
-            obj.outInDetailAddPOList = arr;
+            obj.sourceBizNo = this.formData.extInfo.documentSource;
 
+            obj.outInDetailAddPOList = arr;
+            console.log('=====>', obj);
             this.saveLoading = true;
             try {
               const res = await outin.save(obj);

+ 1 - 2
src/views/warehouseManagement/stockManagement/edit.vue

@@ -866,8 +866,8 @@
         const codes = outInDetailRecordVOList[0].code;
         const index = outInDetailRecordVOList[0].code.indexOf('636');
         const result = parseInt(codes.substring(index + 3, index + 6));
-        console.log(result);
         const dataArray = [];
+        console.log('家变', row);
         for (let i = 0; i < packingCount; i++) {
           const newData = { ...row };
           if (outInDetailRecordVOList.length != packingCount) {
@@ -885,7 +885,6 @@
           }
           dataArray.push(newData);
         }
-
         for (let j = 0; j < dataArray.length; j++) {
           dataArray[j].code =
             dataArray[j].categoryCode + dataArray[j].batchNo + 0 + (result + j);