车间能级提升-智能设备管理系统
baoshiwei
2025-04-12 beaed6d077e7c3e9abfad68acb8c587835b5a406
eims-ui/apps/web-antd/src/views/eims/insp-plan/data.tsx
@@ -82,51 +82,51 @@
    field: 'inspName',
    minWidth: 200
  },
  {
    title: '点检类型',
    field: 'inspType',
    minWidth: 120,
    slots: {
      default: ({ row }) => {
        return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE);
      }
    }
  },
  {
    title: '点检人',
    field: 'inspUserName',
    minWidth: 100
  },
  {
    title: '循环周期',
    field: 'inspCycleUnitName',
    minWidth: 80
  },
  {
    title: '时间计算规则',
    field: 'inspRule',
    minWidth: 140,
    slots: {
      default: ({ row }) => {
        return renderDict(row.inspRule, DictEnum.MAINT_TIME_RULE);
      }
    }
  },
  {
    title: '首次执行时间',
    field: 'inspFirstTime',
    minWidth: 160
  },
  {
    title: '上次执行时间',
    field: 'inspLastTime',
    minWidth: 160
  },
  {
    title: '下次执行时间',
    field: 'inspNextTime',
    minWidth: 160
  },
  // {
  //   title: '点检类型',
  //   field: 'inspType',
  //   minWidth: 120,
  //   slots: {
  //     default: ({ row }) => {
  //       return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE);
  //     }
  //   }
  // },
  // {
  //   title: '点检人',
  //   field: 'inspUserName',
  //   minWidth: 100
  // },
  // {
  //   title: '循环周期',
  //   field: 'inspCycleUnitName',
  //   minWidth: 80
  // },
  // {
  //   title: '时间计算规则',
  //   field: 'inspRule',
  //   minWidth: 140,
  //   slots: {
  //     default: ({ row }) => {
  //       return renderDict(row.inspRule, DictEnum.MAINT_TIME_RULE);
  //     }
  //   }
  // },
  // {
  //   title: '首次执行时间',
  //   field: 'inspFirstTime',
  //   minWidth: 160
  // },
  // {
  //   title: '上次执行时间',
  //   field: 'inspLastTime',
  //   minWidth: 160
  // },
  // {
  //   title: '下次执行时间',
  //   field: 'inspNextTime',
  //   minWidth: 160
  // },
  {
    title: '创建时间',
    field: 'createTime',
@@ -169,75 +169,75 @@
    fieldName: 'inspName',
    label: '点检项'
  },
  {
    component: 'RadioGroup',
    componentProps: {
      buttonStyle: 'solid',
      options: getDictOptions(DictEnum.EIMS_INSPECT_TYPE),
      optionType: 'button'
    },
    fieldName: 'inspType',
    defaultValue: '1',
    label: '点检类型'
  },
  // {
  //   component: 'RadioGroup',
  //   componentProps: {
  //     buttonStyle: 'solid',
  //     options: getDictOptions(DictEnum.EIMS_INSPECT_TYPE),
  //     optionType: 'button'
  //   },
  //   fieldName: 'inspType',
  //   defaultValue: '1',
  //   label: '点检类型'
  // },
  {
    component: 'Input',
    fieldName: 'inspDesc',
    label: '点检说明'
  },
  {
    component: 'InputNumber',
    fieldName: 'inspCycle',
    label: '点检周期',
    formItemClass: 'col-span-1',
    componentProps: {
      min: 1
    }
  },
  {
    component: 'Select',
    componentProps: {
      getPopupContainer,
      options: getDictOptions(DictEnum.MAINT_CYCLE_UNIT)
    },
    fieldName: 'inspCycleUnit',
    formItemClass: 'col-span-1 w-[80px]',
    labelWidth: 0,
    label: ''
  },
  {
    component: 'Select',
    componentProps: {
      getPopupContainer,
      options: getDictOptions(DictEnum.MAINT_TIME_RULE)
    },
    fieldName: 'inspRule',
    label: '点检规则 '
  },
  {
    component: 'Input',
    fieldName: 'inspUser',
    label: '用户id',
    dependencies: {
      show: () => false,
      triggerFields: ['']
    }
  },
  {
    component: 'Input',
    fieldName: 'inspUserName',
    label: '点检人'
  },
  {
    component: 'Input',
    fieldName: 'inspDept',
    label: '部门id',
    dependencies: {
      show: () => false,
      triggerFields: ['']
    }
  },
  // {
  //   component: 'InputNumber',
  //   fieldName: 'inspCycle',
  //   label: '点检周期',
  //   formItemClass: 'col-span-1',
  //   componentProps: {
  //     min: 1
  //   }
  // },
  // {
  //   component: 'Select',
  //   componentProps: {
  //     getPopupContainer,
  //     options: getDictOptions(DictEnum.MAINT_CYCLE_UNIT)
  //   },
  //   fieldName: 'inspCycleUnit',
  //   formItemClass: 'col-span-1 w-[80px]',
  //   labelWidth: 0,
  //   label: ''
  // },
  //
  // {
  //   component: 'Select',
  //   componentProps: {
  //     getPopupContainer,
  //     options: getDictOptions(DictEnum.MAINT_TIME_RULE)
  //   },
  //   fieldName: 'inspRule',
  //   label: '点检规则 '
  // },
  // {
  //   component: 'Input',
  //   fieldName: 'inspUser',
  //   label: '用户id',
  //   dependencies: {
  //     show: () => false,
  //     triggerFields: ['']
  //   }
  // },
  // {
  //   component: 'Input',
  //   fieldName: 'inspUserName',
  //   label: '点检人'
  // },
  // {
  //   component: 'Input',
  //   fieldName: 'inspDept',
  //   label: '部门id',
  //   dependencies: {
  //     show: () => false,
  //     triggerFields: ['']
  //   }
  // },
  {
    component: 'RadioGroup',
    componentProps: {
@@ -249,39 +249,39 @@
    defaultValue: '0',
    label: '状态'
  },
  {
    component: 'DatePicker',
    componentProps: {
      format: 'YYYY-MM-DD',
      showTime: false,
      valueFormat: 'YYYY-MM-DD',
      getPopupContainer
    },
    fieldName: 'inspFirstTime',
    label: '首次点检时间'
  },
  {
    component: 'DatePicker',
    componentProps: {
      format: 'YYYY-MM-DD',
      showTime: false,
      valueFormat: 'YYYY-MM-DD',
      getPopupContainer
    },
    fieldName: 'inspLastTime',
    label: '上次点检时间'
  },
  {
    component: 'DatePicker',
    componentProps: {
      format: 'YYYY-MM-DD',
      showTime: false,
      valueFormat: 'YYYY-MM-DD',
      getPopupContainer
    },
    fieldName: 'inspNextTime',
    label: '下次点检时间',
  },
  // {
  //   component: 'DatePicker',
  //   componentProps: {
  //     format: 'YYYY-MM-DD',
  //     showTime: false,
  //     valueFormat: 'YYYY-MM-DD',
  //     getPopupContainer
  //   },
  //   fieldName: 'inspFirstTime',
  //   label: '首次点检时间'
  // },
  // {
  //   component: 'DatePicker',
  //   componentProps: {
  //     format: 'YYYY-MM-DD',
  //     showTime: false,
  //     valueFormat: 'YYYY-MM-DD',
  //     getPopupContainer
  //   },
  //   fieldName: 'inspLastTime',
  //   label: '上次点检时间'
  // },
  // {
  //   component: 'DatePicker',
  //   componentProps: {
  //     format: 'YYYY-MM-DD',
  //     showTime: false,
  //     valueFormat: 'YYYY-MM-DD',
  //     getPopupContainer
  //   },
  //   fieldName: 'inspNextTime',
  //   label: '下次点检时间',
  // },
  {
    component: 'Textarea',
    fieldName: 'remark',