|
@ -10,7 +10,7 @@ |
|
|
<div style="max-height: 80vh; overflow-y: auto; padding: 0px 20px"> |
|
|
<div style="max-height: 80vh; overflow-y: auto; padding: 0px 20px"> |
|
|
<el-form :model="data" label-width="auto" :rules="rules" ref="formMainRef"> |
|
|
<el-form :model="data" label-width="auto" :rules="rules" ref="formMainRef"> |
|
|
<el-row gutter="20"> |
|
|
<el-row gutter="20"> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12" v-if="data.code"> |
|
|
<el-form-item label="编码" prop="code"> |
|
|
<el-form-item label="编码" prop="code"> |
|
|
<el-input v-model="data.code" placeholder="根据系统生成" :disabled="true" /> |
|
|
<el-input v-model="data.code" placeholder="根据系统生成" :disabled="true" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -41,6 +41,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item label="描述" prop="description"> |
|
|
|
|
|
<el-input v-model="data.description" placeholder="请填写描述" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="版本" prop="version"> |
|
|
<el-form-item label="版本" prop="version"> |
|
|
<el-input v-model="data.version" placeholder="请填写版本" /> |
|
|
<el-input v-model="data.version" placeholder="请填写版本" /> |
|
@ -695,6 +700,7 @@ const data = ref({ |
|
|
expirationDate: '', |
|
|
expirationDate: '', |
|
|
available: 'TRUE', |
|
|
available: 'TRUE', |
|
|
dynamicUpdateCode: '', |
|
|
dynamicUpdateCode: '', |
|
|
|
|
|
description:'', |
|
|
process: [] |
|
|
process: [] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -715,6 +721,9 @@ const rules = ref({ |
|
|
programmeTemplateCode: [ |
|
|
programmeTemplateCode: [ |
|
|
{ required: true, message: '请选择检验模板', trigger: ['blur', 'change'] } |
|
|
{ required: true, message: '请选择检验模板', trigger: ['blur', 'change'] } |
|
|
], |
|
|
], |
|
|
|
|
|
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'] }], |
|
|
aql: [{ required: true, message: '请选择aql', trigger: ['blur', 'change'] }], |
|
|
inspectionLevel: [{ required: true, message: '请选择检验水平', trigger: ['blur', 'change'] }], |
|
|
inspectionLevel: [{ required: true, message: '请选择检验水平', trigger: ['blur', 'change'] }], |
|
@ -811,6 +820,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any |
|
|
expirationDate: '', |
|
|
expirationDate: '', |
|
|
available: 'TRUE', |
|
|
available: 'TRUE', |
|
|
dynamicUpdateCode:'', |
|
|
dynamicUpdateCode:'', |
|
|
|
|
|
description:"", |
|
|
process: [] |
|
|
process: [] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -946,6 +956,7 @@ const submitForm = async () => { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (formType.value == 'create') { |
|
|
if (formType.value == 'create') { |
|
|
|
|
|
|
|
|
// 主子表——提交请求 |
|
|
// 主子表——提交请求 |
|
|
emit('submitForm', formType.value, data.value) |
|
|
emit('submitForm', formType.value, data.value) |
|
|
} else { |
|
|
} else { |
|
|