import http from '@/utils/request' // 薪酬计算 // 计算配置 - 分页查询 export function getConfigPage (data) { return http.get('/configurations/page', data) } // 计算配置 - 获取分类字典 export function getConfigCateGories (data) { return http.get('/configurations/categories', data) } // 计算配置 - 删除配置 export function deleteConfig (id) { return http.delete(`/configurations/${id}`) } // 计算配置 - 查新配置 export function getConfig (id) { return http.get(`/configurations/${id}`) } // 计算配置 - 新增配置 export function addConfig (param) { return http.post('/configurations', param) } // 计算配置 - 更新配置 export function updateConfig (param) { return http.put('/configurations', param) } // 薪酬对比 - 钻取查询 export function getComparisonByEmployee (param) { return http.post('/employee/performance/record/page', param) } // 薪酬对比 - 对比员工清单 export function getComparisonPage (param) { return http.post('/employee/performance/record/employee/page', param) } // 薪酬对比 - 上传手工模版 export function uploadComparisonTemplate (param) { return http.upload('/employee/performance/record/manual/upload', param) } // 薪酬对比 - 下载手工模版 export function downloadComparisonTemplate () { return http.download('/employee/performance/record/download/template') } // 薪酬对比 - 查看已确认绩效 export function getComparisonConfirm (data) { return http.post('/employee/performance/confirmation/page', data) } // 薪酬对比 - 确认绩效 export function confirmComparisonVersion (data) { return http.post('/employee/performance/confirmation/save', data) } // 工资单 - 分页查询 export function getPayrollPage (data) { return http.post('/employee/payroll/page', data) } // 工资单 - 导出报表 export function downloadPayroll (data) { return http.download('/employee/payroll/download/export', data) }