云
2026-09-22 6be7c40bccc170217e8ff3db0762b43416b66c24
refactor(qc): 重构质检模块数据表格字段配置

- 在IPQC、IQC、OQC、RQC和待检列表中移除冗余业务字段
- 统一添加复核人和审核人字段到各质检列表
- 将物料选择组件从MdItemSelect更换为MdmItemSelect
- 清理不再使用的供应商、客户、批次等相关显示字段
- 优化表格列配置结构提升代码可维护性
已修改5个文件
94 ■■■■■ 文件已修改
src/views/mes/qc/ipqc/data.ts 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/qc/iqc/data.ts 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/qc/oqc/data.ts 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/qc/pendinginspect/data.ts 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/qc/rqc/data.ts 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/qc/ipqc/data.ts
@@ -538,6 +538,16 @@
      width: 100,
    },
    {
      field: 'auditNickname',
      title: '复核人',
      width: 100,
    },
    {
      field: 'approveNickname',
      title: '审核人',
      width: 100,
    },
    {
      field: 'status',
      title: '单据状态',
      width: 100,
src/views/mes/qc/iqc/data.ts
@@ -444,16 +444,6 @@
      minWidth: 180,
    },
    {
      field: 'vendorNickname',
      title: '供应商简称',
      width: 120,
    },
    {
      field: 'vendorBatch',
      title: '供应商批次号',
      width: 130,
    },
    {
      field: 'itemCode',
      title: '产品物料编码',
      width: 130,
@@ -505,6 +495,16 @@
      width: 100,
    },
    {
      field: 'auditNickname',
      title: '复核人',
      width: 100,
    },
    {
      field: 'approveNickname',
      title: '审核人',
      width: 100,
    },
    {
      field: 'status',
      title: '单据状态',
      width: 100,
src/views/mes/qc/oqc/data.ts
@@ -444,16 +444,6 @@
      minWidth: 180,
    },
    {
      field: 'clientNickname',
      title: '客户名称',
      width: 120,
    },
    {
      field: 'batchCode',
      title: '批次号',
      width: 130,
    },
    {
      field: 'itemCode',
      title: '产品物料编码',
      width: 130,
@@ -472,11 +462,6 @@
      field: 'unitName',
      title: '单位',
      width: 80,
    },
    {
      field: 'outQuantity',
      title: '发货数量',
      width: 100,
    },
    {
      field: 'checkQuantity',
@@ -498,12 +483,6 @@
      },
    },
    {
      field: 'outDate',
      title: '出货日期',
      width: 120,
      formatter: 'formatDate',
    },
    {
      field: 'inspectDate',
      title: '检测日期',
      width: 120,
@@ -515,6 +494,16 @@
      width: 100,
    },
    {
      field: 'auditNickname',
      title: '复核人',
      width: 100,
    },
    {
      field: 'approveNickname',
      title: '审核人',
      width: 100,
    },
    {
      field: 'status',
      title: '单据状态',
      width: 100,
src/views/mes/qc/pendinginspect/data.ts
@@ -7,7 +7,7 @@
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { MdItemSelect } from '#/views/mes/md/item/components';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
/** 列表的搜索表单 */
export function useGridFormSchema(): VbenFormSchema[] {
@@ -24,7 +24,7 @@
    {
      fieldName: 'itemId',
      label: '产品物料',
      component: markRaw(MdItemSelect),
      component: markRaw(MdmItemSelect),
      componentProps: {
        placeholder: '请选择产品物料',
      },
src/views/mes/qc/rqc/data.ts
@@ -436,20 +436,6 @@
      minWidth: 180,
    },
    {
      field: 'sourceDocType',
      title: '来源单据类型',
      width: 120,
      cellRender: {
        name: 'CellDict',
        props: { type: DICT_TYPE.MES_QC_SOURCE_DOC_TYPE },
      },
    },
    {
      field: 'sourceDocCode',
      title: '来源单据编码',
      width: 160,
    },
    {
      field: 'itemCode',
      title: '产品物料编码',
      width: 130,
@@ -470,11 +456,6 @@
      width: 80,
    },
    {
      field: 'batchCode',
      title: '批次号',
      width: 130,
    },
    {
      field: 'checkResult',
      title: '检测结果',
      width: 110,
@@ -495,6 +476,16 @@
      width: 100,
    },
    {
      field: 'auditNickname',
      title: '复核人',
      width: 100,
    },
    {
      field: 'approveNickname',
      title: '审核人',
      width: 100,
    },
    {
      field: 'status',
      title: '单据状态',
      width: 100,