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

/**
 * 作废表单
 */
export const invalidatedForm: VbenFormProps = {
  wrapperClass: 'grid-cols-12', // 24栅格,
  commonConfig: {
    formItemClass: 'col-span-12',
    // 所有表单项
    componentProps: {
      class: 'w-full',
    },
  },
  // handleSubmit: onSubmit,
  layout: 'horizontal',
  schema: [
    {
      component: 'Textarea',
      componentProps: {
        placeholder: '请输入作废原因',
      },
      fieldName: 'amount',
      label: '作废原因',
      rules: 'required',
    },
  ],
  showDefaultActions: false,
};
/**
 * 结算表单
 */
export const settlementForm: VbenFormProps = {
  wrapperClass: 'grid-cols-12', // 24栅格,
  commonConfig: {
    formItemClass: 'col-span-12',
    // 所有表单项
    componentProps: {
      class: 'w-full',
    },
  },
  // handleSubmit: onSubmit,
  layout: 'horizontal',
  schema: [
    {
      component: 'Textarea',
      componentProps: {
        placeholder: '请输入作废原因',
      },
      fieldName: 'amount',
      label: '作废原因',
      rules: 'required',
    },
    {
      component: 'Avatar',
      componentProps: {
        placeholder: '请上传转账截图',
      },
      fieldName: 'amount',
      label: '转账截图',
      rules: 'required',
    },
  ],
  showDefaultActions: false,
};
