|
|
|
@ -542,7 +542,7 @@ |
|
|
|
min-width="80" |
|
|
|
label="实测值"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input :ref="`textValue${scope.$index}`" v-if="scope.row.valueTypeDb === 'N'" v-model="scope.row.numberValue" @keyup.enter.native="focusNextInput(scope.$index, 'textValue')" type="number" style="height: 11px; width: 98%"></el-input> |
|
|
|
<el-input :ref="`textValue${scope.$index}`" v-if="scope.row.valueTypeDb === 'N'" v-model="scope.row.numberValue" @keyup.enter.native="focusNextInput(scope.$index, 'textValue')" type="number" @change="updateItemResult(scope.row)" style="height: 11px; width: 98%"></el-input> |
|
|
|
<el-input :ref="`textValue${scope.$index}`" v-else v-model="scope.row.textValue" @keyup.enter.native="focusNextInput(scope.$index, 'textValue')" style="height: 11px; width: 98%"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -4140,6 +4140,34 @@ export default { |
|
|
|
this.$refs[aaa].focus() |
|
|
|
}) |
|
|
|
}, |
|
|
|
updateItemResult(row){ |
|
|
|
if (row.maxValue == null && row.minValue == null&&row.defaultValue==null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (row.maxValue == null && row.minValue == null) { |
|
|
|
if (row.numberValue!=row.defaultValue){ |
|
|
|
row.itemResult = 'N' |
|
|
|
} |
|
|
|
}else if (row.maxValue != null && row.minValue != null){ |
|
|
|
if (row.numberValue>row.maxValue ||row.numberValue<row.minValue){ |
|
|
|
row.itemResult = 'N' |
|
|
|
}else { |
|
|
|
row.itemResult = 'Y' |
|
|
|
} |
|
|
|
}else if(row.maxValue != null){ |
|
|
|
if ( row.numberValue>row.maxValue) { |
|
|
|
row.itemResult = 'N' |
|
|
|
}else { |
|
|
|
row.itemResult = 'Y' |
|
|
|
} |
|
|
|
}else if(row.minValue != null){ |
|
|
|
if ( row.numberValue<row.minValue) { |
|
|
|
row.itemResult = 'N' |
|
|
|
}else { |
|
|
|
row.itemResult = 'Y' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//删除 |
|
|
|
handleDeleteBtn (td) { |
|
|
|
|