refactor(qc): 重构质检模块数据表格字段配置
- 在IPQC、IQC、OQC、RQC和待检列表中移除冗余业务字段
- 统一添加复核人和审核人字段到各质检列表
- 将物料选择组件从MdItemSelect更换为MdmItemSelect
- 清理不再使用的供应商、客户、批次等相关显示字段
- 优化表格列配置结构提升代码可维护性
| | |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'auditNickname', |
| | | title: '复核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'approveNickname', |
| | | title: '审核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: '单据状态', |
| | | width: 100, |
| | |
| | | minWidth: 180, |
| | | }, |
| | | { |
| | | field: 'vendorNickname', |
| | | title: '供应商简称', |
| | | width: 120, |
| | | }, |
| | | { |
| | | field: 'vendorBatch', |
| | | title: '供应商批次号', |
| | | width: 130, |
| | | }, |
| | | { |
| | | field: 'itemCode', |
| | | title: '产品物料编码', |
| | | width: 130, |
| | |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'auditNickname', |
| | | title: '复核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'approveNickname', |
| | | title: '审核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: '单据状态', |
| | | width: 100, |
| | |
| | | minWidth: 180, |
| | | }, |
| | | { |
| | | field: 'clientNickname', |
| | | title: '客户名称', |
| | | width: 120, |
| | | }, |
| | | { |
| | | field: 'batchCode', |
| | | title: '批次号', |
| | | width: 130, |
| | | }, |
| | | { |
| | | field: 'itemCode', |
| | | title: '产品物料编码', |
| | | width: 130, |
| | |
| | | field: 'unitName', |
| | | title: '单位', |
| | | width: 80, |
| | | }, |
| | | { |
| | | field: 'outQuantity', |
| | | title: '发货数量', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'checkQuantity', |
| | |
| | | }, |
| | | }, |
| | | { |
| | | field: 'outDate', |
| | | title: '出货日期', |
| | | width: 120, |
| | | formatter: 'formatDate', |
| | | }, |
| | | { |
| | | field: 'inspectDate', |
| | | title: '检测日期', |
| | | width: 120, |
| | |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'auditNickname', |
| | | title: '复核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'approveNickname', |
| | | title: '审核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: '单据状态', |
| | | width: 100, |
| | |
| | | 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[] { |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '产品物料', |
| | | component: markRaw(MdItemSelect), |
| | | component: markRaw(MdmItemSelect), |
| | | componentProps: { |
| | | placeholder: '请选择产品物料', |
| | | }, |
| | |
| | | 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, |
| | |
| | | width: 80, |
| | | }, |
| | | { |
| | | field: 'batchCode', |
| | | title: '批次号', |
| | | width: 130, |
| | | }, |
| | | { |
| | | field: 'checkResult', |
| | | title: '检测结果', |
| | | width: 110, |
| | |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'auditNickname', |
| | | title: '复核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'approveNickname', |
| | | title: '审核人', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: '单据状态', |
| | | width: 100, |