优化: 重新入职弹窗对齐添加员工

1. 移除孕期/医疗期/工伤复选框(重新入职自动重置为false)
2. 缺省入职日期和合同开始日期为今天,默认3年合同结束日期
3. 签约时长与合同结束日期双向自动计算
4. 试用期长度按劳动合同法校验+试用期工资必填及80%校验
5. 试用期工资校验使用员工已有月工资作为基准
This commit is contained in:
freedakgmail
2026-07-23 18:29:31 +08:00
parent 8283b538e5
commit 0dd5a26afa
2 changed files with 135 additions and 61 deletions
+3 -3
View File
@@ -232,9 +232,9 @@ export async function rehireEmployee(orgId: string, userId: string, id: string,
data: {
hireDate: newHireDate,
status: 'ACTIVE',
isPregnant: data.isPregnant || false,
isInMedicalPeriod: data.isInMedicalPeriod || false,
isWorkInjured: data.isWorkInjured || false,
isPregnant: false,
isInMedicalPeriod: false,
isWorkInjured: false,
},
})