salary.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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 getComparisonSchemeList (data) {
  53. return http.post('/employee/performance/record/scheme/page', data)
  54. }
  55. // 薪酬对比 - 方案字典
  56. export function getComparisonSchemeDict (data) {
  57. return http.post('/employee/performance/record/scheme/dict', data)
  58. }
  59. // 工资单 - 分页查询
  60. export function getPayrollPage (data) {
  61. return http.post('/employee/payroll/page', data)
  62. }
  63. // 工资单 - 导出报表
  64. export function downloadPayroll (data) {
  65. return http.download('/employee/payroll/download/export', data)
  66. }
  67. // 绩效方案 分页查询
  68. export function getSolutionPage (data) {
  69. return http.post('/performance/solution/page', data)
  70. }
  71. // 绩效方案 删除
  72. export function deleteSolution (data) {
  73. return http.post('/performance/solution/delete', data)
  74. }
  75. // 绩效方案 详情
  76. export function getSolutionDetails (data) {
  77. return http.post('/performance/solution/detail', data)
  78. }
  79. // 绩效方案 保存
  80. export function saveSolution (data) {
  81. return http.post('/performance/solution/save', data)
  82. }
  83. // 绩效计算 模板
  84. export function getSalaryCalculateTemplate (data) {
  85. return http.get('/performance/file/tmplate/lists', data)
  86. }
  87. // 绩效计算 绩效文件上传(批量)
  88. export function uploadSalaryCalculateFiles (data, options) {
  89. return http.upload('/performance/file/upload', data, options)
  90. }
  91. // 绩效计算 绩效文件上传历史
  92. export function getSalaryCalculateFiles (data) {
  93. return http.post('/performance/file/list', data)
  94. }
  95. // 固定薪资 薪酬级别列表
  96. export function getSalaryFixedLevelList () {
  97. return http.post('/salary/level/manage/list')
  98. }
  99. // 固定薪资 上传
  100. export function uploadSalaryFixedLevel (data) {
  101. return http.upload('/salary/level/manage/upload', data)
  102. }
  103. // 固定薪资 下载模板
  104. export function downloadSalaryFixedLevel (data) {
  105. return http.download('/salary/level/manage/tmplate/export', data)
  106. }
  107. // 固定薪资 导出数据
  108. export function exportSalaryFixedLevel (data) {
  109. return http.download('/salary/level/manage/download/export', data)
  110. }
  111. // 固定薪资 基础薪资
  112. export function getSalaryFixedList (data) {
  113. return http.post('/digitizationData/employee/salary/page', data)
  114. }
  115. // 固定薪资 基础薪资导出
  116. export function exportSalaryFixedList (data) {
  117. return http.download('/digitizationData/employee/basic/salary/download/export', data)
  118. }
  119. // 薪酬等级字典
  120. export function getSalaryLevelDict () {
  121. return http.post('/salary/level/manage/dict')
  122. }
  123. // 固定工资统计分析 机构固定薪资趋势图
  124. export function getSalaryFixedStatistics (data) {
  125. return http.post('/organization/basic/salary/month/trend', data)
  126. }
  127. // 固定工资统计分析 员工固定薪资趋势图
  128. export function getSalaryFixedEmployeeStatistics (data) {
  129. return http.post('/employee/basic/salary/month/trend', data)
  130. }
  131. // 客户分润认领
  132. export function getCustomerProfitSharingClaim (data) {
  133. return http.post('/customer/performance/customer/page', data)
  134. }