salary.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. import http from '@/utils/request'
  2. // 薪酬计算
  3. // 计算配置 - 分页查询
  4. export function getConfigPage (data) {
  5. return http.get('/configurations/page', data)
  6. }
  7. // 计算配置 - 获取分类字典
  8. export function getConfigCateGories (data) {
  9. return http.get('/configurations/categories', data)
  10. }
  11. // 计算配置 - 删除配置
  12. export function deleteConfig (id) {
  13. return http.delete(`/configurations/${id}`)
  14. }
  15. // 计算配置 - 查新配置
  16. export function getConfig (id) {
  17. return http.get(`/configurations/${id}`)
  18. }
  19. // 计算配置 - 新增配置
  20. export function addConfig (param) {
  21. return http.post('/configurations', param)
  22. }
  23. // 计算配置 - 更新配置
  24. export function updateConfig (param) {
  25. return http.put('/configurations', param)
  26. }
  27. // 薪酬对比 - 钻取查询
  28. export function getComparisonByEmployee (param) {
  29. return http.post('/employee/performance/record/page', param)
  30. }
  31. // 薪酬对比 - 对比员工清单
  32. export function getComparisonPage (param) {
  33. return http.post('/employee/performance/record/employee/page', param)
  34. }
  35. // 薪酬对比 - 上传手工模版
  36. export function uploadComparisonTemplate (param) {
  37. return http.upload('/employee/performance/record/manual/upload', param)
  38. }
  39. // 薪酬对比 - 下载手工模版
  40. export function downloadComparisonTemplate () {
  41. return http.download('/employee/performance/record/download/template')
  42. }
  43. // 薪酬对比 - 查看已确认绩效
  44. export function getComparisonConfirm (data) {
  45. return http.post('/employee/performance/confirmation/page', data)
  46. }
  47. // 薪酬对比 - 确认绩效
  48. export function confirmComparisonVersion (data) {
  49. return http.post('/employee/performance/confirmation/save', data)
  50. }
  51. // 工资单 - 分页查询
  52. export function getPayrollPage (data) {
  53. return http.post('/employee/payroll/page', data)
  54. }
  55. // 工资单 - 导出报表
  56. export function downloadPayroll (data) {
  57. return http.download('/employee/payroll/download/export', data)
  58. }
  59. // 业绩分配 列表查询
  60. export function getAllocationPage (data) {
  61. return http.post('/employee/performance/page', data)
  62. }
  63. // 业绩分配 绩效分配
  64. export function saveAllocationGrant (data) {
  65. return http.post('/employee/performance/grant', data)
  66. }
  67. // 业绩分配 员工类型字典
  68. export function getAllocationEmployeeCategory (data) {
  69. return http.post('/employee/performance/category/dict', data)
  70. }
  71. // 业绩分配 检查审批状态
  72. export function checkAllocationSubmitStatus (data) {
  73. return http.post('/employee/performance/confirmation/check/submit', data)
  74. }
  75. // 业绩分配 绩效分配统计
  76. export function getAllocationStatistics (data) {
  77. return http.post('/employee/performance/grant/statistics', data)
  78. }
  79. // 业绩分配 绩效分配统计
  80. export function saveAllocation (data) {
  81. return http.post('/employee/performance/submit/grant', data)
  82. }
  83. // 绩效方案 分页查询
  84. export function getSolutionPage (data) {
  85. return http.post('/performance/solution/page', data)
  86. }
  87. // 绩效方案 删除
  88. export function deleteSolution (data) {
  89. return http.post('/performance/solution/delete', data)
  90. }
  91. // 绩效方案 详情
  92. export function getSolutionDetails (data) {
  93. return http.post('/performance/solution/detail', data)
  94. }
  95. // 绩效方案 保存
  96. export function saveSolution (data) {
  97. return http.post('/performance/solution/save', data)
  98. }