From 416778c8e5258a96e590afbe41597d243a4a01f6 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 17 Feb 2026 20:43:40 +0800 Subject: [PATCH] =?UTF-8?q?review=EF=BC=88mes=EF=BC=89=EF=BC=9Aqc-template?= =?UTF-8?q?=20=E7=9A=84=E4=BB=A3=E7=A0=81=E5=AE=9E=E7=8E=B0=EF=BC=8C?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/qc/template/index.ts | 21 +++- src/views/mes/qc/template/TemplateForm.vue | 116 +++++++++++------- .../mes/qc/template/TemplateIndicatorForm.vue | 33 +++-- .../mes/qc/template/TemplateIndicatorList.vue | 29 ++--- .../mes/qc/template/TemplateItemForm.vue | 36 +++--- .../mes/qc/template/TemplateItemList.vue | 9 +- src/views/mes/qc/template/index.vue | 50 ++++---- 7 files changed, 170 insertions(+), 124 deletions(-) diff --git a/src/api/mes/qc/template/index.ts b/src/api/mes/qc/template/index.ts index 099842d97..560c55bbf 100644 --- a/src/api/mes/qc/template/index.ts +++ b/src/api/mes/qc/template/index.ts @@ -1,41 +1,52 @@ import request from '@/config/axios' -// TODO @AI:拆成多个,参考别的 api ts; // MES 质检方案 VO export interface QcTemplateVO { id: number // 编号 code: string // 方案编号 name: string // 方案名称 - types: string // 检测种类(逗号分隔:IQC,IPQC,OQC,RQC) - enableFlag: string // 是否启用(Y/N) + types: number[] // 检测种类 + enableFlag: boolean // 是否启用 remark: string // 备注 } // MES 质检方案-检测指标项 VO +// TODO @AI:拆成多个,参考别的 api ts; export interface QcTemplateIndicatorVO { id: number // 编号 templateId: number // 质检方案ID indicatorId: number // 质检指标ID - checkMethod: string // 检测方法/检测要求 + checkMethod: string // 检测方法 standardValue: number // 标准值 unit: string // 单位 thresholdMax: number // 误差上限 thresholdMin: number // 误差下限 docUrl: string // 说明图URL remark: string // 备注 + // JOIN mes_qc_indicator + indicatorCode: string // 检测项编码 + indicatorName: string // 检测项名称 + indicatorType: string // 检测项类型(字典 mes_index_type) + indicatorTool: string // 检测工具 } // MES 质检方案-产品关联 VO +// TODO @AI:拆成多个,参考别的 api ts; export interface QcTemplateItemVO { id: number // 编号 templateId: number // 质检方案ID itemId: number // 产品物料ID quantityCheck: number // 最低检测数 - quantityUnqualified: number // 最大不合格数(0=不启用) + quantityUnqualified: number // 最大不合格数 criticalRate: number // 最大致命缺陷率(%) majorRate: number // 最大严重缺陷率(%) minorRate: number // 最大轻微缺陷率(%) remark: string // 备注 + // JOIN mes_md_item + itemCode: string // 物料编码 + itemName: string // 物料名称 + specification: string // 规格型号 + unitMeasureName: string // 计量单位名称 } // MES 质检方案 API diff --git a/src/views/mes/qc/template/TemplateForm.vue b/src/views/mes/qc/template/TemplateForm.vue index 2949dac41..5f9f8c93d 100644 --- a/src/views/mes/qc/template/TemplateForm.vue +++ b/src/views/mes/qc/template/TemplateForm.vue @@ -1,43 +1,70 @@