fix(登录页、周报、绩效下签): 修复工作报表日期格式化和类型安全问题

- 移除了未使用的文件夹ZIP图标类型定义
- 添加了formatWeeklyPeriodLabel函数用于周报期间标签格式化
- 改进了日期范围计算逻辑并增加了类型安全检查
- 隐藏了登录页面的版权页脚以优化界面显示
- 修复了绩效签核对话框中的文本描述问题
- 在API响应中增加了对报表开始和结束日期的规范化处理
This commit is contained in:
dk
2026-07-23 14:36:56 +08:00
parent 08fff8bbc5
commit aa683f892b
6 changed files with 32 additions and 9 deletions

View File

@@ -287,6 +287,8 @@ function normalizeWeeklyReport(response: WeeklyReportResponse): Api.WorkReport.W
allowEdit: normalizeBooleanFlag(response.allowEdit),
terminal: normalizeBooleanFlag(response.terminal),
isBusinessTrip: normalizeBooleanFlag(response.isBusinessTrip),
periodStartDate: normalizeDateText(response.periodStartDate) ?? '',
periodEndDate: normalizeDateText(response.periodEndDate) ?? '',
totalWorkHours: normalizeReportTotalWorkHours(response.totalWorkHours, fallbackTotalWorkHours),
submitTime: response.submitTime ?? null,
reviewItems: response.reviewItems?.map(normalizeReviewItem) ?? [],