From 3880953988928c5e1aee41c842e8ab99a48d640e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 15 Oct 2025 12:33:35 +0700 Subject: [PATCH] fix(placement):path API CalRetire --- src/api/registry/api.profile.ts | 2 +- .../CheckInformation/01_FormInformations.vue | 8 +++++++- .../components/PersonalDetail/Information/Information.vue | 8 +++++++- 3 files changed, 15 insertions(+), 3 deletions(-) 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; })