import {
	WeaTools
} from 'ecCom';


export const getHasRight = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getHasRight', 'POST', params);
}

export const getTemplateCondition = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getTemplateCondition', 'GET', params);
}

export const getTabs = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getTabs', 'GET', params);
}

export const getRightMenu = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getRightMenu', 'GET', params);
}

export const getDispatchForm = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getDispatchForm', 'GET', params);
}

export const dispatch = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/dispatch', 'POST', params);
}

export const getTemplateList = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getTemplateList', 'GET', params);
}

export const getTemplateForm = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getTemplateForm', 'GET', params);
}

export const saveTemplateForm = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/saveTemplateForm', 'POST', params);
}

export const saveDefaultTemplate = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/saveDefaultTemplate', 'POST', params);
}

export const deleteTemplate = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/deleteTemplate', 'POST', params);
}

export const getRecordCondition = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getRecordCondition', 'GET', params);
}

export const getRecordList = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getRecordList', 'GET', params);
}

export const getRecordDetailCondition = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getRecordDetailCondition', 'GET', params);
}

export const getRecordDetailList = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/getRecordDetailList', 'GET', params);
}

export const getImportProcessLog = (params) => {
	return WeaTools.callApi('/api/hrm/importlog/getImportProcessLog', 'GET', params);
}

export const getImportResult = (params) => {
	return WeaTools.callApi('/api/hrm/importlog/getImportResult', 'GET', params);
}

export const delRecordList = (params) => {
	return WeaTools.callApi('/api/hrm/payroll/delRecordList', 'POST', params);
}