|
@ -162,7 +162,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="是否可用" prop="available"> |
|
|
<el-form-item label="是否可用" prop="available"> |
|
|
<el-switch v-model="data.available" /> |
|
|
<el-switch v-model="data.available" active-value="TRUE" inactive-value='FALSE'/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
@ -606,7 +606,7 @@ const data = ref({ |
|
|
inspectionLevel:'', |
|
|
inspectionLevel:'', |
|
|
effectiveDate:'', |
|
|
effectiveDate:'', |
|
|
expirationDate:'', |
|
|
expirationDate:'', |
|
|
available: true, |
|
|
available: 'TRUE', |
|
|
process: [] |
|
|
process: [] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -642,24 +642,12 @@ const rules = ref({ |
|
|
'inspectionCharacteristicsBaseVO.inspectionMethod': [ |
|
|
'inspectionCharacteristicsBaseVO.inspectionMethod': [ |
|
|
{ required: true, message: '请选择动态修改规则编码', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择动态修改规则编码', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.isCanUpdate': [ |
|
|
|
|
|
{ required: true, message: '请选择是否允许修改特征值', trigger: ['blur', 'change'] } |
|
|
|
|
|
], |
|
|
|
|
|
'inspectionCharacteristicsBaseVO.isDestructionInspection': [ |
|
|
|
|
|
{ required: true, message: '请选择是否破坏性检验', trigger: ['blur', 'change'] } |
|
|
|
|
|
], |
|
|
|
|
|
'inspectionCharacteristicsBaseVO.resultEntryMethod': [ |
|
|
'inspectionCharacteristicsBaseVO.resultEntryMethod': [ |
|
|
{ required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.featureType': [ |
|
|
'inspectionCharacteristicsBaseVO.featureType': [ |
|
|
{ required: true, message: '请选择特征类型', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择特征类型', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.quantifyIsCapping': [ |
|
|
|
|
|
{ required: true, message: '请选择是否设定上限', trigger: ['blur', 'change'] } |
|
|
|
|
|
], |
|
|
|
|
|
'inspectionCharacteristicsBaseVO.quantifyIsLowlimit': [ |
|
|
|
|
|
{ required: true, message: '请选择是否设定下限', trigger: ['blur', 'change'] } |
|
|
|
|
|
], |
|
|
|
|
|
'inspectionCharacteristicsBaseVO.quantifyIsTarget': [ |
|
|
'inspectionCharacteristicsBaseVO.quantifyIsTarget': [ |
|
|
{ required: true, message: '请选择是否设定目标值', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择是否设定目标值', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
@ -695,8 +683,13 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
formType.value = type |
|
|
formType.value = type |
|
|
if (row) { |
|
|
if (row) { |
|
|
data.value = row |
|
|
data.value = row |
|
|
|
|
|
let list =[] |
|
|
|
|
|
if(row.content){ |
|
|
|
|
|
list = JSON.parse(row.content) |
|
|
|
|
|
}else{ |
|
|
|
|
|
list = await InspectionProcessPageApi.getListByTempleteCode(row.programmeTemplateCode) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let list = await InspectionProcessPageApi.getListByTempleteCode(row.code) |
|
|
|
|
|
list.forEach((item, index) => { |
|
|
list.forEach((item, index) => { |
|
|
editableTabsValue.value = index + 1 |
|
|
editableTabsValue.value = index + 1 |
|
|
item.name = index + 1 |
|
|
item.name = index + 1 |
|
@ -721,7 +714,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
} else { |
|
|
} else { |
|
|
data.value = { |
|
|
data.value = { |
|
|
code: '', |
|
|
code: '', |
|
|
description: '', |
|
|
itemCode: '', |
|
|
version: '', |
|
|
version: '', |
|
|
testTypeCode:'', |
|
|
testTypeCode:'', |
|
|
programmeTemplateCode:'', |
|
|
programmeTemplateCode:'', |
|
@ -730,7 +723,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
inspectionLevel:'', |
|
|
inspectionLevel:'', |
|
|
effectiveDate:'', |
|
|
effectiveDate:'', |
|
|
expirationDate:'', |
|
|
expirationDate:'', |
|
|
available: true, |
|
|
available: 'TRUE', |
|
|
process: [] |
|
|
process: [] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|