|
@@ -48,6 +48,12 @@
|
|
|
<span v-if="scope.row.NoEdit">{{ scope.row.tname }}</span>
|
|
|
<el-input v-if="scope.row.Edit" v-model="scope.row.tname" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" style="width:95%;padding:10px 0;" maxlength="32" />
|
|
|
</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="容重(kg/m³)" min-width="110px" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.NoEdit">{{ scope.row.volume }}</span>
|
|
|
+ <el-input v-if="scope.row.Edit" v-model.trim="scope.row.volume" type="number" style="width:98%;padding:10px 0;" />
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="车辆颜色" min-width="70px" align="center">
|
|
|
<template slot-scope="scope">
|
|
@@ -263,7 +269,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
}
|
|
|
- this.table.list.unshift({ 'myId': (new Date()).valueOf(), 'Edit': true, 'NoEdit': false, 'isCreate': true, 'isUpdate': false, 'isUpdateSave': false, 'enable': 1, 'eqcode': '', 'tname': '', 'datacaptureno': '', 'tclassid': '', 'maxstirfeed': '', 'tcolor': '#ccc', 'autosecond': '0', 'imei': '' })
|
|
|
+ this.table.list.unshift({ 'myId': (new Date()).valueOf(), 'Edit': true, 'NoEdit': false, 'isCreate': true, 'isUpdate': false, 'isUpdateSave': false, 'enable': 1, 'eqcode': '', 'tname': '', 'datacaptureno': '', 'tclassid': '', 'maxstirfeed': '', 'tcolor': '#ccc', 'autosecond': '0', 'imei': '','volume':'' })
|
|
|
},
|
|
|
// TMR设备类型
|
|
|
changeType(item) {
|
|
@@ -303,7 +309,10 @@ export default {
|
|
|
this.table.temp.autosecond = row.autosecond
|
|
|
this.table.temp.autosecondname = this.table.temp.autosecondname
|
|
|
this.table.temp.imei = row.imei
|
|
|
-
|
|
|
+ if(this.table.temp.volume == ''){
|
|
|
+ this.table.temp.volume = 0
|
|
|
+ }
|
|
|
+ this.table.temp.volume = parseFloat(row.volume)
|
|
|
// 检验用户名称/角色是否为空
|
|
|
if (this.table.temp.eqcode == '' && this.table.temp.tname == '' && this.table.temp.datacaptureno == '' && this.table.temp.tclassid == '' && this.table.temp.maxstirfeed == '') {
|
|
|
this.$message({ type: 'error', message: 'TMR设备编号/TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空', duration: 2000 })
|
|
@@ -440,7 +449,10 @@ export default {
|
|
|
this.table.temp.autozone = row.autozone
|
|
|
this.table.temp.autosecond = row.autosecond
|
|
|
this.table.temp.autosecondname = this.table.temp.autosecondname
|
|
|
-
|
|
|
+ if(this.table.temp.volume == ''){
|
|
|
+ this.table.temp.volume = 0
|
|
|
+ }
|
|
|
+ this.table.temp.volume = parseFloat(row.volume)
|
|
|
// 检验用户名称/角色是否为空
|
|
|
if (this.table.temp.eqcode == '' && this.table.temp.tname == '' && this.table.temp.datacaptureno == '' && this.table.temp.tclassid == '' && this.table.temp.maxstirfeed == '') {
|
|
|
this.$message({ type: 'error', message: 'TMR设备编号/TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空', duration: 2000 })
|