refactor: WorkProcess 业务逻辑复用原有 service
- HIRE 调用 createEmployee(含社保/公积金/薪资/部门记录) - RENEW/CUSTOM_CONTRACT 调用 addContract(含重复检查、试用期验证、风险检测) - TERMINATE/RESCIND 调用 createTerminationDraft + executeTermination(含风险评级、合规清单、社保截止) - CONFIRM 增加 probationEndDate 更新和 runRiskDetection - FLEXIBLE 调用 createEmployee + addContract - 前端 TERMINATE/RESCIND 表单增加 reason 和 compensation 字段 - 原有 Roster 入口保持不变,两条路径共用同一套 service
This commit is contained in:
@@ -108,11 +108,15 @@ const FORM_FIELDS: Record<string, { key: string; label: string; type: 'text' | '
|
||||
{ key: 'employeeId', label: '员工ID', type: 'text' },
|
||||
{ key: 'contractId', label: '合同ID', type: 'text' },
|
||||
{ key: 'terminateDate', label: '终止日期', type: 'date' },
|
||||
{ key: 'reason', label: '终止原因', type: 'select', options: ['EXPIRED', 'NEGOTIATED', 'FAULT', 'NONFAULT', 'LAYOFF'] },
|
||||
{ key: 'compensation', label: '经济补偿金', type: 'number' },
|
||||
],
|
||||
RESCIND: [
|
||||
{ key: 'employeeId', label: '员工ID', type: 'text' },
|
||||
{ key: 'contractId', label: '合同ID', type: 'text' },
|
||||
{ key: 'rescindDate', label: '解除日期', type: 'date' },
|
||||
{ key: 'reason', label: '解除原因', type: 'select', options: ['NEGOTIATED', 'FAULT', 'NONFAULT', 'LAYOFF'] },
|
||||
{ key: 'compensation', label: '经济补偿金', type: 'number' },
|
||||
],
|
||||
LEAVING_CERT: [
|
||||
{ key: 'employeeName', label: '员工姓名', type: 'text' },
|
||||
|
||||
Reference in New Issue
Block a user