import { status_options } from "./configs";
import { FormConfig } from "/@/components/PageSearch";

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: status_options
    },
    {
      type: "range",
      field: "gold",
      otherOptions: {
        startProp: "total_lower",
        endProp: "total_upper",
        startPlaceholder: "收入起始金额",
        endPlaceholder: "收入结束金额"
      }
    },
    {
      field: "tradNo",
      type: "input",
      placeholder: "资金编码"
    },

    {
      type: "input",
      field: "bank",
      placeholder: "交易银行"
    },
    {
      type: "input",
      field: "name",
      placeholder: "付款单位名称"
    }
  ]
};

export default searchFormConfig;
