From 4d41577c2d01648ba3e9919fbd540380279ca85f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 19 四月 2024 11:23:05 +0800
Subject: [PATCH] 毛重,净重如果是0强制修改为空的逻辑处理

---
 src/views/overview/AddOverviewDialog.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue
index df3c3a5..4e9bc6d 100644
--- a/src/views/overview/AddOverviewDialog.vue
+++ b/src/views/overview/AddOverviewDialog.vue
@@ -1044,6 +1044,8 @@
                     productId: item.productId,
                     auxiliaryUnit:item.auxiliaryUnit,
                     auxiliaryAmount:item.auxiliaryAmount,
+                    totalNetWeight:item.totalNetWeight,
+                    totalGrossWeight:item.totalGrossWeight,
                   });
                 });
                 params.details = arr;
@@ -1057,6 +1059,8 @@
                       productId: item.productId,
                       auxiliaryUnit:item.auxiliaryUnit,
                       auxiliaryAmount:item.auxiliaryAmount,
+                      totalNetWeight:item.totalNetWeight,
+                     totalGrossWeight:item.totalGrossWeight,
                     });
                   } else {
                     arr.push({
@@ -1066,6 +1070,8 @@
                       productId: item.productId,
                       auxiliaryUnit:item.auxiliaryUnit,
                       auxiliaryAmount:item.auxiliaryAmount,
+                      totalNetWeight:item.totalNetWeight,
+                     totalGrossWeight:item.totalGrossWeight,
                     });
                   }
                 });
@@ -1085,6 +1091,8 @@
                     productId: item.productId,
                     auxiliaryUnit:item.auxiliaryUnit,
                     auxiliaryAmount:item.auxiliaryAmount,
+                    totalNetWeight:item.totalNetWeight,
+                    totalGrossWeight:item.totalGrossWeight,
                   });
                   // if(item.fromLocationId.value){
                   //   arr.push({
@@ -1479,9 +1487,9 @@
             auxiliaryAmount:res.amount&&adjunctAmount?Number(adjunctAmount)*Number(res.amount):0,
             auxiliaryAmountInfo:adjunctAmount?Number(adjunctAmount):0,
             inputFloatAuxiliaryAmount:isValue,
-            grossWeight:res.product.grossWeight,
+            grossWeight:res.product.grossWeight==0?'':res.product.grossWeight,
             totalGrossWeight:res.totalGrossWeight,
-            netWeight:res.product.netWeight, 
+            netWeight:res.product.netWeight==0?'':res.product.netWeight, 
             totalNetWeight:res.totalNetWeight,  
           };
         }else{
@@ -1494,9 +1502,9 @@
             auxiliaryAmount:adjunctAmount?Number(adjunctAmount)*1:0,
             auxiliaryAmountInfo:adjunctAmount?Number(adjunctAmount):0,
             inputFloatAuxiliaryAmount:isValue,
-            grossWeight:res.grossWeight,
+            grossWeight:res.grossWeight==0?'':res.grossWeight,
             totalGrossWeight:res.grossWeight?Number(res.grossWeight)*1:'',
-            netWeight:res.netWeight, 
+            netWeight:res.netWeight==0?'':res.netWeight, 
             totalNetWeight:res.netWeight?Number(res.netWeight)*1:'', 
           };
         }
@@ -1540,7 +1548,6 @@
       this.countId = row.countId;
       this.tableData.map((item) => {
         if (item.id == row.id) {
-          debugger
           item[prop] = val;
           let auxiliaryAmountObject=this.getAuxiligyAmount(item.moreUnit,item.moreUnitList)
           if(prop=='amount'){

--
Gitblit v1.8.0