Browse Source

检验方案添加描述字段

master_hella_20240701
songguoqiang 7 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"> <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>
@ -40,6 +40,11 @@
</el-button> </el-button>
</div> </div>
</el-form-item> </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>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="版本" prop="version"> <el-form-item label="版本" prop="version">
@ -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 {

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

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

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

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

Loading…
Cancel
Save