From 7d2532acc7b9d5b40b29793d6a4726e094e7b6fa Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 8 Jan 2024 16:56:17 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=A7=E0=B8=B4?= =?UTF-8?q?=E0=B8=99=E0=B8=B1=E0=B8=A2=E0=B8=96=E0=B8=B9=E0=B8=81=E0=B8=9E?= =?UTF-8?q?=E0=B8=B1=E0=B8=81=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../7_ListSuspend/DialogSendToCommand.vue | 12 ++-- .../components/7_ListSuspend/ListsPage.vue | 57 ++++++++++--------- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue b/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue index ed0e68db1..31757ab8c 100644 --- a/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue +++ b/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue @@ -113,9 +113,10 @@ function saveOrder() { dialogConfirm( $q, async () => { - success($q, `ส่งข้อมูลไปออกคำสั่งสำเร็จ`); - emit("returnPerson", selected.value); + await emit("returnPerson", selected.value, type.value); props.closeModal?.(); + type.value = ""; + selected.value = []; }, `ยืนยันการส่งไปออกคำสั่ง`, `ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่` @@ -135,7 +136,7 @@ function Reset() { emit("update:filterKeyword2", ""); } -async function fecthTypeOption(){ +async function fecthTypeOption() { showLoader(); await http .get(config.API.typeOrder()) @@ -151,7 +152,7 @@ async function fecthTypeOption(){ .finally(() => { hideLoader(); }); -}; +} onMounted(() => { fecthTypeOption(); @@ -243,8 +244,7 @@ onMounted(() => { >