From de63beef4f80b25d5ed9621ff09f71bed0a4b511 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 12 Mar 2024 16:18:32 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registry/components/Leave.vue | 574 +++-------- .../GovernmentInformation/02_Discipline.vue | 6 +- .../detail/GovernmentInformation/03_Leave.vue | 928 +++++++++++++++++- .../GovernmentInformation/03_LeaveHistory.vue | 316 ++++++ .../04_registryNew/interface/index/leave.ts | 52 + 5 files changed, 1448 insertions(+), 428 deletions(-) create mode 100644 src/modules/04_registryNew/components/detail/GovernmentInformation/03_LeaveHistory.vue create mode 100644 src/modules/04_registryNew/interface/index/leave.ts diff --git a/src/modules/04_registry/components/Leave.vue b/src/modules/04_registry/components/Leave.vue index 0539ab664..16400f334 100644 --- a/src/modules/04_registry/components/Leave.vue +++ b/src/modules/04_registry/components/Leave.vue @@ -40,7 +40,7 @@ }}
- {{ col.value ? statusLeave(col.value) : "-" }} + {{ statusLeave(col.value) }}
- {{ - col.value == null ? "-" : col.value.toLocaleString("en-US") - }} + {{ col.value == null ? "" : col.value.toLocaleString("en-US") }}
- {{ col.value ? col.value : "-" }} + {{ col.value }}
- + @@ -84,7 +82,7 @@ -
- --> -
-
- - - - - - - -
-
- -
-
- -
-
- -
-
- -
-
- -
@@ -389,12 +282,12 @@ > {{ col.value == null - ? "-" + ? "" : col.value.toLocaleString("en-US") }}
- {{ col.value ? col.value : "-" }} + {{ col.value }}
@@ -436,30 +329,21 @@ " class="table_ellipsis" > - {{ col.value == null ? "-" : col.value.toLocaleString("en-US") }} + {{ col.value == null ? "" : col.value.toLocaleString("en-US") }}
- {{ col.value ? statusLeave(col.value) : "-" }} + {{ statusLeave(col.value) }}
- {{ col.value ? col.value : "-" }} + {{ col.value }}
- - \ No newline at end of file + diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/03_LeaveHistory.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/03_LeaveHistory.vue new file mode 100644 index 000000000..dad3408d1 --- /dev/null +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/03_LeaveHistory.vue @@ -0,0 +1,316 @@ + + + diff --git a/src/modules/04_registryNew/interface/index/leave.ts b/src/modules/04_registryNew/interface/index/leave.ts new file mode 100644 index 000000000..f5e801dde --- /dev/null +++ b/src/modules/04_registryNew/interface/index/leave.ts @@ -0,0 +1,52 @@ +interface DetailData{ + id: string; + typeLeave: string; + dateStartLeave: Date|null; + dateEndLeave: Date|null; + numLeave: number; + sumLeave: number; + totalLeave: number; + status: string; + reason: string; + typeLeaveId: string; +} +interface FormFilter { + page: number; + pageSize: number; + keyword: string; + type: string; + posType: string; + posLevel: string; + retireYear: string | null; + rangeYear: { min: number; max: number }; + isShowRetire: boolean; + isProbation: boolean; + } + interface DataOptionLeave { + id: string; + name: string; + totalLeave: number; + } + interface DataOption { + id: string; + name: string; + disable?: boolean; + } + interface ResponseTotalObject { + typeLeaveId: string; + typeLeave: string; + totalLeave: number; + limitLeave: string; + remainLeave: string; + } + + interface MyObjectRef { + typeLeave: object | null; + dateRange: object | null; + numLeave: object | null; + statLeave: object | null; + reason: object | null; + [key: string]: any; +} + export type { DetailData,FormFilter,DataOptionLeave,DataOption,ResponseTotalObject,MyObjectRef }; + \ No newline at end of file