feat(wms/attendance): 优化考勤同步功能,新增月份选择和超时配置

1. 重构syncRecords接口,支持传入开始和结束时间参数并新增60s超时配置
2. 升级考勤同步页面:新增同步弹窗、月份选择器,替换原有基于最后同步时间的同步逻辑
3. 优化搜索表单和详情表单的标签与占位符,调整表单宽度提升可读性
4. 移除无用的最后同步时间查询逻辑
This commit is contained in:
2026-06-01 14:12:06 +08:00
parent 481188f654
commit a0cd885fc7
2 changed files with 96 additions and 63 deletions

View File

@@ -45,12 +45,14 @@ export function delRecords(id) {
}
// 同步考勤记录
export function syncRecords(starttime) {
export function syncRecords({ starttime, endtime }) {
return attendanceRequest({
url: '/sync_attendance',
method: 'post',
timeout: 60000,
data: {
starttime
starttime,
endtime
}
})
}