|
|
@ -157,7 +157,7 @@ |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<!-- <el-col :span="12"> |
|
|
|
<el-form-item label="拆分规则" prop="splitRule"> |
|
|
|
<el-select v-model="data.splitRule" placeholder="请选择拆分规则"> |
|
|
|
<el-option |
|
|
@ -168,7 +168,7 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="12" v-if="isShowField !=0"> |
|
|
|
<el-form-item label="aql" prop="aql"> |
|
|
|
<el-select v-model="data.aql" placeholder="请选择aql"> |
|
|
@ -733,7 +733,7 @@ const rules = ref({ |
|
|
|
description: [ |
|
|
|
{ required: true, message: '请选择描述', trigger: 'blur' } |
|
|
|
], |
|
|
|
splitRule: [{ required: true, message: '请选择拆分规则', trigger: ['blur', 'change'] }], |
|
|
|
// splitRule: [{ required: true, message: '请选择拆分规则', trigger: ['blur', 'change'] }], |
|
|
|
aql: [{ required: true, message: '请选择aql', trigger: ['blur', 'change'] }], |
|
|
|
inspectionLevel: [ |
|
|
|
{ required: true, message: '请选择检验水平', trigger: ['blur', 'change'] }, |
|
|
@ -957,6 +957,8 @@ const validateForm = (formRef) => { |
|
|
|
|
|
|
|
const submitForm = async () => { |
|
|
|
try { |
|
|
|
const aa = await getStrDictOptions(DICT_TYPE.SPLIT_RULES);//拆分规则隐藏默认给第一字典值 |
|
|
|
data.value.splitRule = aa[0].value |
|
|
|
const validateForm1 = await validateForm(formProcessRef.value) |
|
|
|
await formMainRef.value.validate() |
|
|
|
if (!data.value.process || data.value.process.length == 0) { |
|
|
|