From 9e550fc5bf118287ae8cfc1cb880974abe753a81 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 29 Apr 2026 13:58:01 +0700 Subject: [PATCH] refactor(placement-emp): hide positionDate input when typeCommand is MOVE --- .../components/AppointEmployee/AppointEmployeeDetail.vue | 7 ++++++- src/modules/05_placement/views/07_appointEmployeeMain.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/05_placement/components/AppointEmployee/AppointEmployeeDetail.vue b/src/modules/05_placement/components/AppointEmployee/AppointEmployeeDetail.vue index 41c3854b9..810983d6a 100644 --- a/src/modules/05_placement/components/AppointEmployee/AppointEmployeeDetail.vue +++ b/src/modules/05_placement/components/AppointEmployee/AppointEmployeeDetail.vue @@ -54,6 +54,7 @@ const reason = ref(""); //หมายเหตุ const status = ref(""); const fullName = ref(""); const mianData = ref(); +const typeCommand = ref(""); //ประเภทคำสั่ง /** fetch รายละเอียดการปรับระดับชั้นงานลูกจ้าง*/ async function fecthappointmentByid() { @@ -79,6 +80,7 @@ async function fecthappointmentByid() { salary.value = data.salary ?? 0; reason.value = data.reason; date.value = data.positionDate; + typeCommand.value = data.typeCommand; }) .catch((e) => { messageError($q, e); @@ -323,7 +325,10 @@ onMounted(async () => {
-
+