Browse Source

检验方案添加描述字段

master_hella_20240701
songguoqiang 8 months ago
parent
commit
c0a47a94f5
  1. 13
      src/views/qms/basicDataManage/inspectionPlan/addForm.vue
  2. 7
      src/views/qms/basicDataManage/inspectionPlan/index.vue
  3. 4
      src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts

13
src/views/qms/basicDataManage/inspectionPlan/addForm.vue

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

7
src/views/qms/basicDataManage/inspectionPlan/index.vue

@ -85,7 +85,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:agv-locationrelation:create'}), //
defaultButtons.defaultAddBtn({hasPermi:'qms:type-template:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'wms:agv-locationrelation:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'wms:agv-locationrelation:export'}), //
defaultButtons.defaultFreshBtn(null), //
@ -119,8 +119,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'qms:inspectionTemplate:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'qms:inspectionTemplate:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'qms:type-template:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'qms:type-template:delete'}), //
]
// -
@ -156,6 +156,7 @@ const submitForm = async (formType,data) => {
id: data.id,
dynamicUpdateCode:data.dynamicUpdateCode,
code: data.code,
description: data.description,
itemCode: data.itemCode,
version: data.version,
testTypeCode: data.testTypeCode,

4
src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts

@ -102,6 +102,10 @@ export const InspectionPlanMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
isSearch:true,
}, {
label: '描述',
field: 'description',
sort: 'custom',
},{
label: '版本',
field: 'version',

Loading…
Cancel
Save