From df99da0fd674750aed7e3b17de86ee25ac9f8c30 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Tue, 9 Apr 2024 17:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=96=B9=E6=A1=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=A3=80=E9=AA=8C=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qms/basicDataManage/inspectionScheme/addForm.vue | 12 ++++++------ .../qms/basicDataManage/inspectionScheme/index.vue | 8 ++++---- .../inspectionScheme/inspectionScheme.data.ts | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/qms/basicDataManage/inspectionScheme/addForm.vue b/src/views/qms/basicDataManage/inspectionScheme/addForm.vue index 076329a63..7f94f4f3f 100644 --- a/src/views/qms/basicDataManage/inspectionScheme/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionScheme/addForm.vue @@ -52,7 +52,7 @@ - + - + { data.value[formField] = val[0].code if (formField == 'itemCode') { data.value.itemName = val[0].name - } else if (formField == 'testTypeCode') { + } else if (formField == 'inspectionType') { data.value.testTypeName = val[0].description } else if (formField == 'programmeTemplateCode') { data.value.programmeTemplateName = val[0].description diff --git a/src/views/qms/basicDataManage/inspectionScheme/index.vue b/src/views/qms/basicDataManage/inspectionScheme/index.vue index 787d11d4f..13e7a84a7 100644 --- a/src/views/qms/basicDataManage/inspectionScheme/index.vue +++ b/src/views/qms/basicDataManage/inspectionScheme/index.vue @@ -159,7 +159,7 @@ const submitForm = async (formType,data) => { description: data.description, itemCode: data.itemCode, version: data.version, - testTypeCode: data.testTypeCode, + inspectionType: data.inspectionType, programmeTemplateCode: data.programmeTemplateCode, splitRule: data.splitRule, aql: data.aql, @@ -170,10 +170,10 @@ const submitForm = async (formType,data) => { content:JSON.stringify(data.process) } if (formType === 'create') { - await InspectionSchemeApi.inspectionSchemeCreat(data1) + await InspectionSchemeApi.InspectionSchemeCreat(data1) message.success(t('common.createSuccess')) } else { - await InspectionSchemeApi.inspectionSchemeUpdate(data1) + await InspectionSchemeApi.InspectionSchemeUpdate(data1) message.success(t('common.updateSuccess')) } basicFormRef.value.dialogVisible = false @@ -192,7 +192,7 @@ const handleDelete = async (id: number) => { // 删除的二次确认 await message.delConfirm() // 发起删除 - await InspectionSchemeApi.inspectionSchemeDelete(id) + await InspectionSchemeApi.InspectionSchemeDelete(id) message.success(t('common.delSuccess')) // 刷新列表 await getList() diff --git a/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts index fff1c0e44..baed2b3a3 100644 --- a/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts +++ b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts @@ -115,7 +115,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ } },{ label: '检验类型编码', - field: 'testTypeCode', + field: 'inspectionType', dictType: DICT_TYPE.INSPECTION_TYPE, dictClass: 'string', sort: 'custom',