feat(performance): 新增绩效下签功能支持
- 在月报审批页面增加 sign-off 场景支持 - 添加绩效下签对话框组件实现批量下签功能 - 增加导入绩效压缩包和直接下签两种操作模式 - 实现电子签名预览和日期格式化显示功能 - 更新绩效权限配置增加下签相关权限 - 优化审批对话框标题和按钮文案显示 - 添加导入结果提示和文件验证功能 - 实现团队模式下的下签操作入口 - 完善绩效表格状态和操作权限判断逻辑
This commit is contained in:
24
src/typings/api/performance.d.ts
vendored
24
src/typings/api/performance.d.ts
vendored
@@ -74,6 +74,8 @@ declare namespace Api {
|
||||
fileVersion: number;
|
||||
statusCode: Common.SheetStatusCode;
|
||||
statusName: string;
|
||||
signOffStatus?: string | null;
|
||||
signOffStatusName?: string | null;
|
||||
actualScoreTotal?: string | number | null;
|
||||
baseScoreTotal?: string | number | null;
|
||||
extraScoreTotal?: string | number | null;
|
||||
@@ -96,6 +98,7 @@ declare namespace Api {
|
||||
managerId: string;
|
||||
managerName: string;
|
||||
statusCode: Common.SheetStatusCode;
|
||||
signOffStatus: string;
|
||||
}
|
||||
>;
|
||||
|
||||
@@ -121,6 +124,27 @@ declare namespace Api {
|
||||
ids: string[];
|
||||
}
|
||||
|
||||
interface ImportZipParams {
|
||||
file: File;
|
||||
periodMonth: string;
|
||||
employeeIds?: string[] | null;
|
||||
}
|
||||
|
||||
interface ImportZipResult {
|
||||
workbookCount: number;
|
||||
sheetCount: number;
|
||||
successCount: number;
|
||||
skippedCount: number;
|
||||
failedCount: number;
|
||||
messages: string[];
|
||||
}
|
||||
|
||||
interface SignOffParams {
|
||||
periodMonth: string;
|
||||
employeeIds?: string[] | null;
|
||||
remark?: string | null;
|
||||
}
|
||||
|
||||
interface StatusDict {
|
||||
statusCode: Common.SheetStatusCode;
|
||||
statusName: string;
|
||||
|
||||
19
src/typings/api/system-manage.d.ts
vendored
19
src/typings/api/system-manage.d.ts
vendored
@@ -239,6 +239,25 @@ declare namespace Api {
|
||||
roleIds: string[];
|
||||
}
|
||||
|
||||
interface UserSignature {
|
||||
id: string;
|
||||
userId: string;
|
||||
fileId: string;
|
||||
fileName?: string | null;
|
||||
status?: number | null;
|
||||
remark?: string | null;
|
||||
createTime?: string | null;
|
||||
updateTime?: string | null;
|
||||
}
|
||||
|
||||
interface SaveUserSignatureParams {
|
||||
userId: string;
|
||||
fileId: string;
|
||||
fileName?: string | null;
|
||||
status?: number | null;
|
||||
remark?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* menu type
|
||||
*
|
||||
|
||||
15
src/typings/api/work-report.d.ts
vendored
15
src/typings/api/work-report.d.ts
vendored
@@ -189,6 +189,8 @@ declare namespace Api {
|
||||
periodEndDate: string;
|
||||
statusCode: Common.WorkReportStatusCode | string;
|
||||
statusName: string;
|
||||
signOffStatus?: string | null;
|
||||
signOffStatusName?: string | null;
|
||||
allowEdit: boolean;
|
||||
terminal: boolean;
|
||||
totalWorkHours?: number | string | null;
|
||||
@@ -204,6 +206,7 @@ declare namespace Api {
|
||||
|
||||
type MonthlyReportSearchParams = Common.WorkReportBaseSearchParams & {
|
||||
reporterIds?: string[] | null;
|
||||
signOffStatus?: string | null;
|
||||
};
|
||||
|
||||
interface MonthlyReportSaveParams {
|
||||
@@ -245,10 +248,22 @@ declare namespace Api {
|
||||
improvementSuggestion?: string | null;
|
||||
performanceResult?: string | null;
|
||||
employeeSignName?: string | null;
|
||||
employeeSignatureFileId?: string | null;
|
||||
employeeSignedDate?: string | null;
|
||||
supervisorSignName?: string | null;
|
||||
supervisorSignatureFileId?: string | null;
|
||||
supervisorSignedDate?: string | null;
|
||||
}
|
||||
|
||||
interface MonthlyReportSignOffConfirmParams {
|
||||
meetingDate: string;
|
||||
employeeSignedDate?: string | null;
|
||||
}
|
||||
|
||||
interface MonthlyReportSignOffDetail {
|
||||
report: MonthlyReport;
|
||||
latestApprovalRecord: MonthlyReportApprovalRecord | null;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Project {
|
||||
|
||||
Reference in New Issue
Block a user