From 1fc9b81bdecb88d4f8adea0fc735555c29f1d587 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 8 Mar 2024 18:01:23 +0700 Subject: [PATCH] =?UTF-8?q?process=20=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80?= =?UTF-8?q?=E0=B8=94=E0=B8=B7=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SalaryLists/ProcessStep.vue | 45 ++++++++++++++----- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/src/modules/13_salary/components/SalaryLists/ProcessStep.vue b/src/modules/13_salary/components/SalaryLists/ProcessStep.vue index d4ded6251..811975d4b 100644 --- a/src/modules/13_salary/components/SalaryLists/ProcessStep.vue +++ b/src/modules/13_salary/components/SalaryLists/ProcessStep.vue @@ -12,7 +12,7 @@ const $q = useQuasar(); //ใช้ noti quasar const mixin = useCounterMixin(); const { messageError, dialogConfirm, showLoader, hideLoader, success } = mixin; -const sendStep = ref(4); +const sendStep = ref(1); const fileUpload = ref(null); const document = ref(""); /** @@ -48,10 +48,27 @@ async function uploadFile(event: any) { } function saveReccommend() { - modalRecommend.value = false; + dialogConfirm( + $q, + async () => { + sendStep.value = sendStep.value + 1; + modalRecommend.value = false; + }, + "ยืนยันการ" + titleRecommend.value, + "ต้องการยืนยันการ" + titleRecommend.value + "หรือไม่?" + ); } -function sendToDirector() {} +function sendToDirector(msg: string) { + dialogConfirm( + $q, + async () => { + sendStep.value = sendStep.value == 3 ? 6 : sendStep.value + 1; + }, + "ยืนยันการ" + msg, + "ต้องการยืนยันการ" + msg + "หรือไม่?" + ); +} const modalRecommend = ref(false); const titleRecommend = ref(""); @@ -111,7 +128,7 @@ function sendAndRecommend(title: string) { unelevated color="public" label="ส่งเอกสารให้ ผอ. ตรวจสอบ" - @click="sendToDirector()" + @click="sendToDirector('ส่งเอกสารให้ ผอ. ตรวจสอบ')" /> @@ -120,35 +137,43 @@ function sendAndRecommend(title: string) { unelevated color="public" label="ยืนยันและส่งเอกสารให้ สกจ." - @click="sendToDirector()" + @click="sendToDirector('ยืนยันและส่งเอกสารให้ สกจ.')" /> + +