taskReport.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. import service from '../utils/js/request'
  2. const taskReport = {
  3. getDayReports: function(reportDate, userId) {
  4. return service({
  5. url: '/personDayReport/getReportsByReportDateAndUser',
  6. method: 'POST',
  7. data: {
  8. reportDate: reportDate,
  9. userId: userId
  10. }
  11. })
  12. },
  13. getReportObject: function() {
  14. return service({
  15. url: '/personDayReport/getReportObject',
  16. method: 'GET',
  17. })
  18. },
  19. getReportTasks: function(param) {
  20. return service({
  21. url: '/personDayReport/getReportTasks/' + param,
  22. method: 'GET'
  23. })
  24. },
  25. personDayReportAdd: function(param) {
  26. return service({
  27. url: "/personDayReport/add",
  28. method: "POST",
  29. data: param
  30. })
  31. },
  32. personDayReportEdit: function(param) {
  33. return service({
  34. url: "/personDayReport/edit",
  35. method: "POST",
  36. data: param
  37. })
  38. },
  39. personDayReportDelete: function(param) {
  40. return service({
  41. url: '/personDayReport/delete',
  42. method: 'POST',
  43. data: param
  44. })
  45. },
  46. getReportFormData: function(param) {
  47. return service({
  48. url: '/personWeekReport/getTaskReportFormData',
  49. method: 'POST',
  50. data: param
  51. })
  52. },
  53. monthReportAdd: function(param) {
  54. return service({
  55. url: '/personWeekReport/reportAdd',
  56. method: 'POST',
  57. data: param
  58. })
  59. },
  60. monthReportEdit: function(param) {
  61. return service({
  62. url: '/personWeekReport/reportEdit',
  63. method: 'POST',
  64. data: param
  65. })
  66. },
  67. getEmpTree:function(){
  68. return service({
  69. url:"/team/getEmpTreeData",
  70. method:"GET"
  71. })
  72. },
  73. getPersonReportDetail:function(param){
  74. return service({
  75. url:"/personDayReport/getPersonReportDetail",
  76. method:"POST",
  77. data:param
  78. })
  79. },
  80. getOverTime:function(param){
  81. return service({
  82. url:"/personDayReport/getOverTime",
  83. method:"POST",
  84. data:param
  85. })
  86. },
  87. getLeaveTime:function(param){
  88. return service({
  89. url:"/personDayReport/getLeaveTime",
  90. method:"POST",
  91. data:param
  92. })
  93. }
  94. }
  95. export default taskReport