车间能级提升-智能设备管理系统
zhuguifei
2025-04-27 d7862b2890b68743ec9c4fc05800bb23ec9b412e
eims-ui/apps/web-antd/src/views/eims/repair-req/data.tsx
@@ -79,6 +79,23 @@
export const columns: VxeGridProps['columns'] = [
  { type: 'checkbox', width: 60, fixed: 'left' },
  {
    title: '设备(工具)名称',
    sortable: true,
    minWidth: 150,
    fixed: 'left',
    slots: {
      default: ({ row }) => {
        if (row.reqType === REPAIR_REQ_TYPE.EQU) {
          return row.equName;
        } else if (row.reqType === REPAIR_REQ_TYPE.FIXTURE) {
          return row.fixtureName;
        } else {
          return '';
        }
      }
    }
  },
  {
    title: '报修单号',
    field: 'code',
    minWidth: 160,
@@ -118,20 +135,10 @@
    minWidth: 200
  },
  {
    title: '设备(工具)名称',
    title: '发生时间',
    field: 'occTime',
    sortable: true,
    minWidth: 150,
    slots: {
      default: ({ row }) => {
        if (row.reqType === REPAIR_REQ_TYPE.EQU) {
          return row.equName;
        } else if (row.reqType === REPAIR_REQ_TYPE.FIXTURE) {
          return row.fixtureName;
        } else {
          return '';
        }
      }
    }
    minWidth: 200
  },
  {
    title: '故障类别',
@@ -139,6 +146,9 @@
    minWidth: 100,
    slots: {
      default: ({ row }) => {
        if(!row.faultType){
          return ''
        }
        return renderDict(row.faultType, DictEnum.REPAIR_FAULT_TYPE);
      }
    }