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