车间能级提升-智能设备管理系统
baoshiwei
2025-06-20 6c16a58b5b7f38ce9e370eab160b516c058da6e2
eims-ui/apps/web-antd/src/views/eims/insp-record/data.tsx
@@ -8,54 +8,59 @@
import { renderDict } from '#/utils/render';
export const querySchema: FormSchemaGetter = () => [
  // {
  //   component: 'Input',
  //   fieldName: 'equName',
  //   label: '设备名称'
  // },
  // {
  //   component: 'Input',
  //   fieldName: 'assetNo',
  //   label: '资产编号'
  // },
  {
    component: 'Input',
    fieldName: 'equName',
    label: '设备名称'
    fieldName: 'params.searchValue',
    label: '关键字'
  },
  // {
  //   component: 'Select',
  //   componentProps: {
  //     options: getDictOptions(DictEnum.EIMS_INSPECT_STATUS)
  //   },
  //   fieldName: 'status',
  //   label: '状态'
  // },
  {
    component: 'Input',
    fieldName: 'assetNo',
    label: '资产编号'
  },
  {
    component: 'Input',
    fieldName: 'inspName',
    label: '点检项'
  },
  {
    component: 'Select',
    componentProps: {
      options: getDictOptions(DictEnum.EIMS_INSPECT_STATUS)
    },
    fieldName: 'status',
    label: '状态'
    component: 'RangePicker',
    fieldName: 'planTime',
    label: '点检日期'
  },
  {
    component: 'Select',
    componentProps: {
      options: getDictOptions(DictEnum.EIMS_INSPECT_RESULT)
    },
    fieldName: 'maintType',
    fieldName: 'inspResult',
    label: '点检结果'
  },
  {
    component: 'TreeSelect',
    // 在drawer里更新 这里不需要默认的componentProps
    defaultValue: undefined,
    fieldName: 'inspDept',
    label: '点检部门'
  },
  {
    component: 'Select',
    componentProps: {
      allowClear: true,
      showSearch: true,
      getPopupContainer
    },
    fieldName: 'inspUser',
    label: '点检人'
  }
  // {
  //   component: 'TreeSelect',
  //   // 在drawer里更新 这里不需要默认的componentProps
  //   defaultValue: undefined,
  //   fieldName: 'inspDept',
  //   label: '点检部门'
  // },
  // {
  //   component: 'Select',
  //   componentProps: {
  //     allowClear: true,
  //     showSearch: true,
  //     getPopupContainer
  //   },
  //   fieldName: 'inspUser',
  //   label: '点检人'
  // }
];
export const columns: VxeGridProps['columns'] = [
@@ -103,15 +108,20 @@
      }
    }
  },
  // {
  //   title: '点检类型',
  //   field: 'inspType',
  //   minWidth: 120,
  //   slots: {
  //     default: ({ row }) => {
  //       return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE);
  //     }
  //   }
  // },
  {
    title: '点检类型',
    field: 'inspType',
    minWidth: 120,
    slots: {
      default: ({ row }) => {
        return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE);
      }
    }
    title: '点检描述',
    field: 'inspDesc',
    minWidth: 200
  },
  {
    title: '点检人',
@@ -128,11 +138,7 @@
    field: 'inspTime',
    minWidth: 200
  },
  {
    title: '点检描述',
    field: 'inspDesc',
    minWidth: 200
  },
  {
    title: '验证人',
    field: 'verifyUserName',