zxz 2 years ago
parent
commit
113bd86430
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/warehousenew/dryWarehousing.vue

+ 3 - 1
src/views/warehousenew/dryWarehousing.vue

@@ -242,7 +242,9 @@ export default {
                 if (e == this.carList[i].id) {
                     this.weighingList.carNo = this.carList[i].carNo
                     this.weighingList.tare = this.carList[i].tare
-                    this.weighingList.netWeight = this.weighingList.grossWeight - this.weighingList.tare
+                    if (this.weighingList.grossWeight) {
+                        this.weighingList.netWeight = this.weighingList.grossWeight - this.weighingList.tare
+                    }
                     break
                 }
             }