diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index a1b76791e..8dea5b519 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -169,7 +169,7 @@ export default { profileOrganizRoot: `${profile}organization/root`, - profileCalRetire: `${profile}cal/retire`, + profileCalRetire: `${registryNew}cal/retire`, profilePositionNumber: `${profile}position-number`, organizationName: (ocId: string) => `${profile}organization/${ocId}`, profileDeactive: (profileId: string) => `${profile}deactive/${profileId}`, diff --git a/src/modules/05_placement/components/PersonalDetail/CheckInformation/01_FormInformations.vue b/src/modules/05_placement/components/PersonalDetail/CheckInformation/01_FormInformations.vue index ac9e81160..6f6bb9424 100644 --- a/src/modules/05_placement/components/PersonalDetail/CheckInformation/01_FormInformations.vue +++ b/src/modules/05_placement/components/PersonalDetail/CheckInformation/01_FormInformations.vue @@ -53,7 +53,13 @@ async function calRetire(birth: Date) { .post(config.API.profileCalRetire, body) .then((res: any) => { const data = res.data.result; - informaData.value.age = data.age; + informaData.value.age = + data.age.year + + " ปี " + + data.age.month + + " เดือน" + + data.age.day + + " วัน"; changeRetireText(data.retireDate); age.value = true; }) diff --git a/src/modules/05_placement/components/PersonalDetail/Information/Information.vue b/src/modules/05_placement/components/PersonalDetail/Information/Information.vue index ace0d61c2..5ba592a84 100644 --- a/src/modules/05_placement/components/PersonalDetail/Information/Information.vue +++ b/src/modules/05_placement/components/PersonalDetail/Information/Information.vue @@ -175,7 +175,13 @@ const calRetire = async (birth: Date) => { .post(config.API.profileCalRetire, body) .then((res: any) => { const data = res.data.result; - informaData.value.age = data.age; + informaData.value.age = + data.age.year + + " ปี " + + data.age.month + + " เดือน" + + data.age.day + + " วัน"; changeRetireText(data.retireDate); age.value = true; })