import { FormConfig } from "/@/components/PageSearch";
import { useUserStore } from "/@/store/modules/user";
import dayjs from "dayjs";

const current = dayjs(new Date()).format("YYYY-MM");

const searchFormConfig: FormConfig = {
  formItems: [
    {
      field: "date",
      type: "date_picker",
      trigger: "change",
      defaultValue: current,
      label: '下单月份:',
      otherOptions: {
        type: "month",
        valueFormat: "YYYY-MM",
        format: "YYYY-MM",
        clearable: false,
      }
    },
    {
      field: "depart_id",
      type: "depart-query",
      trigger: "change"
    }
  ]
};

export default searchFormConfig;
