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

const searchFormConfig: FormConfig = {
  formItems: [
    {
      field: "create_timer",
      type: "date_picker",
      otherOptions: {
        type: "daterange",
        startProp: "start",
        endProp: "end",
        startPlaceholder: "新建起始时间",
        endPlaceholder: "新建结束时间"
      }
    },
    {
      field: "status",
      type: "select",
      placeholder: "审核状态",
      options: invoiceStatusOptions
    },
    {
      field: 'invoice_number',
      placeholder: '发票号码',
      type: 'input'
    },
    {
      field: "supplierNo",
      type: "supplier-query"
    },
    // {
    //   field: "checkApi",
    //   type: "select",
    //   placeholder: "发票查验方式",
    //   options: checkTypeOptions
    // },
    // {
    //   field: "apply_name",
    //   type: "input",
    //   placeholder: "申请人"
    // },
    // {
    //   field: "is_comon",
    //   type: "select",
    //   placeholder: "业务类型",
    //   span: 4,
    //   options: orderTypeCgOptions
    // },
    // ,
    // {
    //   field: "open_timer",
    //   type: "date_picker",
    //   otherOptions: {
    //     type: "daterange",
    //     startProp: "open_start",
    //     endProp: "open_end",
    //     startPlaceholder: "开票起始日期",
    //     endPlaceholder: "开票结束日期"
    //   }
    // }
  ]
};

export default searchFormConfig;
