import type { FormSchemaGetter } from '#/adapter/form';

import { DictEnum } from '@vben/constants';

import { getDictOptions } from '#/utils/dict';

export const formSchema: FormSchemaGetter = () => [
  {
    component: 'Select',
    componentProps: {
      options: getDictOptions(DictEnum.SHIFT_SCHEDULING_TYPE),
    },
    fieldName: 'schedulingType',
    label: '排班方式',
    placeholder: '请选择排班方式',
  },
  {
    component: 'Input',
    fieldName: 'peakHours',
    label: '油站高峰时段',
    placeholder: '请输入油站高峰时段',
  },
  {
    component: 'Input',
    componentProps: {
      type: 'textarea',
      rows: 4,
    },
    fieldName: 'specialNotes',
    label: '特殊备注',
    placeholder: '请输入特殊备注',
  },
];
