Browse Source

qms检验方案去掉拆分规则展示字段,新增编辑默认给字典第一个值

master_hella_20240701
songguoqiang 6 months ago
parent
commit
0b7b20b7f9
  1. 8
      src/views/qms/inspectionScheme/addForm.vue

8
src/views/qms/inspectionScheme/addForm.vue

@ -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) {

Loading…
Cancel
Save