diff --git a/src/modules/04_registryNew/views/detailView.vue b/src/modules/04_registryNew/views/detailView.vue index afac501df..db82a9f41 100644 --- a/src/modules/04_registryNew/views/detailView.vue +++ b/src/modules/04_registryNew/views/detailView.vue @@ -72,6 +72,17 @@ const itemsMenu = ref([ }, ]); +const itemsMenuEmployee = ref([ + { + id: "1", + name: "ปรับระดับชั้นงาน - ย้าย", + }, + { + id: "2", + name: "ถึงแก่กรรม", + }, +]); + const uploadUrl = ref(""); const fileName = ref(""); const profilePicture = ref(""); @@ -306,6 +317,26 @@ async function otherPost() { }); } +const appointEmployeePost = async () => { + const formData = new FormData(); + formData.append("id", profileId.value); + dialogConfirm($q, async () => { + showLoader(); + await http + .post(config.API.appointEmployee(), formData) + .then(() => { + success($q, "ดำเนินการสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + router.push("/appoint-employee"); + }); + }); +}; + function closePassaway() { dialogPassaway.value = false; } @@ -480,7 +511,11 @@ onMounted(async () => { icon="mdi-home-export-outline" dropdown-icon="mdi-chevron-down" > - + + + {{ item.name }} + + { - +