From 7b02611f33fe6f21084475a0d720ee0bcd8bb152 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 4 Nov 2024 13:11:04 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=81=E0=B8=A9=E0=B8=B2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B9=81=E0=B8=97=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../18_command/components/Step/View0_Digital.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/modules/18_command/components/Step/View0_Digital.vue b/src/modules/18_command/components/Step/View0_Digital.vue index 86ca888d6..a9018d4b5 100644 --- a/src/modules/18_command/components/Step/View0_Digital.vue +++ b/src/modules/18_command/components/Step/View0_Digital.vue @@ -102,6 +102,16 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + + { + name: "actFullName", + align: "left", + label: "รักษาการแทน", + sortable: true, + field: "actFullName", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, ]); //รอผู้มีอำนาจลงนามอนุมัติ @@ -595,7 +605,8 @@ onMounted(async () => { class="col-12" v-if=" rowsAuthority[rowsAuthority.length - 1].comment !== null && - step === 2 && !store.readonly + step === 2 && + !store.readonly " > Date: Mon, 4 Nov 2024 13:43:10 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20API?= =?UTF-8?q?=20report=20=E0=B8=81=E0=B8=9E7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.profile.ts | 10 ++++++++-- .../04_registryPerson/views/detailView.vue | 19 +++++++++++-------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index d82276464..f4bc2fb58 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -179,7 +179,8 @@ export default { profileReportEmpId: (profileId: string) => `${report}kk1-employee/${profileId}`, profileKp7ShortId: (profileId: string) => `${report}kp7-short/${profileId}`, - profileKp7ShortEmpId: (profileId: string) => `${report}kp7-short-employee/${profileId}`, + profileKp7ShortEmpId: (profileId: string) => + `${report}kp7-short-employee/${profileId}`, profileChangeNameId: (profileId: string) => `${profile}changeName/${profileId}`, @@ -220,5 +221,10 @@ export default { `${profile}search/new-page/oc/${id}/officer?page=${page}&pageSize=${pageSize}`, orgProfileAvatar: `${registryNew}avatar`, - orgProfileAvatarbyType:(type:string)=> `${avatarNew}${type}/avatar`, + orgProfileAvatarbyType: (type: string) => `${avatarNew}${type}/avatar`, + + profilFull: (id: string, type: string) => + `${env.API_URI}/org/${type}/kk1/${id}`, + profilshort: (id: string, type: string) => + `${env.API_URI}/org/${type}/kp7-short/${id}`, }; diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index 86f837bb7..37daea1da 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -399,11 +399,11 @@ async function onClickDownloadKp7(type: string) { const url = type === "FULL" ? empType.value - ? config.API.profileReportEmpId(profileId.value) - : config.API.profileReportId(profileId.value) + ? config.API.profilFull(profileId.value, "profile-employee") + : config.API.profilFull(profileId.value, "profile") : empType.value - ? config.API.profileKp7ShortEmpId(profileId.value) - : config.API.profileKp7ShortId(profileId.value); + ? config.API.profilshort(profileId.value, "profile-employee") + : config.API.profilshort(profileId.value, "profile"); const fileName = type === "FULL" ? "ก.พ.7/ก.ก.1" : "ประวัติแบบย่อ"; await http @@ -411,13 +411,13 @@ async function onClickDownloadKp7(type: string) { .then(async (res) => { const data = await res.data.result; await genReport(data, `${fileName}`, type); - hideLoader(); }) .catch((err) => { messageError($q, err); - hideLoader(); }) - .finally(() => {}); + .finally(() => { + hideLoader(); + }); } /** @@ -1089,7 +1089,10 @@ onMounted(async () => { - +