yijing 1 anno fa
parent
commit
bb398c9bae
1 ha cambiato i file con 5 aggiunte e 12 eliminazioni
  1. 5 12
      src/views/bpm/stockManagement/storage.vue

+ 5 - 12
src/views/bpm/stockManagement/storage.vue

@@ -1238,8 +1238,6 @@
         } else {
           this.$message.warning('未获取到物品类型!');
         }
-
-        console.log('this.detailList---------', this.detailList);
         if (this.sourceBizNo != null && this.sourceBizNo != '') {
           this.formData.sourceBizNo = this.sourceBizNo;
         } else {
@@ -1254,14 +1252,13 @@
 
         // this.formData.extInfo.supplierName = this.form.supplierName;
         // this.formData.extInfo.supplierId = this.form.supplierId;
-        console.log('this.saleProductList---------', this.saleProductList);
+        
         if (this.saleProductList?.length > 0) {
           // 物品列表
           let codeList = this.saleProductList.map((item) => {
             return item.productCode;
           });
           storageApi.getListByNameOrModeType({ codeList }).then(async (res) => {
-            console.log('res---------', res);
             if (res.length <= 0) {
               this.$message.warning('未获取到物品信息!');
               return;
@@ -1735,7 +1732,7 @@
       },
       // 赋值入库时间
       getNowFormatDate() {
-        if (this.bizType == '2') {
+        if (this.bizType == '2' || this.bizType == '6') {
           let time = '00:00:00';
           this.formData.storageTime = this.form.receiveDate + ' ' + time;
         } else {
@@ -1953,10 +1950,6 @@
               _workOrderId = this.detailProductList[0]?.workOrderId;
               _taskId = this.detailProductList[0]?.taskId;
             }
-            // workOrderId: this.detailProductList[0]?.workOrderId,
-            // taskId: this.detailProductList[0]?.taskId,
-            // taskId: this.detailList[0]?.taskId,
-            // workOrderId: this.detailList[0]?.workOrderId,
             return {
               ...packingItem,
               workOrderId: _workOrderId,
@@ -2347,7 +2340,6 @@
           };
         });
         this.productList = this.productList.concat(productList);
-        console.log('this.productList--------', this.productList);
       },
       // 物品保存验证表单(批量)
       validateForm() {
@@ -2798,7 +2790,7 @@
         let num = row.packingQuantity;
         let filterArr = [];
         // 处理单位为KG类的情况
-
+        console.log(packingBoolen, 'packingBoolenpackingBoolen');
         if (packingBoolen) {
           filterArr = row.packingSpecificationOption.filter((item) => {
             return (
@@ -2836,8 +2828,9 @@
               }
             }
           } else {
+            console.log(row, 'row123');
             // num = row.packingQuantity;
-            num = this.productList.length;
+            num = 1;
           }
         }
         for (let index = 0; index < num; index++) {