添加考勤菜单
This commit is contained in:
@@ -112,3 +112,47 @@ export function syncUsers() {
|
||||
method: "post"
|
||||
});
|
||||
}
|
||||
|
||||
// 获取综合部考勤列表
|
||||
export function getGeneralAttendanceList(params) {
|
||||
return service({
|
||||
url: "/performance/attendance/general/list",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
// 修改考勤详情
|
||||
export function updateAttendanceDetail(data) {
|
||||
return service({
|
||||
url: "/performance/attendance/detail",
|
||||
method: "PUT",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 审批考勤
|
||||
export function approveAttendance(data) {
|
||||
return service({
|
||||
url: "/performance/attendance/general/approve",
|
||||
method: "PUT",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 获取异常考勤详情
|
||||
export const getAbnormalAttendanceDetail = (userId, year, month) => {
|
||||
return service({
|
||||
url: `/abnormal/attendance/detail/${userId}/${year}/${month}`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
// 修改异常考勤
|
||||
export function updateAbnormalAttendance(data) {
|
||||
return service({
|
||||
url: "/performance/attendance/detail",
|
||||
method: "PUT",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user