优化: 添加员工弹窗-身份证号必填+性别自动识别
1. 身份证号必填(18位),后端加密存储 2. 性别由身份证号第17位自动计算(奇数=男,偶数=女),无需手动选择 3. 移除添加员工时的孕期/医疗期/工伤复选框(这些状态后续在员工档案中维护)
This commit is contained in:
@@ -164,6 +164,7 @@ export async function createEmployee(orgId: string, userId: string, data: any) {
|
||||
monthlySalary: encrypt(data.monthlySalary),
|
||||
gender: data.gender,
|
||||
phone: data.phone,
|
||||
idCardNumber: data.idCardNumber ? encrypt(data.idCardNumber) : null,
|
||||
isPregnant: data.isPregnant || false,
|
||||
isInMedicalPeriod: data.isInMedicalPeriod || false,
|
||||
isWorkInjured: data.isWorkInjured || false,
|
||||
|
||||
Reference in New Issue
Block a user