feat: 培训/绩效/违纪员工端签收+管理端签字状态只读化

- 后端: portal新增培训/绩效/违纪列表查看+签收接口,签收时创建证据链
- 管理端: 弹窗去掉HR手动签字勾选,改为只读显示签字状态
- 绩效列表新增签字状态列
- 员工端: 新增MyRecords页面,支持培训签收/拒绝、绩效签字、违纪签字
- 员工端导航新增'我的记录'入口
- EvidenceCategory新增TRAINING/PERFORMANCE类型
This commit is contained in:
freedakgmail
2026-08-05 08:39:04 +08:00
parent 15dde27701
commit 3afb383172
9 changed files with 437 additions and 18 deletions
+21
View File
@@ -1029,4 +1029,25 @@ export const portalApi = {
/** 签署操作 */
signEsign: (id: string) =>
portalPost(`/esign/${id}/sign`).then(unwrap<any>()),
/** 我的培训记录 */
myTraining: () =>
portalGet('/training').then(unwrap<any[]>()),
/** 培训签收 */
signTraining: (id: string) =>
portalPost(`/training/${id}/sign`).then(unwrap<any>()),
/** 培训拒绝签收 */
refuseTraining: (id: string) =>
portalPost(`/training/${id}/refuse`).then(unwrap<any>()),
/** 我的绩效记录 */
myPerformance: () =>
portalGet('/performance').then(unwrap<any[]>()),
/** 绩效签字 */
signPerformance: (id: string) =>
portalPost(`/performance/${id}/sign`).then(unwrap<any>()),
/** 我的违纪记录 */
myDisciplinary: () =>
portalGet('/disciplinary').then(unwrap<any[]>()),
/** 违纪签字 */
signDisciplinary: (id: string) =>
portalPost(`/disciplinary/${id}/sign`).then(unwrap<any>()),
}