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

export const formOptions3: VbenFormProps = {
  collapsed: false,
  schema: [
    {
      component: 'Switch',
      componentProps: {
        class: 'w-auto',
      },
      defaultValue: true,
      fieldName: 'merge_by_order',
      label: '同订单合并',
    },
    {
      component: 'VbenInput',
      componentProps: {
        placeholder: '输入订单号',
      },
      defaultValue: '',
      fieldName: 'order_no',
      label: '订单号',
    },
    {
      component: 'VbenSelect',
      componentProps: {
        placeholder: '选择费用类型',
        options: [
          { label: '药品费用', value: 1 },
          { label: '挂号费用', value: 2 },
          { label: '快递费用', value: 3 },
          { label: '代煎费用', value: 4 },
          { label: '加工费用', value: 5 },
          { label: '诊疗费用', value: 6 },
        ],
      },
      defaultValue: '',
      fieldName: 'fee_type',
      label: '费用类型',
    },
  ],
  showCollapseButton: true,
  submitButtonOptions: {
    content: '查询',
  },
  submitOnChange: true,
  submitOnEnter: false,
};
