From fb342f236df1d7d9dea47bf0c9ede4224df6c4b4 Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Tue, 29 Jul 2025 15:32:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(qms):=20=E4=BC=98=E5=8C=96qms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 字典移除不必要的 parseInt 转换 - 添加筛选条件以根据 selectedTypeId过滤检测项列表 - 优化模板添加/修改对话框,支持根据模板类型过滤检测项 - 质检任务主表只有不合格时才能编辑不合格数量 --- src/api/qms/qcUnqualifiedRecord/types.ts | 3 ++ src/views/qms/QcInspectionMain/index.vue | 32 +++++++++++--------- src/views/qms/qcInspectionItem/index.vue | 6 ++-- src/views/qms/qcInspectionResult/index.vue | 8 ++--- src/views/qms/qcInspectionTemplate/index.vue | 20 +++++++++--- src/views/qms/qcInspectionType/index.vue | 6 ++-- src/views/qms/qcTemplateItem/index.vue | 4 +-- src/views/qms/qcUnqualifiedRecord/index.vue | 6 ++-- src/views/qms/qcUnqualifiedReview/index.vue | 10 +++--- 9 files changed, 55 insertions(+), 40 deletions(-) diff --git a/src/api/qms/qcUnqualifiedRecord/types.ts b/src/api/qms/qcUnqualifiedRecord/types.ts index efff4b2..2410901 100644 --- a/src/api/qms/qcUnqualifiedRecord/types.ts +++ b/src/api/qms/qcUnqualifiedRecord/types.ts @@ -28,6 +28,7 @@ export interface QcUnqualifiedRecordVO { * 检测项目类别 */ categoryName: number; + categoryId: string | number; /** * 关联检测类型表 @@ -116,6 +117,7 @@ export interface QcUnqualifiedRecordForm extends BaseEntity { * 检测项目类别 */ categoryName?: number; + categoryId?: string | number; /** * 关联检测类型表 @@ -205,6 +207,7 @@ export interface QcUnqualifiedRecordQuery extends PageQuery { * 检测项目类别 */ categoryName?: number; + categoryId?: string | number; /** * 关联检测类型表 diff --git a/src/views/qms/QcInspectionMain/index.vue b/src/views/qms/QcInspectionMain/index.vue index b18f5b7..fa83e7f 100644 --- a/src/views/qms/QcInspectionMain/index.vue +++ b/src/views/qms/QcInspectionMain/index.vue @@ -293,7 +293,7 @@ - + @@ -304,7 +304,7 @@ v-for="dict in qc_result" :key="dict.value" :label="dict.label" - :value="parseInt(dict.value)" + :value="dict.value" > @@ -324,7 +324,7 @@ v-for="dict in qc_inspection_type" :key="dict.value" :label="dict.label" - :value="parseInt(dict.value)" + :value="dict.value" > @@ -335,7 +335,7 @@ {{dict.label}} @@ -462,7 +462,7 @@ - + @@ -471,7 +471,7 @@ - + @@ -525,7 +525,7 @@ - + @@ -567,7 +567,7 @@ - +