From 3e17d3a25aa686b2b9087b209385fcdceefd02e9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 26 Feb 2025 14:25:06 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=20=3D=3D>=20=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/PopupPersonalNew.vue | 27 ++++- .../GovernmentInformation/07_Position.vue | 38 ++++++ .../21_report/components/CardPosition.vue | 67 +++++++++++ .../21_report/views/02_reportRegistry.vue | 108 +++++++++++------- 4 files changed, 198 insertions(+), 42 deletions(-) create mode 100644 src/modules/21_report/components/CardPosition.vue diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index 5bb0f24ac..4afdf0b48 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -14,6 +14,8 @@ import type { Avatar } from "@/components/information/interface/response/avatar" /** importStore*/ import { useCounterMixin } from "@/stores/mixin"; +import CardPosition from "@/modules/21_report/components/CardPosition.vue"; + /** use*/ const route = useRoute(); const mixin = useCounterMixin(); @@ -24,6 +26,7 @@ const { showLoader, hideLoader, messageError, date2Thai } = mixin; const isEmployee = defineModel("isEmployee", { type: String }); const empType = ref("officer"); +const checkRoute = ref(route.name == "reportRegistry"); /** props*/ const props = defineProps({ id: { @@ -172,7 +175,9 @@ async function fetchProfileGov(id: string) { } function redirecToRegistry() { - router.push(`/registry-${props.type == 'employee' ? 'employee':'officer'}/${props.id}`); + router.push( + `/registry-${props.type == "employee" ? "employee" : "officer"}/${props.id}` + ); modal.value = false; } @@ -422,7 +427,11 @@ async function fetchProfile(id: string, avatarName: string) { :model-value=" goverment.positionType ? goverment.positionType : '-' " - :label="props.type == 'employee' ? 'กลุ่มงาน':'ประเภทตำแหน่ง'" + :label=" + props.type == 'employee' + ? 'กลุ่มงาน' + : 'ประเภทตำแหน่ง' + " />
@@ -434,7 +443,11 @@ async function fetchProfile(id: string, avatarName: string) { ? goverment.positionLevel : '-' " - :label="props.type == 'employee' ? 'ระดับชั้นงาน':'ระดับตำแหน่ง'" + :label=" + props.type == 'employee' + ? 'ระดับชั้นงาน' + : 'ระดับตำแหน่ง' + " />
+ + + + diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue index b37621bfb..e73da8886 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue @@ -289,6 +289,27 @@ const posExecutiveOptionMain = ref([]); const docOption = ref(store.optionTemplateDoc); +const cardData = ref([ + { + label: "ระยะเวลาดำรงตำแหน่งในสายงาน", + data: [ + { name: "ตำแหน่ง", time: "1 ปี" }, + { name: "ตำแหน่ง", time: "1 ปี" }, + { name: "ตำแหน่ง", time: "1 ปี" }, + { name: "ตำแหน่ง", time: "1 ปี" }, + { name: "ตำแหน่ง", time: "1 ปี" }, + ], + }, + { + label: "ระยะเวลาดำรงตำแหน่งตามระดับ", + data: [{ name: "ละดับ", time: "1 ปี" }], + }, + { + label: "ระยะเวลาดำรงตำแหน่งทางการบริหาร", + data: [{ name: "ตำแหน่งทางการบริหาร", time: "1 ปี" }], + }, +]); + /** function fetch รายการ ตำแหน่งเงินเดือน*/ async function fetchListSalary() { showLoader(); @@ -715,7 +736,24 @@ onMounted(() => { fetchListSalary(); }); +