|
@ -18,7 +18,7 @@ |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="物料编码" prop="itemCode"> |
|
|
<el-form-item label="物料编码" prop="itemCode"> |
|
|
<div style="display: flex; width: 100%"> |
|
|
<div style="display: flex; width: 100%"> |
|
|
<el-input v-model="data.itemName" disabled placeholder="请选择物料编码" /> |
|
|
<el-input v-model="data.itemName" disabled placeholder="请选择物料" /> |
|
|
<el-button |
|
|
<el-button |
|
|
type="info" |
|
|
type="info" |
|
|
plain |
|
|
plain |
|
@ -81,12 +81,12 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="检验模板编码" prop="programmeTemplateCode"> |
|
|
<el-form-item label="检验模板" prop="programmeTemplateCode"> |
|
|
<div style="display: flex; width: 100%"> |
|
|
<div style="display: flex; width: 100%"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="data.programmeTemplateName" |
|
|
v-model="data.programmeTemplateName" |
|
|
disabled |
|
|
disabled |
|
|
placeholder="请选择检验模板编码" |
|
|
placeholder="请选择检验模板" |
|
|
/> |
|
|
/> |
|
|
<el-button |
|
|
<el-button |
|
|
type="info" |
|
|
type="info" |
|
@ -96,7 +96,7 @@ |
|
|
opensearchTable( |
|
|
opensearchTable( |
|
|
'programmeTemplateCode', |
|
|
'programmeTemplateCode', |
|
|
null, |
|
|
null, |
|
|
'检验模板编码', |
|
|
'检验模板', |
|
|
InspectionTemplateMain.allSchemas, |
|
|
InspectionTemplateMain.allSchemas, |
|
|
InspectionTemplateApi.inspectionTemplatePage, |
|
|
InspectionTemplateApi.inspectionTemplatePage, |
|
|
null, |
|
|
null, |
|
@ -110,6 +110,42 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item label="动态修改规则" prop="dynamicUpdateCode"> |
|
|
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="data.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, |
|
|
|
|
|
'main', |
|
|
|
|
|
data |
|
|
|
|
|
) |
|
|
|
|
|
" |
|
|
|
|
|
><Icon icon="ep:search" |
|
|
|
|
|
/></el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="拆分规则" prop="splitRule"> |
|
|
<el-form-item label="拆分规则" prop="splitRule"> |
|
|
<el-select v-model="data.splitRule" placeholder="请选择拆分规则"> |
|
|
<el-select v-model="data.splitRule" placeholder="请选择拆分规则"> |
|
@ -190,6 +226,42 @@ |
|
|
:label="item.description" |
|
|
:label="item.description" |
|
|
:name="item.name" |
|
|
:name="item.name" |
|
|
> |
|
|
> |
|
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
|
<el-form-item label="动态修改规则" prop="dynamicUpdateCode"> |
|
|
|
|
|
<div style="display: flex; width: 100%"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="data.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, |
|
|
|
|
|
'main', |
|
|
|
|
|
data |
|
|
|
|
|
) |
|
|
|
|
|
" |
|
|
|
|
|
><Icon icon="ep:search" |
|
|
|
|
|
/></el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> --> |
|
|
<div class="small-title">检验工序</div> |
|
|
<div class="small-title">检验工序</div> |
|
|
<el-form :model="item" label-width="auto" :rules="rules" ref="formProcessRef"> |
|
|
<el-form :model="item" label-width="auto" :rules="rules" ref="formProcessRef"> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
@ -286,14 +358,14 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="采样过程编码" |
|
|
label="采样过程" |
|
|
prop="inspectionCharacteristicsBaseVO.inspectionMethod" |
|
|
prop="inspectionCharacteristicsBaseVO.samplingProcessCode" |
|
|
> |
|
|
> |
|
|
<div style="display: flex; width: 100%"> |
|
|
<div style="display: flex; width: 100%"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="item.inspectionCharacteristicsBaseVO.inspectionName" |
|
|
v-model="item.inspectionCharacteristicsBaseVO.samplingProcessName" |
|
|
disabled |
|
|
disabled |
|
|
placeholder="请选择采样过程编码" |
|
|
placeholder="请选择采样过程" |
|
|
/> |
|
|
/> |
|
|
<el-button |
|
|
<el-button |
|
|
type="info" |
|
|
type="info" |
|
@ -301,9 +373,9 @@ |
|
|
style="width: 40px" |
|
|
style="width: 40px" |
|
|
@click=" |
|
|
@click=" |
|
|
opensearchTable( |
|
|
opensearchTable( |
|
|
'inspectionMethod', |
|
|
'samplingProcessCode', |
|
|
null, |
|
|
null, |
|
|
'采样过程编码', |
|
|
'采样过程', |
|
|
SamplingProcess.allSchemas, |
|
|
SamplingProcess.allSchemas, |
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
SamplingProcessApi.getSamplingProcessPage, |
|
|
[ |
|
|
[ |
|
@ -322,45 +394,6 @@ |
|
|
/></el-button> |
|
|
/></el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</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> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item |
|
|
<el-form-item |
|
@ -515,7 +548,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="选择集编码" |
|
|
label="选择集" |
|
|
prop="inspectionCharacteristicsBaseVO.quantifyQuantifyCode" |
|
|
prop="inspectionCharacteristicsBaseVO.quantifyQuantifyCode" |
|
|
v-if="item.inspectionCharacteristicsBaseVO.featureType == 1" |
|
|
v-if="item.inspectionCharacteristicsBaseVO.featureType == 1" |
|
|
> |
|
|
> |
|
@ -523,7 +556,7 @@ |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="item.inspectionCharacteristicsBaseVO.quantifyQuantifyCode" |
|
|
v-model="item.inspectionCharacteristicsBaseVO.quantifyQuantifyCode" |
|
|
disabled |
|
|
disabled |
|
|
placeholder="请选择选择集编码" |
|
|
placeholder="请选择选择集" |
|
|
/> |
|
|
/> |
|
|
<el-button |
|
|
<el-button |
|
|
type="info" |
|
|
type="info" |
|
@ -533,7 +566,7 @@ |
|
|
opensearchTable( |
|
|
opensearchTable( |
|
|
'quantifyQuantifyCode', |
|
|
'quantifyQuantifyCode', |
|
|
null, |
|
|
null, |
|
|
'选择集编码', |
|
|
'选择集', |
|
|
SelectedSet.allSchemas, |
|
|
SelectedSet.allSchemas, |
|
|
SelectedSetApi.getSelectedSetPage, |
|
|
SelectedSetApi.getSelectedSetPage, |
|
|
[ |
|
|
[ |
|
@ -662,6 +695,7 @@ const data = ref({ |
|
|
effectiveDate: '', |
|
|
effectiveDate: '', |
|
|
expirationDate: '', |
|
|
expirationDate: '', |
|
|
available: 'TRUE', |
|
|
available: 'TRUE', |
|
|
|
|
|
dynamicUpdateCode: '', |
|
|
process: [] |
|
|
process: [] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -676,11 +710,11 @@ if (props.basicFormWidth) { |
|
|
dialogWidth.value = props.isBusiness ? '60%' : '40%' |
|
|
dialogWidth.value = props.isBusiness ? '60%' : '40%' |
|
|
} |
|
|
} |
|
|
const rules = ref({ |
|
|
const rules = ref({ |
|
|
itemCode: [{ required: true, message: '请选择物料编码', trigger: 'blur' }], |
|
|
itemCode: [{ required: true, message: '请选择物料', trigger: 'blur' }], |
|
|
version: [{ required: true, message: '请填写版本', trigger: 'blur' }], |
|
|
version: [{ required: true, message: '请填写版本', trigger: 'blur' }], |
|
|
testTypeCode: [{ required: true, message: '请选择检验类型编码', trigger: ['blur', 'change'] }], |
|
|
testTypeCode: [{ required: true, message: '请选择检验类型', trigger: ['blur', 'change'] }], |
|
|
programmeTemplateCode: [ |
|
|
programmeTemplateCode: [ |
|
|
{ required: true, message: '请选择检验模板编码', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择检验模板', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
splitRule: [{ required: true, message: '请选择拆分规则', trigger: ['blur', 'change'] }], |
|
|
splitRule: [{ required: true, message: '请选择拆分规则', trigger: ['blur', 'change'] }], |
|
|
aql: [{ required: true, message: '请选择aql', trigger: ['blur', 'change'] }], |
|
|
aql: [{ required: true, message: '请选择aql', trigger: ['blur', 'change'] }], |
|
@ -691,13 +725,13 @@ const rules = ref({ |
|
|
{ required: true, message: '请填写描述', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请填写描述', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.inspectionMethodCode': [ |
|
|
'inspectionCharacteristicsBaseVO.inspectionMethodCode': [ |
|
|
{ required: true, message: '请选择检验方法编码', trigger: 'blur' } |
|
|
{ required: true, message: '请选择检验方法', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.dynamicUpdateCode': [ |
|
|
'inspectionCharacteristicsBaseVO.samplingProcessCode': [ |
|
|
{ required: true, message: '请选择采样过程编码', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择采样过程', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.inspectionMethod': [ |
|
|
dynamicUpdateCode: [ |
|
|
{ required: true, message: '请选择动态修改规则编码', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择动态修改规则', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.resultEntryMethod': [ |
|
|
'inspectionCharacteristicsBaseVO.resultEntryMethod': [ |
|
|
{ required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] } |
|
@ -721,7 +755,7 @@ const rules = ref({ |
|
|
{ required: true, message: '请输入小数位', trigger: 'blur' } |
|
|
{ required: true, message: '请输入小数位', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
'inspectionCharacteristicsBaseVO.quantifyQuantifyCode': [ |
|
|
'inspectionCharacteristicsBaseVO.quantifyQuantifyCode': [ |
|
|
{ required: true, message: '请输入选择集编码', trigger: 'blur' } |
|
|
{ required: true, message: '请输入选择集', trigger: 'blur' } |
|
|
] |
|
|
] |
|
|
}) |
|
|
}) |
|
|
/** 打开弹窗 */ |
|
|
/** 打开弹窗 */ |
|
@ -777,6 +811,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
effectiveDate: '', |
|
|
effectiveDate: '', |
|
|
expirationDate: '', |
|
|
expirationDate: '', |
|
|
available: 'TRUE', |
|
|
available: 'TRUE', |
|
|
|
|
|
dynamicUpdateCode:'', |
|
|
process: [] |
|
|
process: [] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -823,6 +858,7 @@ const buttonBaseClick1 = (val) => { |
|
|
name: newTabName, |
|
|
name: newTabName, |
|
|
inspectionCode: '', |
|
|
inspectionCode: '', |
|
|
sequenceCode: '', |
|
|
sequenceCode: '', |
|
|
|
|
|
dynamicUpdateCode:'', |
|
|
inspectionCharCode: '', |
|
|
inspectionCharCode: '', |
|
|
inspectionCharacteristicsBaseVO: { |
|
|
inspectionCharacteristicsBaseVO: { |
|
|
describe: '', |
|
|
describe: '', |
|
@ -1020,23 +1056,30 @@ const opensearchTable = ( |
|
|
// 弹层确定返回所选数据 |
|
|
// 弹层确定返回所选数据 |
|
|
// val : 弹层列表row 数据 |
|
|
// val : 弹层列表row 数据 |
|
|
const searchTableSuccess = async (formField, searchField, val, type, row) => { |
|
|
const searchTableSuccess = async (formField, searchField, val, type, row) => { |
|
|
if(type == 'features'){ |
|
|
if (type == 'features') { |
|
|
row.inspectionCharacteristicsBaseVO[formField] = val[0].code |
|
|
row.inspectionCharacteristicsBaseVO[formField] = val[0].code |
|
|
if(formField == 'inspectionMethodCode'){ |
|
|
if (formField == 'inspectionMethodCode') { |
|
|
row.inspectionCharacteristicsBaseVO.inspectionMethodName = val[0].description |
|
|
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'){ |
|
|
// else if(formField == 'dynamicUpdateCode'){ |
|
|
|
|
|
// row.inspectionCharacteristicsBaseVO.dynamicUpdateName = val[0].description |
|
|
|
|
|
// } |
|
|
|
|
|
else if (formField == 'samplingProcessCode') { |
|
|
|
|
|
row.inspectionCharacteristicsBaseVO.samplingProcessName = val[0].description |
|
|
|
|
|
} else if (formField == 'quantifyQuantifyCode') { |
|
|
|
|
|
row.inspectionCharacteristicsBaseVO.quantifyQuantifyName = val[0].description |
|
|
|
|
|
} |
|
|
|
|
|
} else if (type == 'main') { |
|
|
data.value[formField] = val[0].code |
|
|
data.value[formField] = val[0].code |
|
|
if(formField == 'itemCode'){ |
|
|
if (formField == 'itemCode') { |
|
|
data.value.itemName = val[0].name |
|
|
data.value.itemName = val[0].name |
|
|
}else if(formField == 'testTypeCode'){ |
|
|
} else if (formField == 'testTypeCode') { |
|
|
data.value.testTypeName = val[0].description |
|
|
data.value.testTypeName = val[0].description |
|
|
}else if(formField == 'programmeTemplateCode'){ |
|
|
} else if (formField == 'programmeTemplateCode') { |
|
|
data.value.programmeTemplateName = val[0].description |
|
|
data.value.programmeTemplateName = val[0].description |
|
|
|
|
|
data.value['dynamicUpdateCode'] = val[0].dynamicUpdateCode |
|
|
|
|
|
data.value.dynamicUpdateName = val[0].dynamicUpdateName |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
if (formField == 'programmeTemplateCode') { |
|
|
if (formField == 'programmeTemplateCode') { |
|
|
let list = await InspectionProcessPageApi.getListByTempleteCode(val[0].code) |
|
|
let list = await InspectionProcessPageApi.getListByTempleteCode(val[0].code) |
|
@ -1062,6 +1105,11 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => { |
|
|
}) |
|
|
}) |
|
|
data.value.process = list |
|
|
data.value.process = list |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (formField == 'dynamicUpdateCode') { |
|
|
|
|
|
data.value[formField] = val[0].code |
|
|
|
|
|
data.value.dynamicUpdateName = val[0].description |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row) |
|
|
// emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row) |
|
|