calculate.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from '@/utils/request'
  2. // 查询绩效核算列表
  3. export function listCalculate(query) {
  4. return request({
  5. url: '/performance/calculate/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询部门绩效核算详细
  11. export function getCalculate(deptId, month) {
  12. return request({
  13. url: '/performance/calculate/' + deptId + '/' + month,
  14. method: 'get'
  15. })
  16. }
  17. // 查询绩效汇总
  18. export function getCalculateSummary(query) {
  19. return request({
  20. url: '/performance/calculate/summary',
  21. method: 'get',
  22. params: query
  23. })
  24. }
  25. // 修改绩效核算比例
  26. export function updateCalculateRatio(ratio) {
  27. return request({
  28. url: '/performance/calculate/ratio',
  29. method: 'put',
  30. data: { ratio }
  31. })
  32. }
  33. // 导出绩效数据
  34. export function exportCalculate(query) {
  35. return request({
  36. url: '/performance/calculate/export',
  37. method: 'get',
  38. params: query
  39. })
  40. }
  41. // 查询绩效统计图表数据
  42. export function getCalculateChart(query) {
  43. return request({
  44. url: '/performance/calculate/chart',
  45. method: 'get',
  46. params: query
  47. })
  48. }