import { FormConfig } from "/@/components/PageSearch";
import { orderTypeCgOptions, purchPayStatusOptions } from "/@/utils/status";

const searchFormConfig: FormConfig = {
  formItems: [
    {
      field: "timer",
      type: "date_picker",
      otherOptions: {
        type: "daterange",
        startProp: "startTime",
        endProp: "endTime",
        startPlaceholder: "开始日期",
        endPlaceholder: "结束日期"
      }
    },
    {
      field: "status",
      type: "select",
      placeholder: "审核状态",
      options: purchPayStatusOptions
    },
    {
      field: "supplierNo",
      type: "supplier-query"
    },

    {
      field: "dzNo",
      type: "input",
      placeholder: "对账付款编码"
    },
    {
      field: "payNo",
      type: "input",
      placeholder: "对账编码"
    },
    {
      field: "is_comon",
      type: "select",
      placeholder: "业务类型",
      span: 4,
      options: orderTypeCgOptions
    }
  ]
};

export default searchFormConfig;
