zxz hace 2 años
padre
commit
113bd86430
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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
                 }
             }