record.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import request from '@/utils/request'
  2. import { parseStrEmpty } from "@/utils/ruoyi";
  3. // 查询研发打卡日志列表
  4. export function listRecord(query) {
  5. return request({
  6. url: '/api/project/listRecord',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11. // 批量审核
  12. export function batchExamineRecord(data) {
  13. return request({
  14. url: '/api/project/batchExamineRecord',
  15. method: 'post',
  16. data: data
  17. })
  18. }
  19. // 导入考勤数据
  20. export function importUserClock(data) {
  21. return request({
  22. url: '/system/user/importUserClock',
  23. method: 'post',
  24. data: data
  25. })
  26. }
  27. // 用户打卡数据列表
  28. export function selectUserClock(query) {
  29. return request({
  30. url: '/system/user/selectUserClock',
  31. method: 'get',
  32. params: query
  33. })
  34. }
  35. // 批量更新考勤数据
  36. export function updateAllUserClock(query) {
  37. return request({
  38. url: '/system/user/updateAllUserClock',
  39. method: 'post',
  40. params: query
  41. })
  42. }
  43. // 打卡数据匹配 (匹配工时)
  44. export function mateUserRecord(query) {
  45. return request({
  46. url: '/api/project/mateUserRecord',
  47. method: 'post',
  48. params: query
  49. })
  50. }
  51. // 考勤数据合并(核对)
  52. export function userRecordMerge(data) {
  53. return request({
  54. url: '/system/user/userRecordMerge',
  55. method: 'post',
  56. data: data
  57. })
  58. }
  59. // 修改单条考勤核对数据
  60. export function updateUserRecord(data) {
  61. return request({
  62. url: '/system/user/updateUserRecord',
  63. method: 'post',
  64. data: data
  65. })
  66. }
  67. // 多打卡数据列表
  68. export function UserClockDetails(query) {
  69. return request({
  70. url: '/system/user/UserClockDetails',
  71. method: 'get',
  72. params: query
  73. })
  74. }
  75. // 修改考勤对应多打卡
  76. export function updateUserClockDetails(data) {
  77. return request({
  78. url: '/system/user/updateUserClockDetails',
  79. method: 'post',
  80. data: data
  81. })
  82. }
  83. // 项目日志上链确权
  84. export function saveProjectStaffRecordTianhe(query) {
  85. return request({
  86. url: '/api/project/saveProjectStaffRecordTianhe',
  87. method: 'get',
  88. params: query
  89. })
  90. }