import { FormConfig } from "/@/components/PageSearch";
// import { checkTypeOptions, invTypeOptions, statusOptions } from "./_opitons";
import { checkTypeOptions, ticketReturnStatusOptions } from "/@/utils/status";

const searchFormConfig: FormConfig = {
  formItems: [
    {
      field: "status",
      type: "select",
      placeholder: "审核状态",
      options: ticketReturnStatusOptions
    },
    // {
    //   field: "invType",
    //   type: "select",
    //   placeholder: "发票上传方式",
    //   options: invTypeOptions
    // },
    {
      field: "checkApi",
      type: "select",
      placeholder: "发票查验方式",
      options: checkTypeOptions
    },
    {
      field: "payNo",
      type: "input",
      placeholder: "对账编码"
    },
    {
      field: "hpNo",
      type: "input",
      placeholder: "对账申请编码"
    },
    {
      field: "supplierNo",
      type: "supplier-query"
    },
    {
      field: "apply_name",
      type: "input",
      placeholder: "申请人"
    },
    {
      field: "create_timer",
      type: "date_picker",
      otherOptions: {
        type: "daterange",
        startProp: "start",
        endProp: "end",
        startPlaceholder: "新建起始时间",
        endPlaceholder: "新建结束时间"
      }
    }
    // ,
    // {
    //   field: "open_timer",
    //   type: "date_picker",
    //   otherOptions: {
    //     type: "daterange",
    //     startProp: "open_start",
    //     endProp: "open_end",
    //     startPlaceholder: "开票起始日期",
    //     endPlaceholder: "开票结束日期"
    //   }
    // }
  ]
};

export default searchFormConfig;
