feat: 20260809 系统优化 - 全部28项问题修复(P0×6+P1×16+P2×6)
P0: 福利批量参保/离职证明下载防乱码/考勤模板合并Sheet/补卡修改/附件在线查看删除 P1: 分页pageSize修复/离职导出筛选/撤回删除草稿/加班费自动计算/考勤加班汇总/证据链异常详情/制度催办/模板导入Word/社保封顶保底/校验字段提示/职务字段/社保费用明细/弹窗防误关/身份证查重/证明员工下拉/培训批量 P2: 离职流程去重/社保基数覆盖输入/薪税入口改名/添加员工引导/绩效模板清理
This commit is contained in:
@@ -66,6 +66,9 @@ export const employeeApi = {
|
||||
/** 创建员工 */
|
||||
create: (data: Record<string, unknown>) =>
|
||||
post('/employees', data),
|
||||
/** 身份证查重 */
|
||||
checkIdCard: (idCard: string) =>
|
||||
get('/employees/check-id-card', { params: { idCard } }).then(unwrap<{ exists: boolean; employee?: any }>()),
|
||||
/** 更新员工 */
|
||||
update: (id: string, data: Record<string, unknown>) =>
|
||||
put(`/employees/${id}`, data),
|
||||
@@ -120,11 +123,26 @@ export const rosterApi = {
|
||||
expiringContracts: () =>
|
||||
get('/roster/contracts/expiring').then(unwrap<any[]>()),
|
||||
/** 培训记录列表(全员) */
|
||||
trainingList: (params: { page?: number; pageSize?: number; keyword?: string }) =>
|
||||
trainingList: (params: { page?: number; pageSize?: number; keyword?: string; ackStatus?: string }) =>
|
||||
get('/roster/training/list', { params }).then(unwrap<any>()),
|
||||
/** 培训记录催办 */
|
||||
trainingRemind: (recordId: string) =>
|
||||
post(`/roster/training/remind/${recordId}`).then(unwrap<any>()),
|
||||
/** 绩效记录列表(全员) */
|
||||
performanceList: (params: { page?: number; pageSize?: number; keyword?: string }) =>
|
||||
get('/roster/performance/list', { params }).then(unwrap<any>()),
|
||||
/** 绩效模板列表 */
|
||||
performanceTemplates: () =>
|
||||
get('/roster/performance/templates').then(unwrap<any[]>()),
|
||||
/** 创建绩效模板 */
|
||||
createPerformanceTemplate: (data: any) =>
|
||||
post('/roster/performance/templates', data).then(unwrap<any>()),
|
||||
/** 更新绩效模板 */
|
||||
updatePerformanceTemplate: (id: string, data: any) =>
|
||||
put(`/roster/performance/templates/${id}`, data).then(unwrap<any>()),
|
||||
/** 删除绩效模板 */
|
||||
deletePerformanceTemplate: (id: string) =>
|
||||
del(`/roster/performance/templates/${id}`).then(unwrap<any>()),
|
||||
/** 违纪记录列表(全员) */
|
||||
disciplinaryList: (params: { page?: number; pageSize?: number; keyword?: string }) =>
|
||||
get('/roster/disciplinary/list', { params }).then(unwrap<any>()),
|
||||
@@ -447,6 +465,9 @@ export const payrollApi = {
|
||||
/** 批量导入加班工时 */
|
||||
batchImportOvertime: (data: Record<string, unknown>[]) =>
|
||||
post('/payroll/overtime/batch', data),
|
||||
/** 从考勤记录同步加班工时 */
|
||||
syncOvertimeFromAttendance: (month: string) =>
|
||||
post('/payroll/overtime/sync-from-attendance', { month }).then(unwrap<any>()),
|
||||
/** 导入加班费到批次 */
|
||||
importOvertimeToBatch: (batchId: string) =>
|
||||
post(`/payroll/overtime/import-to-batch/${batchId}`).then(unwrap<any>()),
|
||||
@@ -655,6 +676,9 @@ export const terminationApi = {
|
||||
/** 撤销 */
|
||||
cancel: (draftId: string) =>
|
||||
post(`/termination/draft/${draftId}/cancel`),
|
||||
/** 删除草稿(仅 DRAFT 和 CANCELLED 状态) */
|
||||
deleteDraft: (draftId: string) =>
|
||||
del(`/termination/draft/${draftId}`),
|
||||
/** 撤回离职记录 */
|
||||
revoke: (recordId: string) =>
|
||||
del(`/termination/${recordId}/revoke`),
|
||||
@@ -693,6 +717,9 @@ export const policiesApi = {
|
||||
/** 阅读签收统计 */
|
||||
readStats: (id: string) =>
|
||||
get(`/policies/${id}/read-stats`).then(unwrap<any>()),
|
||||
/** 催办未签收员工 */
|
||||
remind: (id: string, employeeIds?: string[]) =>
|
||||
post(`/policies/${id}/remind`, { employeeIds }).then(unwrap<any>()),
|
||||
}
|
||||
|
||||
// ========== 证据链相关 ==========
|
||||
@@ -704,6 +731,12 @@ export const evidenceApi = {
|
||||
/** 全量验证 */
|
||||
verifyAll: () =>
|
||||
get('/evidence/verify-all').then(unwrap<any>()),
|
||||
/** 按员工获取证据链记录 */
|
||||
byEmployee: (employeeId: string) =>
|
||||
get(`/evidence/employee/${employeeId}`).then(unwrap<any[]>()),
|
||||
/** 验证单条证据链 */
|
||||
verify: (id: string) =>
|
||||
get(`/evidence/verify/${id}`).then(unwrap<any>()),
|
||||
}
|
||||
|
||||
// ========== 审计日志 ==========
|
||||
|
||||
Reference in New Issue
Block a user