fix: 绩效/培训/违纪/工资条/加班/休假/专项扣除/薪酬批次列表姓名下显示完整身份证号
后端: - roster.routes.ts: 绩效/培训/违纪列表查询加上 idCardNumber 并解密 - payroll.routes.ts: 加班/工资条查询加上 idCardNumber 并解密 - payroll2.routes.ts: 薪酬批次详情加上 idCardNumber 并解密 - leave.routes.ts: 休假审批列表加上 idCardNumber 并解密 - social.routes.ts: 专项附加扣除查询加上 idCardNumber 并解密 前端: - PerformanceRecords.tsx: 姓名下显示身份证号 - TrainingRecords.tsx: 姓名下显示身份证号 - DisciplinaryRecords.tsx: 姓名下显示身份证号 - PayslipTab.tsx: 姓名下显示身份证号 - OvertimeTab.tsx: 姓名下显示身份证号 - LeaveApproval.tsx: 姓名下显示身份证号 - SpecialDeductionTab.tsx: 姓名下显示身份证号 - BatchTab.tsx: 姓名下显示身份证号
This commit is contained in:
@@ -1194,11 +1194,14 @@ function BatchDetail({ batchId, onBack }: { batchId: string; onBack: () => void
|
||||
{batch.entries.slice((page - 1) * pageSize, page * pageSize).map((entry: any) => (
|
||||
<tr key={entry.id} className="border-b last:border-0 hover:bg-gray-25">
|
||||
<td className="py-2 px-2">
|
||||
<div className="text-xs font-medium">{entry.employee.name}</div>
|
||||
<div className="text-xs text-gray-500">{entry.employee.department}</div>
|
||||
{entry.employee.status === 'RESIGNED' && (
|
||||
<span className="text-xs text-danger">已离职</span>
|
||||
)}
|
||||
<div className="flex flex-col gap-0.5">
|
||||
<div className="text-xs font-medium">{entry.employee.name}</div>
|
||||
{entry.employee.idCardNumber && <span className="text-gray-400 text-[11px] font-mono">{entry.employee.idCardNumber}</span>}
|
||||
<div className="text-xs text-gray-500">{entry.employee.department}</div>
|
||||
{entry.employee.status === 'RESIGNED' && (
|
||||
<span className="text-xs text-danger">已离职</span>
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
{renderCell(entry, 'baseSalary')}
|
||||
{renderCell(entry, 'overtimePay')}
|
||||
|
||||
Reference in New Issue
Block a user