|
@ -819,7 +819,77 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
isShowField.value = 0 //设置isShowField == 0隐藏aql和检验水平字段 |
|
|
isShowField.value = 0 //设置isShowField == 0隐藏aql和检验水平字段 |
|
|
if (row) { |
|
|
if (row) { |
|
|
data.value = JSON.parse(JSON.stringify(row)) |
|
|
data.value = JSON.parse(JSON.stringify(row)) |
|
|
let list = [] |
|
|
// 如果点击复制进入 |
|
|
|
|
|
if(formType.value == 'create'){ |
|
|
|
|
|
data.value.id = '' |
|
|
|
|
|
data.value.code = '' |
|
|
|
|
|
data.value.itemCode = '' |
|
|
|
|
|
data.value.process= [] |
|
|
|
|
|
let list =[] |
|
|
|
|
|
if (row.content) { |
|
|
|
|
|
list = JSON.parse(row.content) |
|
|
|
|
|
} else { |
|
|
|
|
|
list = await InspectionProcessPageApi.getListByTempleteCode(row.programmeTemplateCode) |
|
|
|
|
|
} |
|
|
|
|
|
let arr = [] |
|
|
|
|
|
list.forEach((item, index) => { |
|
|
|
|
|
editableTabsValue.value = index + 1 |
|
|
|
|
|
item.name = index + 1 |
|
|
|
|
|
console.log(item.inspectionCharacteristicsBaseVO) |
|
|
|
|
|
|
|
|
|
|
|
let obj = { |
|
|
|
|
|
inspectionCode:item.inspectionCode, |
|
|
|
|
|
description:item.description, |
|
|
|
|
|
inspectionCharCode:item.inspectionCharCode, |
|
|
|
|
|
sequenceCode:item.sequenceCode, |
|
|
|
|
|
name : index + 1, |
|
|
|
|
|
inspectionCharacteristicsBaseVO:{ |
|
|
|
|
|
description:item.inspectionCharacteristicsBaseVO.description, |
|
|
|
|
|
featureType:item.inspectionCharacteristicsBaseVO.featureType, |
|
|
|
|
|
inspectionMethodCode:item.inspectionCharacteristicsBaseVO.inspectionMethodCode, |
|
|
|
|
|
inspectionMethodName:item.inspectionCharacteristicsBaseVO.inspectionMethodName, |
|
|
|
|
|
samplingProcessCode:item.inspectionCharacteristicsBaseVO.samplingProcessCode, |
|
|
|
|
|
|
|
|
|
|
|
isCanUpdate:item.inspectionCharacteristicsBaseVO.isCanUpdate, |
|
|
|
|
|
isDestructionInspection:item.inspectionCharacteristicsBaseVO.isDestructionInspection, |
|
|
|
|
|
quantifyCapping:item.inspectionCharacteristicsBaseVO.quantifyCapping, |
|
|
|
|
|
quantifyDecimal:item.inspectionCharacteristicsBaseVO.quantifyDecimal, |
|
|
|
|
|
quantifyIsCapping:item.inspectionCharacteristicsBaseVO.quantifyIsCapping, |
|
|
|
|
|
quantifyIsLowlimit:item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit, |
|
|
|
|
|
quantifyIsTarget:item.inspectionCharacteristicsBaseVO.quantifyIsTarget, |
|
|
|
|
|
quantifyLowlimit:item.inspectionCharacteristicsBaseVO.quantifyLowlimit, |
|
|
|
|
|
quantifyQuantifyCode:item.inspectionCharacteristicsBaseVO.quantifyQuantifyCode, |
|
|
|
|
|
quantifyQuantifyName:item.inspectionCharacteristicsBaseVO.quantifyQuantifyName, |
|
|
|
|
|
quantifyTarget:item.inspectionCharacteristicsBaseVO.quantifyTarget, |
|
|
|
|
|
quantifyUom:item.inspectionCharacteristicsBaseVO.quantifyUom, |
|
|
|
|
|
resultEntryMethod:item.inspectionCharacteristicsBaseVO.resultEntryMethod, |
|
|
|
|
|
samplingProcessCode:item.inspectionCharacteristicsBaseVO.samplingProcessCode, |
|
|
|
|
|
samplingProcessName:item.inspectionCharacteristicsBaseVO.samplingProcessName, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 编辑判断上限下限目标值是否必填 |
|
|
|
|
|
if (item.inspectionCharacteristicsBaseVO.quantifyIsCapping) { |
|
|
|
|
|
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true |
|
|
|
|
|
} else { |
|
|
|
|
|
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false |
|
|
|
|
|
} |
|
|
|
|
|
if (item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit) { |
|
|
|
|
|
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = true |
|
|
|
|
|
} else { |
|
|
|
|
|
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false |
|
|
|
|
|
} |
|
|
|
|
|
if (item.inspectionCharacteristicsBaseVO.quantifyIsTarget) { |
|
|
|
|
|
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = true |
|
|
|
|
|
} else { |
|
|
|
|
|
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false |
|
|
|
|
|
} |
|
|
|
|
|
arr.push(obj) |
|
|
|
|
|
}) |
|
|
|
|
|
data.value.process = arr |
|
|
|
|
|
console.log(111, data.value) |
|
|
|
|
|
}else{ |
|
|
|
|
|
let list = [] |
|
|
if (row.content) { |
|
|
if (row.content) { |
|
|
list = JSON.parse(row.content) |
|
|
list = JSON.parse(row.content) |
|
|
} else { |
|
|
} else { |
|
@ -858,6 +928,10 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
rules.value.aql[0].required = false |
|
|
rules.value.aql[0].required = false |
|
|
} |
|
|
} |
|
|
data.value.process = list |
|
|
data.value.process = list |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
data.value = { |
|
|
data.value = { |
|
|
code: '', |
|
|
code: '', |
|
@ -1323,7 +1397,8 @@ const changeIsTarget = (e, item) => { |
|
|
</style> |
|
|
</style> |
|
|
<style> |
|
|
<style> |
|
|
.el-tabs--left .el-tabs__header.is-left { |
|
|
.el-tabs--left .el-tabs__header.is-left { |
|
|
min-height: 700px !important; |
|
|
padding-bottom: 5000px; |
|
|
|
|
|
margin-bottom: -5000px; |
|
|
min-width: 150px !important; |
|
|
min-width: 150px !important; |
|
|
} |
|
|
} |
|
|
.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left { |
|
|
.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left { |
|
|