|
@ -478,10 +478,10 @@ |
|
|
" |
|
|
" |
|
|
> |
|
|
> |
|
|
<el-form-item label="检验值" required> |
|
|
<el-form-item label="检验值" required> |
|
|
<el-input |
|
|
<el-input-number |
|
|
v-model="cur.inspectionValue" |
|
|
v-model="cur.inspectionValue" |
|
|
placeholder="请输入检验值" |
|
|
:min="0" |
|
|
type="number" |
|
|
@change="inspectionValueInput(item, cur)" |
|
|
@blur="inspectionValueInput(item, cur)" |
|
|
@blur="inspectionValueInput(item, cur)" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -1412,6 +1412,9 @@ const inspectionValueInput = (item, cur) => { |
|
|
i++ |
|
|
i++ |
|
|
) { |
|
|
) { |
|
|
item.isPass = true |
|
|
item.isPass = true |
|
|
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit = false |
|
|
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget = 10 |
|
|
|
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping = 10.1 |
|
|
// 如果上限值存在,下限值和目标值不存在 大于上限值显示红色图标 |
|
|
// 如果上限值存在,下限值和目标值不存在 大于上限值显示红色图标 |
|
|
if ( |
|
|
if ( |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
@ -1479,22 +1482,22 @@ const inspectionValueInput = (item, cur) => { |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i] |
|
|
.inspectionValue && |
|
|
.inspectionValue && |
|
|
(parseFloat(cur.inspectionValue) > |
|
|
(parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyCapping) || |
|
|
parseFloat(cur.inspectionValue) < |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget)) |
|
|
) { |
|
|
) { |
|
|
item.isPass = false |
|
|
item.isPass = false |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// 如果下限值和目标值存在,下限值不存在 大于上限并且小于目标值显示红色图标 |
|
|
// 如果下限值和目标值存在,上限值不存在 小于下限并且大于目标值显示红色图标 |
|
|
if ( |
|
|
if ( |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping && |
|
|
!item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit && |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget && |
|
|
(parseFloat(cur.inspectionValue) > |
|
|
(parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) > |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyTarget) || |
|
|
parseFloat(cur.inspectionValue) < |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList[i].inspectionValue) < |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit)) |
|
|
) { |
|
|
) { |
|
|
item.isPass = false |
|
|
item.isPass = false |
|
|