liuxiaolong
2019-05-06 770c069996e1d2979c1170c1639c18b02d07e72f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import { httpPOST, httpGET } from './common/httpFetch'
 
/**
 * @description 查询多人某月考勤记录(考勤报表)
 * @param { string } mouthDate 年-月
 * @param { string } gradeValue 年级
 * @param { string } classValue 班级
 */
export const getMorePersonMouthData = body => {
  return httpPOST('data/api-a/att/morequery', {
    body
  })
}
/**
 * @description 查询单人某月考勤记录
 * @param { string } mouthDate 年-月
 * @param { string } personId 查询人id
 */
export const getPersonMouthData = body => {
  return httpPOST('data/api-a/att/queryperson', {
    body,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
 
/**
 * @description 查询单人某月考勤记录
 * @param { int } id 人员id
 * @param { string } mouthDate 年-月
 * @param { string } personId 查询人id
 */
export const getPersonById = body => {
  return httpPOST('data/api-a/att/queryPersonById', {
    body,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
 
/**
 * @description 修改某人某天考勤记录
 * @param { string } recordId 考勤记录Id
 * @param { string } mouthDay 年-月-日
 * @param { string } leaveOrRepair leave 请假 repair 补签
 */
export const getEditAttend = body => {
  return httpPOST('data/api-a/att/updateRecord', {
    body,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
 
/**
 * @description 流水记录查询接口
 * @param { string } contentValue 姓名/身份证号/学号/位置
 * @param { string } identity  身份 学生:student,老师:teacher
 * @param { string } gradeValue 年级
 * @param { string } classValue 班级
 * @param { string } startTime 起始时间 2018/10/30
 * @param { string } endTime 结束时间 2018/11/20
 * @param { string } page 页数
 * @param { string } size 每页条数
 */
export const getAttendList = body => {
  return httpPOST('data/api-a/att/queryEsRecord', {
    body,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
 
/**
 * 首页导出搜索记录
 * @param {} body
 */
export const searchExcel = body => {
  return httpGET('data/api-a/att/searchExcel', {
    body,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
 
/**
 * 导出某人单月记录
 * @param {*} body
 */
export const exportMouthExcel = body => {
  return httpGET('data/api-a/att/poiPersonMouuthDataExcel', {
    body,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}