Blame view

antis-ncc-admin/src/api/extend/attendanceRecord.js 2.47 KB
f075068f   “wangming”   对考勤这块功能进行开发
1
2
  import request from '@/utils/request'
  
25c153f3   “wangming”   Update database c...
3
  // 获取月度考勤记录矩阵
f075068f   “wangming”   对考勤这块功能进行开发
4
5
6
7
8
9
10
11
  export function getAttendanceMonthReport(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/MonthReport',
      method: 'get',
      data
    })
  }
  
25c153f3   “wangming”   Update database c...
12
13
14
15
16
17
18
19
20
21
22
  // 导出月度考勤明细(与列表相同筛选条件,全量不分页)
  export function exportAttendanceMonthReport(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/MonthReportExport',
      method: 'get',
      data,
      responseType: 'blob'
    })
  }
  
  // 提交考勤打卡
f075068f   “wangming”   对考勤这块功能进行开发
23
24
25
26
27
28
29
30
  export function submitAttendancePunch(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/Punch',
      method: 'post',
      data
    })
  }
  
25c153f3   “wangming”   Update database c...
31
  // 获取考勤记录详情
f075068f   “wangming”   对考勤这块功能进行开发
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  export function getAttendanceRecordDetail(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/Detail',
      method: 'get',
      data
    })
  }
  
  // 后台补卡
  export function supplementAttendanceRecord(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/Supplement',
      method: 'post',
      data
    })
  }
  
25c153f3   “wangming”   Update database c...
49
50
51
52
53
54
55
56
57
  // 销假(按单日考勤记录维度修正)
  export function cancelAttendanceLeave(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/CancelLeave',
      method: 'post',
      data
    })
  }
  
ed7c85aa   “wangming”   Remove deprecated...
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  // 取消流程补卡(回退流程写入的打卡,并记通用操作日志)
  export function cancelAttendanceWorkflowSupplement(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/CancelWorkflowSupplement',
      method: 'post',
      data
    })
  }
  
  // 历史缺卡补全(含今日之前无打卡修正为缺卡;可选补 INSERT 无考勤行,供定时任务调用)
  export function backfillAttendanceAbsentStatusForPastDays(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/BackfillAbsentStatusForPastDays',
      method: 'post',
      data: data || {}
    })
  }
  
64d7bd4d   “wangming”   Implement leave c...
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
  // 销假流程:可选考勤行(当前用户近期请假/病假)
  export function getLeaveCancelCandidates(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/LeaveCancelCandidates',
      method: 'get',
      data: data || {}
    })
  }
  
  // 补卡流程:近 3 个自然日可补卡候选(不含当日)
  export function getPunchApplyCandidates(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/PunchApplyCandidates',
      method: 'get',
      data: data || {}
    })
  }
  
f075068f   “wangming”   对考勤这块功能进行开发
94
95
96
97
98
99
100
101
  // 模拟新增考勤记录
  export function mockCreateAttendanceRecord(data) {
    return request({
      url: '/api/Extend/LqAttendanceRecord/MockCreate',
      method: 'post',
      data
    })
  }