|
@@ -1876,18 +1876,25 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
tarechange(e) {
|
|
tarechange(e) {
|
|
- if (
|
|
|
|
- this.deptBudgetList.grossWeight &&
|
|
|
|
- this.deptBudgetList.tare &&
|
|
|
|
- (this.deptBudgetList.deductionWeight ||
|
|
|
|
- this.deptBudgetList.deductionWeight == 0)
|
|
|
|
- ) {
|
|
|
|
- this.deptBudgetList.netWeight = Number(
|
|
|
|
- this.deptBudgetList.grossWeight -
|
|
|
|
- this.deptBudgetList.tare -
|
|
|
|
- this.deptBudgetList.deductionWeight
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
+ debugger
|
|
|
|
+ console.log(this.deptBudgetList.tare)
|
|
|
|
+ console.log(Number(this.deptBudgetList.tare))
|
|
|
|
+ if(this.deptBudgetList.grossWeight){
|
|
|
|
+ this.deptBudgetList.netWeight = Number(this.deptBudgetList.grossWeight) - Number(this.deptBudgetList.tare) - Number(this.deptBudgetList.deductionWeight)
|
|
}
|
|
}
|
|
|
|
+ this.deptBudgetList.netWeight.toFixed(2)
|
|
|
|
+ // if (
|
|
|
|
+ // this.deptBudgetList.grossWeight &&
|
|
|
|
+ // (this.deptBudgetList.tare || !this.deptBudgetList.tare) &&
|
|
|
|
+ // (this.deptBudgetList.deductionWeight ||
|
|
|
|
+ // this.deptBudgetList.deductionWeight == 0)
|
|
|
|
+ // ) {
|
|
|
|
+ // this.deptBudgetList.netWeight = Number(
|
|
|
|
+ // this.deptBudgetList.grossWeight -
|
|
|
|
+ // this.deptBudgetList.tare -
|
|
|
|
+ // this.deptBudgetList.deductionWeight
|
|
|
|
+ // ).toFixed(2)
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
grossWeightchange(e) {
|
|
grossWeightchange(e) {
|
|
this.grossWeight = this.deptBudgetList.grossWeight
|
|
this.grossWeight = this.deptBudgetList.grossWeight
|
|
@@ -2090,20 +2097,20 @@
|
|
return false
|
|
return false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- tarechange(e) {
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.grossWeight &&
|
|
|
|
- this.deptBudgetList.tare &&
|
|
|
|
- (this.deptBudgetList.deductionWeight ||
|
|
|
|
- this.deptBudgetList.deductionWeight == 0)
|
|
|
|
- ) {
|
|
|
|
- this.deptBudgetList.netWeight = Number(
|
|
|
|
- this.deptBudgetList.grossWeight -
|
|
|
|
- this.deptBudgetList.tare -
|
|
|
|
- this.deptBudgetList.deductionWeight
|
|
|
|
- ).toFixed(2)
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // tarechange(e) {
|
|
|
|
+ // if (
|
|
|
|
+ // this.deptBudgetList.grossWeight &&
|
|
|
|
+ // this.deptBudgetList.tare &&
|
|
|
|
+ // (this.deptBudgetList.deductionWeight ||
|
|
|
|
+ // this.deptBudgetList.deductionWeight == 0)
|
|
|
|
+ // ) {
|
|
|
|
+ // this.deptBudgetList.netWeight = Number(
|
|
|
|
+ // this.deptBudgetList.grossWeight -
|
|
|
|
+ // this.deptBudgetList.tare -
|
|
|
|
+ // this.deptBudgetList.deductionWeight
|
|
|
|
+ // ).toFixed(2)
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
grossWeightchange(e) {
|
|
grossWeightchange(e) {
|
|
this.grossWeight = this.deptBudgetList.grossWeight
|
|
this.grossWeight = this.deptBudgetList.grossWeight
|
|
if (
|
|
if (
|