zhongtianhaoyuan il y a 3 ans
Parent
commit
32ffb8a984

+ 1 - 1
src/views/warehouse/warehouseManagementGross.vue

@@ -1879,7 +1879,7 @@
         if(this.deptBudgetList.grossWeight){
           this.deptBudgetList.netWeight = Number(this.deptBudgetList.grossWeight) - Number(this.deptBudgetList.tare) - Number(this.deptBudgetList.deductionWeight)
         }
-          this.deptBudgetList.netWeight.toFixed(2)
+          this.deptBudgetList.netWeight = this.deptBudgetList.netWeight.toFixed(2)
         // if (
         //   this.deptBudgetList.grossWeight &&
         //   (this.deptBudgetList.tare || !this.deptBudgetList.tare) &&

+ 8 - 7
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -1483,14 +1483,15 @@
       },
       tarechange(e) {
         this.tare = this.dataList.tare
-        if(!this.dataList.deductionWeight){
-          this.dataList.deductionWeight = 0
-        }
-        if (this.dataList.grossWeight && this.dataList.tare) {
-          this.dataList.netWeight = Number(
-            this.dataList.grossWeight - this.dataList.tare - this.dataList.deductionWeight
-          ).toFixed(2)
+        if(this.dataList.grossWeight){
+            this.dataList.netWeight = Number(this.dataList.grossWeight) - Number(this.dataList.tare) - Number(this.dataList.deductionWeight)
         }
+        this.dataList.netWeight = this.dataList.netWeight.toFixed(2)
+        // if (this.dataList.grossWeight && this.dataList.tare) {
+        //   this.dataList.netWeight = Number(
+        //     this.dataList.grossWeight - this.dataList.tare - this.dataList.deductionWeight
+        //   ).toFixed(2)
+        // }
       },
       grossWeightchange(e) {
          if(!this.dataList.deductionWeight){