From 19296e5543ff90d157c55638757fe101ef3ab378 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 9 Jan 2024 14:21:17 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B9=80=E0=B9=80=E0=B8=88=E0=B9=89=E0=B8=87=E0=B9=80=E0=B8=95?= =?UTF-8?q?=E0=B8=B7=E0=B8=AD=E0=B8=99=E0=B9=80=E0=B8=A1=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=84=E0=B8=94=E0=B9=89?= =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=A0=E0=B8=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../7_ListSuspend/DialogSendToCommand.vue | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue b/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue index 31757ab8c..dc6aa74df 100644 --- a/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue +++ b/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue @@ -14,7 +14,7 @@ import config from "@/app.config"; const $q = useQuasar(); const selected = ref([]); const mixin = useCounterMixin(); -const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin; +const { showLoader, success, messageError, dialogConfirm, hideLoader,dialogMessageNotify } = mixin; const emit = defineEmits([ "update:filterKeyword2", "update:selected", @@ -110,17 +110,21 @@ const optionsType = ref<[]>([]); //popup ยืนยันส่งัว function saveOrder() { - dialogConfirm( - $q, - async () => { - await emit("returnPerson", selected.value, type.value); - props.closeModal?.(); - type.value = ""; - selected.value = []; - }, - `ยืนยันการส่งไปออกคำสั่ง`, - `ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่` - ); + if (type.value === "") { + dialogMessageNotify($q,'กรุณาเลือกประเภทคำสั่ง') + } else { + dialogConfirm( + $q, + async () => { + await emit("returnPerson", selected.value, type.value); + props.closeModal?.(); + type.value = ""; + selected.value = []; + }, + `ยืนยันการส่งไปออกคำสั่ง`, + `ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่` + ); + } } /**