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

export const formOptions: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'VbenSelect',
      fieldName: 'callback_status',
      label: '回调状态',
      componentProps: {
        allowClear: true,
        placeholder: '全部',
        options: [
          { label: '等待回调', value: 'waiting' },
          { label: '成功', value: 'success' },
          { label: '失败', value: 'failed' },
        ],
      },
    },
    {
      component: 'VbenInput',
      fieldName: 'anchor_date',
      label: '锚定日',
      componentProps: { placeholder: 'YYYY-MM-DD' },
    },
    {
      component: 'VbenInput',
      fieldName: 'buss_id',
      label: '业务ID',
    },
    {
      component: 'VbenInput',
      fieldName: 'batch_id',
      label: '批次ID',
    },
    {
      component: 'VbenInput',
      fieldName: 'register_id',
      label: '挂号ID',
    },
    {
      component: 'VbenInput',
      fieldName: 'prescription_id',
      label: '处方ID',
    },
    {
      component: 'VbenInput',
      fieldName: 'order_id',
      label: '订单ID',
    },
    {
      component: 'VbenInput',
      fieldName: 'prescription_no',
      label: '处方编号',
    },
  ],
  showCollapseButton: true,
  submitButtonOptions: { content: '查询' },
  submitOnChange: false,
  submitOnEnter: true,
};
