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

export const formOptions2: VbenFormProps = {
  // 默认展开
  collapsed: false,
  schema: [
    // {
    //   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: '费用类型',
    },
    {
      component: 'VbenSelect',
      componentProps: {
        placeholder: '选择结算状态',
        options: [
          {
            label: '待结算',
            value: 0,
          },
          {
            label: '已结算',
            value: 1,
          },
          {
            label: '已取消',
            value: 2,
          },
        ],
      },
      defaultValue: '',
      fieldName: 'status',
      label: '状态',
    },
  ],
  // 控制表单是否显示折叠按钮
  showCollapseButton: true,
  submitButtonOptions: {
    content: '查询',
  },
  // 是否在字段值改变时提交表单
  submitOnChange: true,
  // 按下回车时是否提交表单
  submitOnEnter: false,
};
