feat(attendance): 新增考勤记录表导出功能
- 在前端API中添加exportAttendanceReport方法用于导出考勤记录 - 在AttendanceRecordsController中添加exportReport接口支持考勤表导出 - 在AttendanceRecordsServiceImpl中实现完整的考勤记录表Excel导出逻辑 - 添加员工分组、按日期汇总打卡时间的业务处理 - 创建多种Excel样式包括标题、表头、日期列和明细行样式 - 在前端页面中新增导出按钮和导出参数设置对话框 - 实现导出前确认同步状态的交互逻辑 - 支持按工号、姓名、部门筛选条件进行考勤表导出
This commit is contained in:
@@ -56,3 +56,13 @@ export function syncRecords({ starttime, endtime }) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 导出考勤记录表
|
||||
export function exportAttendanceReport(params) {
|
||||
return request({
|
||||
url: '/wms/attendanceRecords/exportReport',
|
||||
method: 'post',
|
||||
params: params,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user