config.ts 650 Bytes
import { FormSchema } from '/@/components/Form';
import { useI18n } from '/@/hooks/web/useI18n';

export enum FormFieldsEnum {
  CODE = 'code',
  CATEGORY_NAME = 'reason',
}

const { t } = useI18n();

export const formSchema: FormSchema[] = [
  {
    field: FormFieldsEnum.CODE,
    label: t('equipment.errorReason.nameCode'),
    component: 'Input',
    componentProps() {
      return {
        disabled: 'disabled',
      }
    }
  },
  {
    field: FormFieldsEnum.CATEGORY_NAME,
    label: t('application.api.text.categoryName'),
    component: 'Input',
    componentProps() {
      return {
        disabled: 'disabled',
      };
    },
  },
];