From f4083dedb247c576286c96b2831815c5ad89ce1c Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Wed, 3 Jun 2026 13:36:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(npcIqc):=20=E6=9B=B4=E6=96=B0IQc=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=92=8C=E6=95=B0=E6=8D=AE=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将检验类型字段替换为IQC检验单号字段 - 将日期接收字段替换为采购订单号字段 - 将PO编号字段替换为收货日期字段 - 将IQC编号字段替换为物料编码字段 - 调整第三行字段顺序将数量、抽样数量移到物料信息后 - 将英文字段标签全部替换为中文标签如尺寸A-E、检验结果总计等 - 添加formatCaRequest方法处理纠正措施请求的布尔值显示 - 调整页面样式参数包括padding、margin、字体大小等 - 更新列表页面搜索条件中的字段名称和日期字段绑定 - 在表格中添加纠正措施请求的条件渲染模板 - 修改初始搜索数据对象中的日期字段名称 --- src/views/modules/npcIqc/com_npcIqcDetail.vue | 108 +++++++++--------- src/views/modules/npcIqc/npcIqcList.vue | 72 ++++++------ 2 files changed, 92 insertions(+), 88 deletions(-) diff --git a/src/views/modules/npcIqc/com_npcIqcDetail.vue b/src/views/modules/npcIqc/com_npcIqcDetail.vue index b9c0497..18dc437 100644 --- a/src/views/modules/npcIqc/com_npcIqcDetail.vue +++ b/src/views/modules/npcIqc/com_npcIqcDetail.vue @@ -7,23 +7,23 @@
- Inspection Type: - {{ detailData.inspectionType }} + IQC检验单号: + {{ detailData.iqcNo }}
- Date Received: - {{ formatDate(detailData.dateReceived) }} + 采购订单号: + {{ detailData.purOrder }}
- PO No: - {{ detailData.purOrder }} + 收货日期: + {{ formatDate(detailData.dateReceived) }}
- IQC No: - {{ detailData.iqcNo }} + 物料编码: + {{ detailData.itemCode }}
@@ -43,50 +43,45 @@
- Quantity: - {{ detailData.quantity }} -
- -
- Sample Size: - {{ detailData.sampleSize }} + 物料名称: + {{ detailData.itemName }}
- Item Code: - {{ detailData.itemCode }} + 数量: + {{ detailData.quantity }}
- Item Name: - {{ detailData.itemName }} + 抽样数量: + {{ detailData.sampleSize }}
- Dim A: + 尺寸A: {{ detailData.dimA }}
- Dim B: + 尺寸B: {{ detailData.dimB }}
- Dim C: + 尺寸C: {{ detailData.dimC }}
- Dim D: + 尺寸D: {{ detailData.dimD }}
- Dim E: + 尺寸E: {{ detailData.dimE }}
@@ -94,22 +89,17 @@
- Inspection Total: + 检验结果总计: {{ detailData.inspectionTotal }}
- Status: - {{ getStatusText(detailData.inspectionStatus) }} -
- -
- Inspector: + 检验员姓名: {{ detailData.inspectorName }}
- Entry Date: + 录入日期: {{ formatDate(detailData.entryDate) }}
@@ -117,52 +107,52 @@
- Supplier Email: + 供应商邮箱: {{ detailData.supplierEmail }}
- CA Request: - {{ detailData.caRequest ? '是' : '否' }} + 纠正措施请求: + {{ formatCaRequest(detailData.caRequest) }}
- Collection Batch: + 收集/批次号: {{ detailData.collectionBatch }}
- Problem: + 问题描述:
{{ detailData.problem }}
- Comments: + 备注:
{{ detailData.comments }}
- Rework Hours: + 返工工时: {{ detailData.reworkHours }}
- Rework Rate: + 返工费率: {{ detailData.reworkRate }}
- Rework Total: + 返工总成本: {{ detailData.reworkTotal }}
- Material Cost: + 物料成本: {{ detailData.materialCost }}
@@ -213,6 +203,12 @@ export default { 'Cancelled': '已取消' } return statusMap[status] || status + }, + formatCaRequest (caRequest) { + if (caRequest === true || caRequest === 'true' || caRequest === 1 || caRequest === '1') { + return '是' + } + return '否' } } } @@ -220,7 +216,7 @@ export default {