fix: 修复员工端离职申请创建时缺少checklist和type字段导致内部错误; 新增E2E测试场景文档

This commit is contained in:
selfrelease
2026-08-01 19:05:20 +08:00
parent b0942f3e61
commit 787897e6d3
3 changed files with 2627 additions and 0 deletions
+3
View File
@@ -792,9 +792,12 @@ router.post('/resignation/submit', portalAuth, async (req: any, res, next) => {
const record = await (prisma as any).terminationRecord.create({
data: {
employeeId, orgId,
type: 'RESIGNATION',
reason: 'RESIGNATION',
resignationReason: reason,
terminationDate: new Date(expectedDate),
status: 'PENDING_APPROVAL',
checklist: [],
remark: `员工自主申请:${reason}${remark ? ';备注:' + remark : ''}`,
createdBy: employeeId,
},