|
@@ -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){
|