From e45aadbf6c781f0e6f84fda248c5631903bcef2c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 10 Jul 2024 10:40:48 +0700 Subject: [PATCH] KIP => report --- src/modules/14_KPI/interface/response/Main.ts | 84 ++++- src/modules/14_KPI/views/report.vue | 295 ++++++++++++------ 2 files changed, 291 insertions(+), 88 deletions(-) diff --git a/src/modules/14_KPI/interface/response/Main.ts b/src/modules/14_KPI/interface/response/Main.ts index cc702b947..a2179300b 100644 --- a/src/modules/14_KPI/interface/response/Main.ts +++ b/src/modules/14_KPI/interface/response/Main.ts @@ -54,4 +54,86 @@ interface ResResults { profileId: string; } -export type { ResRound, ResDataCapacity, ResEvaluator, ResResults }; +interface ResRoundEvaluate { + createdAt: string; + createdFullName: string; + createdUserId: string; + durationKPI: string; + endDate: string; + id: string; + isActive: boolean; + lastUpdateFullName: string; + lastUpdateUserId: string; + lastUpdatedAt: string; + startDate: string; + year: number; +} + +interface ResOrg { + labelName: string; + orgCode: string; + orgLevel: number; + orgName: string; + orgRevisionId: string; + orgRootName: string; + orgTreeCode: string; + orgTreeFax: string; + orgTreeId: string; + orgTreeName: string; + orgTreeOrder: number; + orgTreePhoneEx: string; + orgTreePhoneIn: string; + orgTreeRank: string; + orgTreeRankSub: string; + orgTreeShortName: string; + responsibility: string; + totalPosition: number; + totalPositionCurrentUse: number; + totalPositionCurrentVacant: number; + totalPositionNextUse: number; + totalPositionNextVacant: number; + totalRootPosition: number; + totalRootPositionCurrentUse: number; + totalRootPositionCurrentVacant: number; + totalRootPositionNextUse: number; + totalRootPositionNextVacant: number; + children: ResOrg[]; +} +interface ResReport { + reportName: string; + template: string; +} + +interface ResPerson { + avatar: string; + avatarName: string; + citizenId: string; + firstName: string; + id: string; + lastName: string; + org: string; + orgRevisionId: string; + orgRootShortName: string; + posExecutive: string; + posLevel: string; + posLevelId: string; + posNo: string; + posType: string; + posTypeId: string; + position: string; + prefix: string; + rank: string; + root: string; + rootId: string; +} + +export type { + ResRound, + ResDataCapacity, + ResEvaluator, + ResResults, + ResRoundEvaluate, + ResOrg, + ResReport, + ResPerson, +}; diff --git a/src/modules/14_KPI/views/report.vue b/src/modules/14_KPI/views/report.vue index e6af5db28..8a1f962dd 100644 --- a/src/modules/14_KPI/views/report.vue +++ b/src/modules/14_KPI/views/report.vue @@ -1,5 +1,5 @@