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

import {
  cg_order_type_options,
  cg_order_source_options,
  cgdStatusOptions,
  sendStatusOptions
} from "/@/utils/status";

const searchFormConfig: FormConfig = {
  formItems: [
    {
      field: "group",
      type_field: "group_type",
      type: "input_group",
      otherOptions: {
        inputGroupOptions: [
          { value: "sequenceNo", label: "采购单编码" },
          { value: "cxCode", label: "采购主单编码" },
          { value: "qrdCode", label: "销售订单编码" },
          { value: "goodNo", label: "商品编码" },
          { value: "goodName", label: "商品名称" },
          { value: "cgder", label: "买入方采购员" }
        ]
      }
    },
    {
      field: "companyNo",
      type: "business-query"
    },
    {
      field: "status",
      type: "select",
      placeholder: "是否对账",
      options: cgdStatusOptions
    },
    {
      field: "sendstatus",
      type: "select",
      placeholder: "状态",
      options: sendStatusOptions
    },
    {
      field: "cgdsource",
      type: "select",
      placeholder: "订单来源",
      options: cg_order_source_options
    },
    {
      field: "cgdtype",
      type: "select",
      placeholder: "商品类型",
      options: cg_order_type_options
    }
  ]
};

export default searchFormConfig;
