import { FormConfig } from "/@/components/PageSearch";

const searchFormConfig: FormConfig = {
  formItems: [
    {
      field: "timer",
      type: "date_picker",
      otherOptions: {
        type: "daterange",
        startProp: "starttime",
        endProp: "endtime",
        startPlaceholder: "订单生成时间起始",
        endPlaceholder: "订单生成时间结束"
      }
    },
    {
      field: "group",
      type_field: "group_type",
      type: "input_group",
      otherOptions: {
        inputGroupOptions: [
          { value: "qrdNo", label: "销售订单编码" },
          { value: "cgdNo", label: "采购单编码" },
          { value: "sale_name", label: "销售员" },
          { value: "cgd_saler", label: "采购员" }
        ]
      }
    }
  ]
};

export default searchFormConfig;
