diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue
index b83e128d5..fa8d027f4 100644
--- a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue
+++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue
@@ -406,7 +406,8 @@ function getData() {
formMain.containDate = data.dateAppoint;
formMain.workDate = data.dateStart;
formMain.reasonSameDate = data.reasonSameDate;
- formMain.retireDate = data.retireDate;
+ formMain.retireDate = data.dateRetire;
+ formMain.dateRetireLaw = data.dateRetireLaw;
formMain.ageAll = data.govAge;
formMain.absent = data.govAgeAbsent;
formMain.age = data.govAgePlus;
@@ -440,7 +441,8 @@ function getDataHistory() {
positionExecutiveSide: e.positionExecutiveSide,
dateAppoint: new Date(e.dateAppoint),
dateStart: new Date(e.dateStart),
- retireDate: e.retireDate,
+ dateRetire: e.dateRetire,
+ dateRetireLaw: e.dateRetireLaw,
govAge: e.govAge,
govAgeAbsent: e.govAgeAbsent,
govAgePlus: e.govAgePlus,
@@ -454,7 +456,7 @@ function getDataHistory() {
})
.catch((e) => {
messageError($q, e);
- modalHistory.value = false
+ modalHistory.value = false;
})
.finally(() => {
hideLoader();
@@ -508,12 +510,12 @@ onMounted(() => {
v-for="(field, index) in Object.keys(fieldLabels).slice(0, 5)"
:key="index"
>
-
+
{{
fieldLabels[field as keyof typeof fieldLabels]
}}
-
+
{{ formMain[field] ? formMain[field] : "-" }}
@@ -524,12 +526,12 @@ onMounted(() => {
v-for="(field, index) in Object.keys(fieldLabels).slice(5, 9)"
:key="index"
>
-
+
{{
fieldLabels[field as keyof typeof fieldLabels]
}}
-
+
{{ formMain[field] ? formMain[field] : "-" }}
@@ -540,12 +542,12 @@ onMounted(() => {
-
+
วันที่สั่งบรรจุ
-
+
{{
formMain.containDate ? date2Thai(formMain.containDate) : "-"
}}
@@ -554,12 +556,12 @@ onMounted(() => {
-
+
วันที่เริ่มปฏิบัติราชการ
-
+
{{
formMain.workDate !== null
? date2Thai(formMain.workDate as Date)
@@ -573,12 +575,12 @@ onMounted(() => {
class="col-12 col-sm-6 col-md-6"
>
-
+
เหตุผลที่วันที่ไม่ตรงกัน
-
+
{{
formMain.reasonSameDate !== "" ? formMain.reasonSameDate : "-"
}}
@@ -587,26 +589,29 @@ onMounted(() => {
-
-
วันเกษียณอายุ
+
+ วันครบเกษียณอายุ
-
+
{{
- formMain.retireDate
- ? date2Thai(formMain.retireDate as Date)
+ formMain.dateRetire
+ ? date2Thai(formMain.dateRetire as Date)
: "-"
}}
+
-
+
อายุราชการ
-
+
{{
formMain.ageAll
? `${formMain.ageAll.day} วัน ${formMain.ageAll.month} เดือน ${formMain.ageAll.year} ปี`
@@ -617,26 +622,42 @@ onMounted(() => {
-
+
ขาดราชการ
-
+
{{ formMain.absent ? formMain.absent : 0 }}
-
+
อายุราชการเกื้อกูล
-
+
{{ formMain.age ? formMain.age : 0 }}
+
+
+
+ วันที่เกษียณอายุราชการตามกฏหมาย
+
+
+ {{
+ formMain.dateRetireLaw
+ ? date2Thai(formMain.dateRetireLaw as Date)
+ : "-"
+ }}
+
+
+
diff --git a/src/modules/04_registryNew/interface/index/government.ts b/src/modules/04_registryNew/interface/index/government.ts
index 305accb4a..0c14f4068 100644
--- a/src/modules/04_registryNew/interface/index/government.ts
+++ b/src/modules/04_registryNew/interface/index/government.ts
@@ -1,27 +1,27 @@
interface FormMain {
- ocId: string
- positionId: string
- positionLine: string
- positionLevel: string
- numberId: string
- positionExecutive: string
- positionExecutiveSide: string
- positionType: string
- positionPathSide: string
+ ocId: string;
+ positionId: string;
+ positionLine: string;
+ positionLevel: string;
+ numberId: string;
+ positionExecutive: string;
+ positionExecutiveSide: string;
+ positionType: string;
+ positionPathSide: string;
- containDate: any
- workDate: any
- reasonSameDate: string
- retireDate: any
- ageAll: GovAgeForm
- absent: number
- age: number
+ containDate: any;
+ workDate: any;
+ reasonSameDate: string;
+ retireDate: any;
+ ageAll: GovAgeForm;
+ absent: number;
+ age: number;
[key: string]: any;
}
interface GovAgeForm {
- year: number,
- month: number,
- day: number
+ year: number;
+ month: number;
+ day: number;
}
interface MyObjectRef {
@@ -32,8 +32,8 @@ interface MyObjectRef {
}
interface RequestItemsHistoryObject {
- lastUpdatedAt: Date,
- lastUpdateFullName: string,
+ lastUpdatedAt: Date;
+ lastUpdateFullName: string;
oc: string | null;
position: string | null;
positionPathSide: string | null;
@@ -45,7 +45,8 @@ interface RequestItemsHistoryObject {
positionExecutiveSide: string | null;
dateAppoint: Date;
dateStart: Date;
- retireDate: string | null;
+ dateRetire: string | null;
+ dateRetireLaw: string | null;
govAge: string | null;
govAgeAbsent: string | null;
govAgePlus: string | null;