import { FormConfig } from "/@/components/PageSearch";
export const USE_STATUS = [
  {
    value: "0",
    label: "未对账"
  },
  {
    value: "1",
    label: "参与对账"
  },
  {
    value: "2",
    label: "参与核销对账"
  }
];

export const inv_open_status = [
  {
    value: "1",
    label: "未开票"
  },
  {
    value: "2",
    label: "部分开票"
  },
  {
    value: "3",
    label: "已开票"
  }
];

export const retrun_status = [
  {
    value: "1",
    label: "未回款"
  },
  {
    value: "2",
    label: "部分回款"
  },
  {
    value: "3",
    label: "已回款"
  }
];

export const good_type = [
  {
    value: "1",
    label: "库存品"
  },
  {
    value: "2",
    label: "非库存"
  },
  {
    value: "3",
    label: "咨询"
  }
];

export const good_source = [
  {
    value: "1",
    label: "直接下单"
  },
  {
    value: "2",
    label: "咨询"
  },
  {
    value: "3",
    label: "项目"
  },
  {
    value: "4",
    label: "平台"
  },
  {
    value: "5",
    label: "有赞"
  },
  {
    value: "6",
    label: "售后补换货"
  }
];

export const seend_type = [
  {
    value: "1",
    label: "未发货"
  },
  {
    value: "2",
    label: "部分发货"
  },
  {
    value: "3",
    label: "已发货"
  }
];

export const cat_status = [
  {
    value: "0",
    label: "未设置"
  },
  {
    value: "1",
    label: "已设置"
  }
];

const searchFormConfig: FormConfig = {
  colLayout: { span: 8 },
  formItems: [
    {
      field: "order_timer",
      type: "date_picker",
      otherOptions: {
        type: "daterange",
        startPlaceholder: "下单起始时间",
        endPlaceholder: "下单结束时间"
      }
    },
    {
      field: "sequenceNo",
      type: "input",
      placeholder: "销售订单编号"
    },
    {
      field: "sequenceNo",
      type: "input",
      placeholder: "销售订单编号"
    },
    {
      field: "customer",
      type: "input",
      placeholder: "客户名称"
    }
  ]
};

export default searchFormConfig;
