performance.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import request from '@/utils/request'
  2. // 查询绩效列表
  3. export function listPerformance(query) {
  4. return request({
  5. url: '/ehr/pm/performance/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询绩效详细
  11. export function getPerformance(id) {
  12. return request({
  13. url: '/ehr/pm/performance/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 复制绩效明细
  18. export function copyItem(data) {
  19. return request({
  20. url: '/ehr/pm/performance/copyItem',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 填写完成
  26. export function fillinFinish(data) {
  27. return request({
  28. url: '/ehr/pm/performance/fillinFinish',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 自评完成
  34. export function selfestimate(data) {
  35. return request({
  36. url: '/ehr/pm/performance/selfestimate',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 查询当月绩效id
  42. export function getCurrentMonthId() {
  43. return request({
  44. url: '/ehr/pm/performance/getCurrentMonthId',
  45. method: 'get'
  46. })
  47. }
  48. // 查询下月绩效id
  49. export function getNextMonthId() {
  50. return request({
  51. url: '/ehr/pm/performance/getNextMonthId',
  52. method: 'get'
  53. })
  54. }
  55. // 删除绩效
  56. export function delPerformance(id) {
  57. return request({
  58. url: '/ehr/pm/performance/' + id,
  59. method: 'delete'
  60. })
  61. }
  62. // 绩效阶段调整
  63. export function editStage(data) {
  64. return request({
  65. url: '/ehr/pm/performance/editStage',
  66. method: 'post',
  67. data: data
  68. })
  69. }