fix: 员工端姓名显示处加上身份证号

后端:
- portal.routes.ts: 密码登录/验证码登录/自动登录返回 idCardNumber
- portal.routes.ts: home/overview 返回 employeeIdCardNumber
- portal.routes.ts: 合同确认接口返回 employeeIdCardNumber

前端:
- EmployeeHome.tsx: 首页欢迎卡片显示身份证号
- PortalLayout.tsx: 顶栏姓名后显示身份证号
- Payslip.tsx: 下载文件名加上身份证号
- ContractConfirm.tsx: 合同确认页显示身份证号
This commit is contained in:
freedakgmail
2026-08-18 07:52:52 +08:00
parent 5c016914dd
commit 754dfd3116
5 changed files with 17 additions and 10 deletions
@@ -62,6 +62,7 @@ export default function EmployeeHome() {
<div>
<h1 className="text-lg font-bold">{employee.name || '同事'}</h1>
<p className="text-sm text-indigo-100 mt-1">{employee.department || ''} · {employee.position || ''}</p>
{employee.idCardNumber && <p className="text-xs text-indigo-200 mt-0.5 font-mono">{employee.idCardNumber}</p>}
</div>
<div className="text-right">
<div className="text-xs text-indigo-100"></div>