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

export const formOptions: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'VbenInput',
      fieldName: 'anchor_date',
      label: '锚定日',
      componentProps: { placeholder: 'YYYY-MM-DD' },
    },
    {
      component: 'VbenSelect',
      fieldName: 'step',
      label: '接口类型',
      componentProps: {
        allowClear: true,
        options: [
          { label: '咨询', value: 'consult' },
          { label: '复诊', value: 'referral' },
          { label: '处方', value: 'recipe' },
          { label: '核销', value: 'verification' },
          { label: '全部', value: 'all' },
        ],
      },
    },
    {
      component: 'VbenInput',
      fieldName: 'batch_id',
      label: '批次ID',
    },
  ],
  showCollapseButton: true,
  submitButtonOptions: { content: '查询' },
  submitOnChange: false,
  submitOnEnter: true,
};
