|
|
@ -18,7 +18,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="物料编码" prop="itemCode"> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input v-model="data.itemCode" disabled placeholder="请选择物料编码" /> |
|
|
|
<el-input v-model="data.itemName" disabled placeholder="请选择物料编码" /> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
@ -32,7 +32,7 @@ |
|
|
|
ItemBasicApi.getItembasicPage, |
|
|
|
null, |
|
|
|
false, |
|
|
|
'form', |
|
|
|
'main', |
|
|
|
null |
|
|
|
) |
|
|
|
" |
|
|
@ -49,7 +49,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="检验类型编码" prop="testTypeCode"> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input v-model="data.testTypeCode" disabled placeholder="请选择检验类型编码" /> |
|
|
|
<el-input v-model="data.testTypeName" disabled placeholder="请选择检验类型编码" /> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
@ -63,7 +63,7 @@ |
|
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
|
null, |
|
|
|
false, |
|
|
|
'form', |
|
|
|
'main', |
|
|
|
null |
|
|
|
) |
|
|
|
" |
|
|
@ -76,7 +76,7 @@ |
|
|
|
<el-form-item label="检验模板编码" prop="programmeTemplateCode"> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="data.programmeTemplateCode" |
|
|
|
v-model="data.programmeTemplateName" |
|
|
|
disabled |
|
|
|
placeholder="请选择检验模板编码" |
|
|
|
/> |
|
|
@ -93,7 +93,7 @@ |
|
|
|
InspectionTemplateApi.inspectionTemplatePage, |
|
|
|
null, |
|
|
|
false, |
|
|
|
'form', |
|
|
|
'main', |
|
|
|
null |
|
|
|
) |
|
|
|
" |
|
|
@ -238,122 +238,122 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label="检验方法编码" |
|
|
|
prop="inspectionCharacteristicsBaseVO.inspectionMethodCode" |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.inspectionMethodCode" |
|
|
|
disabled |
|
|
|
placeholder="请选择检验方法编码" |
|
|
|
/> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
|
style="width: 40px" |
|
|
|
@click=" |
|
|
|
opensearchTable( |
|
|
|
'inspectionMethodCode', |
|
|
|
null, |
|
|
|
'检验方法', |
|
|
|
InspectionMethod.allSchemas, |
|
|
|
InspectionMethodApi.getInspectionMethodPage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
null, |
|
|
|
item |
|
|
|
) |
|
|
|
" |
|
|
|
><Icon icon="ep:search" |
|
|
|
/></el-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label="采样过程编码" |
|
|
|
prop="inspectionCharacteristicsBaseVO.dynamicUpdateCode" |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.dynamicUpdateCode" |
|
|
|
disabled |
|
|
|
placeholder="请选择采样过程编码" |
|
|
|
/> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
|
style="width: 40px" |
|
|
|
@click=" |
|
|
|
opensearchTable( |
|
|
|
'dynamicUpdateCode', |
|
|
|
null, |
|
|
|
'采样过程编码', |
|
|
|
SamplingProcess.allSchemas, |
|
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
null, |
|
|
|
item |
|
|
|
) |
|
|
|
" |
|
|
|
><Icon icon="ep:search" |
|
|
|
/></el-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label="动态修改规则编码" |
|
|
|
prop="inspectionCharacteristicsBaseVO.inspectionMethod" |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.inspectionMethod" |
|
|
|
disabled |
|
|
|
placeholder="请选择动态修改规则编码" |
|
|
|
/> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
|
style="width: 40px" |
|
|
|
@click=" |
|
|
|
opensearchTable( |
|
|
|
'inspectionMethod', |
|
|
|
null, |
|
|
|
'动态修改规则编码', |
|
|
|
DynamicRule.allSchemas, |
|
|
|
DynamicRuleApi.getDynamicRulePage, |
|
|
|
[ |
|
|
|
<el-form-item |
|
|
|
label="检验方法" |
|
|
|
prop="inspectionCharacteristicsBaseVO.inspectionMethodCode" |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.inspectionMethodName" |
|
|
|
disabled |
|
|
|
placeholder="请选择检验方法" |
|
|
|
/> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
|
style="width: 40px" |
|
|
|
@click=" |
|
|
|
opensearchTable( |
|
|
|
'inspectionMethodCode', |
|
|
|
null, |
|
|
|
'检验方法', |
|
|
|
InspectionMethod.allSchemas, |
|
|
|
InspectionMethodApi.getInspectionMethodPage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
null, |
|
|
|
item |
|
|
|
) |
|
|
|
" |
|
|
|
><Icon icon="ep:search" |
|
|
|
/></el-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
false, |
|
|
|
'features', |
|
|
|
item |
|
|
|
) |
|
|
|
" |
|
|
|
><Icon icon="ep:search" |
|
|
|
/></el-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label="采样过程编码" |
|
|
|
prop="inspectionCharacteristicsBaseVO.inspectionMethod" |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.inspectionName" |
|
|
|
disabled |
|
|
|
placeholder="请选择采样过程编码" |
|
|
|
/> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
|
style="width: 40px" |
|
|
|
@click=" |
|
|
|
opensearchTable( |
|
|
|
'inspectionMethod', |
|
|
|
null, |
|
|
|
'采样过程编码', |
|
|
|
SamplingProcess.allSchemas, |
|
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
'features', |
|
|
|
item |
|
|
|
) |
|
|
|
" |
|
|
|
><Icon icon="ep:search" |
|
|
|
/></el-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label="动态修改规则编码" |
|
|
|
prop="inspectionCharacteristicsBaseVO.dynamicUpdateCode" |
|
|
|
> |
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
<el-input |
|
|
|
v-model="item.inspectionCharacteristicsBaseVO.dynamicUpdateName" |
|
|
|
disabled |
|
|
|
placeholder="请选择动态修改规则编码" |
|
|
|
/> |
|
|
|
<el-button |
|
|
|
type="info" |
|
|
|
plain |
|
|
|
style="width: 40px" |
|
|
|
@click=" |
|
|
|
opensearchTable( |
|
|
|
'dynamicUpdateCode', |
|
|
|
null, |
|
|
|
'动态修改规则编码', |
|
|
|
DynamicRule.allSchemas, |
|
|
|
DynamicRuleApi.getDynamicRulePage, |
|
|
|
[ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
false, |
|
|
|
'features', |
|
|
|
item |
|
|
|
) |
|
|
|
" |
|
|
|
><Icon icon="ep:search" |
|
|
|
/></el-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label="是否允许修改特征值" |
|
|
@ -1011,14 +1011,24 @@ const opensearchTable = ( |
|
|
|
// 弹层确定返回所选数据 |
|
|
|
// val : 弹层列表row 数据 |
|
|
|
const searchTableSuccess = async (formField, searchField, val, type, row) => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} else { |
|
|
|
console.log(formField) |
|
|
|
console.log(val[0].code) |
|
|
|
console.log(type) |
|
|
|
if(type == 'features'){ |
|
|
|
row.inspectionCharacteristicsBaseVO[formField] = val[0].code |
|
|
|
if(formField == 'inspectionMethodCode'){ |
|
|
|
row.inspectionCharacteristicsBaseVO.inspectionMethodName = val[0].description |
|
|
|
}else if(formField == 'dynamicUpdateCode'){ |
|
|
|
row.inspectionCharacteristicsBaseVO.dynamicUpdateName = val[0].description |
|
|
|
}else if(formField == 'inspectionMethod'){ |
|
|
|
row.inspectionCharacteristicsBaseVO.inspectionName = val[0].description |
|
|
|
} |
|
|
|
} else if(type == 'main'){ |
|
|
|
data.value[formField] = val[0].code |
|
|
|
if(formField == 'itemCode'){ |
|
|
|
data.value.itemName = val[0].name |
|
|
|
}else if(formField == 'testTypeCode'){ |
|
|
|
data.value.testTypeName = val[0].description |
|
|
|
}else if(formField == 'programmeTemplateCode'){ |
|
|
|
data.value.programmeTemplateName = val[0].description |
|
|
|
} |
|
|
|
if (formField == 'programmeTemplateCode') { |
|
|
|
let list = await InspectionProcessPageApi.getListByTempleteCode(val[0].code) |
|
|
|
list.forEach((item, index) => { |
|
|
|