import {
	WeaTools
} from 'ecCom'

export const getSearchCondition = (params = {}) => WeaTools.callApi('/api/kq/report/getSearchCondition', 'POST', { ...params,
	reportType: 'daily'
});

export const getKQReport = (params = {}) => WeaTools.callApi('/api/kq/report/getKQReport', 'POST', { ...params,
	reportType: 'daily'
});

export const getKQReportDetial = (params = {}) => WeaTools.callApi('/api/kq/report/detail/getDailyDetialInfo', 'POST', { ...params,
	reportType: 'daily'
});

export const getKQReportDetialPro = (params = {}) =>
	WeaTools.callApi("/api/kq/report/detail/getKQReportDetail", "POST", {
		...params,
		reportType: "month",
	});


export const exportExcel = (params = {}) => WeaTools.callApi('/api/kq/report/exportExcel', 'POST', { ...params,
	reportType: 'daily'
});

export const getTabs = (params = {}) =>
  WeaTools.callApi("/api/kq/report/detail/getTabs", "POST", params);