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 @@
-
- -->
-
-
-
-
-
- {{ year + 543 }}
- {{
- parseInt(value + 543)
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+ {{ col.label }}
+
+
+
+
+
+
+
+ {{
+ (formFilter.page - 1) * formFilter.pageSize +
+ props.rowIndex +
+ 1
+ }}
+
+
+ {{ col.value == null ? null : date2Thai(col.value) }}
+
+
+ {{ col.value ? col.value : "-" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ไม่พบข้อมูล
+
+
+
+
+
+
+
+
+
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