|
@@ -849,6 +849,9 @@ export default {
|
|
|
this.$notify({ title: '', message: '成功', type: 'success', duration: 2000 })
|
|
|
this.create.temp.maxweight = this.TMRNumberList.find(obj => obj.id === this.create.temp.tmrid2).maxstirfeed
|
|
|
this.create.temp.tclassname = this.TMRNumberList.find(obj => obj.id === this.create.temp.tmrid2).tclassname
|
|
|
+ this.create.temp.tmrvolume = this.TMRNumberList.find(obj => obj.id === this.create.temp.tmrid2).tmrvolume
|
|
|
+ this.create.temp.maxVolume = this.TMRNumberList.find(obj => obj.id === this.create.temp.tmrid2).maxVolume
|
|
|
+ this.create.temp.minVolume = this.TMRNumberList.find(obj => obj.id === this.create.temp.tmrid2).minVolume
|
|
|
this.tmrNumber.dialogFormVisible = false
|
|
|
this.getCreateList1()
|
|
|
}
|
|
@@ -1097,7 +1100,7 @@ export default {
|
|
|
}
|
|
|
console.log('sumweight==>', sumweight)
|
|
|
this.create.temp.sumweight = (sumweight).toFixed(2)
|
|
|
- if(parseFloat(this.create.temp.ftvolume) !== 0){
|
|
|
+ if(parseFloat(this.create.temp.ftvolume) !== 0 && parseFloat(this.create.temp.sumweight) !== 0){
|
|
|
this.create.temp.volume = (parseFloat(this.create.temp.sumweight) / parseFloat(this.create.temp.ftvolume)).toFixed(2)
|
|
|
}else{
|
|
|
this.create.temp.volume = 0
|
|
@@ -1106,6 +1109,7 @@ export default {
|
|
|
this.create.list2 = []
|
|
|
// this.create.temp.sort = 0
|
|
|
this.create.temp.sumweight = 0
|
|
|
+ this.create.temp.volume = 0
|
|
|
}
|
|
|
})
|
|
|
},
|