From 7df07858186b83bb5bfa4d81868ca96cf0dbe4d5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 25 Feb 2026 00:15:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(mes-qc):=20=E4=BC=98=E5=8C=96=20IPQC/I?= =?UTF-8?q?QC=20=E8=B4=A8=E6=A3=80=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IPQC 优化: - 修复 TODO AI 项:模板检索方法、tool 字段重构、删除冗余字段 - 新增废品数量字段(工废/料废/其他废品)及验证 - 添加检测人员和物料的存在性验证 IQC 优化: - 检测人员由后端自动设置改为前端传递 - 添加检测人员存在性验证 --- src/api/mes/qc/ipqc/index.ts | 10 ++-- src/views/mes/qc/ipqc/IpqcForm.vue | 93 ++++++++++++++++-------------- src/views/mes/qc/ipqc/index.vue | 35 +++-------- src/views/mes/qc/iqc/IqcForm.vue | 18 +++--- 4 files changed, 72 insertions(+), 84 deletions(-) diff --git a/src/api/mes/qc/ipqc/index.ts b/src/api/mes/qc/ipqc/index.ts index a2be7b93f..3d6d4075d 100644 --- a/src/api/mes/qc/ipqc/index.ts +++ b/src/api/mes/qc/ipqc/index.ts @@ -24,10 +24,10 @@ export interface QcIpqcVO { itemName: string // 产品物料名称(关联查询) itemSpecification: string // 规格型号(关联查询) unitName: string // 单位名称(关联查询) - checkQuantity: number // 检测数量 - qualifiedQuantity: number // 合格品数量 - unqualifiedQuantity: number // 不合格品数量 - laborScrapQuantity: number // 工废数量 + checkQuantity?: number // 检测数量 + qualifiedQuantity?: number // 合格品数量 + unqualifiedQuantity?: number // 不合格品数量 + laborScrapQuantity?: number // 工废数量 materialScrapQuantity: number // 料废数量 otherScrapQuantity: number // 其他废品数量 criticalRate: number // 致命缺陷率(%) @@ -40,7 +40,7 @@ export interface QcIpqcVO { inspectDate: Date // 检测日期 inspectorUserId: number // 检测人员用户 ID inspectorNickname: string // 检测人员昵称(关联查询) - status: number // 状态 + status?: number // 状态 remark: string // 备注 } diff --git a/src/views/mes/qc/ipqc/IpqcForm.vue b/src/views/mes/qc/ipqc/IpqcForm.vue index 1c26f8e6a..ac83f796d 100644 --- a/src/views/mes/qc/ipqc/IpqcForm.vue +++ b/src/views/mes/qc/ipqc/IpqcForm.vue @@ -8,6 +8,7 @@ :rules="formRules" label-width="120px" v-loading="formLoading" + :disabled="isDetail" > @@ -64,76 +65,86 @@ 检测情况 - + - + - + - - + + + - + - + + + + + + - - - - - - -