From ebf34aa0c22dd40c0fa99830747bf96bb0bad91c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 29 Apr 2026 13:46:31 +0700 Subject: [PATCH] refactor(placement): hide positionDate input when typeCommand is MOVE --- .../components/AppointMent/AppointMentDetail.vue | 7 ++++++- src/modules/05_placement/views/06_appointPromoteMain.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue b/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue index b5b55e00a..2d8ef8a7b 100644 --- a/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue +++ b/src/modules/05_placement/components/AppointMent/AppointMentDetail.vue @@ -45,6 +45,7 @@ const date = ref(null); //ดำรงตำแหน่งใน const reason = ref(""); //หมายเหตุ const status = ref(""); const fullName = ref(""); +const typeCommand = ref(""); //ประเภทคำสั่ง /** fetch รายละเอียดการแต่งตั้ง-เลื่อน-ย้าย*/ async function fecthappointmentByid() { @@ -61,6 +62,7 @@ async function fecthappointmentByid() { }`; status.value = data.status; + typeCommand.value = data.typeCommand; educationOld.value = data.educationOld ?? "-"; organizationPositionOld.value = data.organizationPositionOld; positionTypeOld.value = data.positionTypeOld; @@ -313,7 +315,10 @@ onMounted(() => {
-
+