车间能级提升-智能设备管理系统
朱桂飞
2025-02-20 f0bb114ba37709cbe1aa55047fbf0c57cc07ab9d
eims-ui/apps/web-antd/src/views/eims/fixture-borrow/data.tsx
@@ -112,6 +112,68 @@
    width: 200
  }
];
export const customColumns: VxeGridProps['columns'] = [
  { type: 'checkbox', width: 60, fixed: 'left' },
  {
    title: '工具名称',
    field: 'fixtureName',
    minWidth: 100,
    fixed: 'left',
    slots: { default: 'fixtureName' }
  },
  {
    title: '借用状态',
    field: 'status',
    sortable: true,
    slots: {
      default: ({ row }) => {
        if (row.status === null || row.status === '') {
          return '';
        }
        return renderDict(row.status, DictEnum.FIXTURE_BORROW_RECORD_STATUS);
      }
    },
    minWidth: 100,
    fixed: 'left'
  },
  {
    title: '借用部门',
    field: 'borrowDeptName',
    minWidth: 120
  },
  {
    title: '借用人',
    field: 'borrowUserName',
    minWidth: 100
  },
  {
    title: '经办人',
    field: 'agentUserName',
    minWidth: 100
  },
  {
    title: '借用时间',
    field: 'borrowTime',
    minWidth: 120
  },
  {
    title: '借用原因',
    field: 'borrowReason',
    minWidth: 140
  },
  {
    title: '预计归还时间',
    field: 'planReturnTime',
    minWidth: 160
  },
  {
    title: '实际归还时间',
    field: 'returnTime',
    minWidth: 160
  }
];
export const drawerSchema: FormSchemaGetter = () => [
  {