From 2fc5362a7e3cfb6f07baaa83340f3bc35769f0a6 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 25 Feb 2026 19:24:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(mes):=20=E4=BC=98=E5=8C=96=20RQC=20?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BA=A4=E4=BA=92=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=BB=9F=E8=AE=A1=E6=98=BE=E7=A4=BA=20=20=20?= =?UTF-8?q?=E4=B8=BB=E8=A6=81=E5=8F=98=E6=9B=B4=EF=BC=9A=20=20=20-=20RqcFo?= =?UTF-8?q?rm=20=E6=B7=BB=E5=8A=A0=E7=BC=BA=E9=99=B7=E6=83=85=E5=86=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=8C=BA=E5=9F=9F=E5=92=8C=20detail=20?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E6=94=AF=E6=8C=81=20=20=20-=20=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E5=8D=95=E7=BC=96=E5=8F=B7=E6=94=B9=E4=B8=BA=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=EF=BC=8C=E7=82=B9=E5=87=BB=E5=8F=AF=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=AF=A6=E6=83=85=EF=BC=88=E5=AF=B9=E9=BD=90=20IQC=EF=BC=89=20?= =?UTF-8?q?=20=20-=20=E5=88=A0=E9=99=A4=20sourceDocCode=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=8CrqcType=20=E6=94=B9=E4=B8=BA=20type=20=20=20-?= =?UTF-8?q?=20RQC=20Line=20=E7=9A=84=20toolId/toolName=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20tool=20=E5=AD=97=E6=AE=B5=20=20=20-=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=88=90=E5=8A=9F=E5=90=8E=E8=87=AA=E5=8A=A8=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=88=B0=E7=BC=96=E8=BE=91=E6=A8=A1=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E7=BB=A7=E7=BB=AD=E7=BC=96=E8=BE=91=E5=AD=90=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/qc/rqc/index.ts | 10 ++- src/api/mes/qc/rqc/line/index.ts | 3 +- src/utils/dict.ts | 2 +- src/views/mes/qc/rqc/RqcForm.vue | 127 ++++++++++++++++++++------- src/views/mes/qc/rqc/RqcLineList.vue | 2 +- src/views/mes/qc/rqc/index.vue | 72 ++++++--------- 6 files changed, 135 insertions(+), 81 deletions(-) diff --git a/src/api/mes/qc/rqc/index.ts b/src/api/mes/qc/rqc/index.ts index 126f7af98..9718fd5a2 100644 --- a/src/api/mes/qc/rqc/index.ts +++ b/src/api/mes/qc/rqc/index.ts @@ -8,9 +8,8 @@ export interface QcRqcVO { templateId: number // 检验模板 ID sourceDocId: number // 来源单据 ID sourceDocType: string // 来源单据类型 - sourceDocCode: string // 来源单据编号 sourceLineId: number // 来源单据行 ID - rqcType: number // 检验类型 + type: number // 检验类型 itemId: number // 产品物料 ID itemCode: string // 产品物料编码(关联查询) itemName: string // 产品物料名称(关联查询) @@ -26,6 +25,13 @@ export interface QcRqcVO { inspectorNickname: string // 检测人员昵称(关联查询) status: number // 状态 remark: string // 备注 + // 缺陷统计 + criticalQuantity: number // 致命缺陷数量 + majorQuantity: number // 严重缺陷数量 + minorQuantity: number // 轻微缺陷数量 + criticalRate: number // 致命缺陷率(%) + majorRate: number // 严重缺陷率(%) + minorRate: number // 轻微缺陷率(%) } // MES 退货检验单 API diff --git a/src/api/mes/qc/rqc/line/index.ts b/src/api/mes/qc/rqc/line/index.ts index 6740200c0..dccf7eb26 100644 --- a/src/api/mes/qc/rqc/line/index.ts +++ b/src/api/mes/qc/rqc/line/index.ts @@ -8,8 +8,7 @@ export interface QcRqcLineVO { indicatorCode: string // 检测指标编码(关联查询) indicatorName: string // 检测指标名称(关联查询) indicatorType: string // 检测指标类型(关联查询) - toolId: number // 检测工具 ID - toolName: string // 检测工具名称(关联查询) + tool: string // 检测工具 checkMethod: string // 检测方法 standardValue: number // 标准值 unitMeasureId: number // 计量单位 ID diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 364dc7cad..07d8e97e7 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -293,5 +293,5 @@ export enum DICT_TYPE { MES_PRO_ANDON_LEVEL = 'mes_pro_andon_level', // MES 安灯级别 MES_RQC_TYPE = 'mes_rqc_type', // MES 退货检验类型 MES_WM_ARRIVAL_NOTICE_STATUS = 'mes_wm_arrival_notice_status', // MES 到货通知单状态 - MES_WM_ITEM_RECEIPT_STATUS = 'mes_wm_item_receipt_status' // MES 物料接收单状态 + MES_WM_ITEM_RECEIPT_STATUS = 'mes_wm_item_receipt_status', // MES 物料接收单状态 } diff --git a/src/views/mes/qc/rqc/RqcForm.vue b/src/views/mes/qc/rqc/RqcForm.vue index 0442fb6dd..67226ff4d 100644 --- a/src/views/mes/qc/rqc/RqcForm.vue +++ b/src/views/mes/qc/rqc/RqcForm.vue @@ -8,6 +8,7 @@ :rules="formRules" label-width="120px" v-loading="formLoading" + :disabled="isDetail" > @@ -26,21 +27,14 @@ - - - - - - 物料信息 - - + - + @@ -150,10 +149,47 @@ + + + 缺陷情况 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + diff --git a/src/views/mes/qc/rqc/index.vue b/src/views/mes/qc/rqc/index.vue index 04f0092e2..b65d0f048 100644 --- a/src/views/mes/qc/rqc/index.vue +++ b/src/views/mes/qc/rqc/index.vue @@ -18,25 +18,24 @@ class="!w-240px" /> - + - - - - + - - + /> - - - - - + + + - @@ -219,11 +203,9 @@ const queryParams = reactive({ pageSize: 10, code: undefined, sourceDocType: undefined, - sourceDocCode: undefined, itemId: undefined, - rqcType: undefined, + batchCode: undefined, checkResult: undefined, - inspectDate: undefined, inspectorUserId: undefined }) const queryFormRef = ref() // 搜索的表单