diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index 40a99c35e..35003b4b6 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -69,6 +69,8 @@ const goverment = reactive({ positionLevel: "", positionExecutive: "", positionExecutiveSide: "", + dateLeave: "", + dateRetireLaw: "", }); function calculateAge(birthDate: Date | null) { @@ -172,6 +174,10 @@ async function fetchProfileGov(id: string) { data.posExecutive !== null ? data.posExecutive : "-"; goverment.positionExecutiveSide = data.positionExecutiveField !== "" ? data.positionExecutiveField : "-"; + goverment.dateLeave = !data.dateLeave ? "-" : date2Thai(data.dateLeave); + goverment.dateRetireLaw = !data.dateRetireLaw + ? "-" + : date2Thai(data.dateRetireLaw); }) .catch((err) => { @@ -311,46 +317,7 @@ async function fetchProfile(id: string, avatarName: string) { label="เลขประจำตัวประชาชน" > -
- -
-
- -
-
- -
-
- -
+
+ +
+ +
+
+ +
+ +
+ +
+ +
diff --git a/src/components/information/interface/response/Government.ts b/src/components/information/interface/response/Government.ts index 82c7c9973..e99129ad8 100644 --- a/src/components/information/interface/response/Government.ts +++ b/src/components/information/interface/response/Government.ts @@ -30,6 +30,8 @@ interface Goverment { positionLevel: string; positionExecutive: string; positionExecutiveSide: string; + dateLeave: string; + dateRetireLaw: string; } export type { ResponseObject, Goverment };