From 4471912ffb6a40304389d76687d076517df4c389 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 8 Mar 2024 17:49:08 +0700 Subject: [PATCH 1/7] =?UTF-8?q?-=20=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?dialog=20=E0=B8=A3=E0=B8=B1=E0=B8=9A=20v-model=20-=20=E0=B9=80?= =?UTF-8?q?=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B8=84=E0=B8=B3=E0=B9=81?= =?UTF-8?q?=E0=B8=99=E0=B8=B0=E0=B8=99=E0=B8=B3=E0=B8=95=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B8=AA=E0=B9=88=E0=B8=87=20process=20=E0=B8=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/PopupReason.vue | 27 +++--- .../components/ListRetirement/TableList.vue | 10 +- .../07_insignia/components/2_Manage/Tab1.vue | 10 +- .../components/2_Manage/listManage.vue | 18 +--- .../components/4_Allocate/OrgAdd.vue | 8 +- .../components/2_Leave/DetailLeave.vue | 6 +- .../components/2_Leave/DetailLeaveReject.vue | 6 +- .../09_leave/interface/request/leave.ts | 2 +- .../09_leave/views/SpecialTimeMain.vue | 3 +- .../components/SalaryLists/ProcessStep.vue | 96 +++++++++++-------- 10 files changed, 86 insertions(+), 100 deletions(-) diff --git a/src/components/Dialogs/PopupReason.vue b/src/components/Dialogs/PopupReason.vue index 9440ee1ea..d151fe55a 100644 --- a/src/components/Dialogs/PopupReason.vue +++ b/src/components/Dialogs/PopupReason.vue @@ -3,11 +3,12 @@ import { ref, watch } from "vue"; import DialogHeader from "@/components/DialogHeader.vue"; const reason = ref(""); +const modal = defineModel("modal", { required: true }); const props = defineProps({ - modal: { - type: Boolean, - default: false, - }, + // modal: { + // type: Boolean, + // default: false, + // }, title: { type: String, default: "", @@ -16,10 +17,10 @@ const props = defineProps({ type: String, default: "", }, - clickClose: { - type: Function, - default: () => {}, - }, + // clickClose: { + // type: Function, + // default: () => {}, + // }, savaForm: { type: Function, default: () => {}, @@ -29,7 +30,7 @@ const props = defineProps({ }, }); watch(props, () => { - if (props.modal === true && props.textReport == "") { + if (modal.value === true && props.textReport == "") { reason.value = ""; } else { reason.value = props.textReport; @@ -44,13 +45,17 @@ const submit = () => { } }); }; + +function closeModal() { + modal.value = false +} diff --git a/src/modules/09_leave/components/2_Leave/DetailLeave.vue b/src/modules/09_leave/components/2_Leave/DetailLeave.vue index 60fc4d4e8..1115fb2d7 100644 --- a/src/modules/09_leave/components/2_Leave/DetailLeave.vue +++ b/src/modules/09_leave/components/2_Leave/DetailLeave.vue @@ -51,9 +51,6 @@ const typePdf = ref("pdf"); const dialogTitleUnapprove = ref("ไม่อนุมัติ"); const dialogTitle = ref("อนุมัติ"); const dialogLabel = ref("เหตุผล"); -const closeDialog = () => { - modalApprove.value = false; -}; /** ฟังก์ชั่น อัปโหลด * consolelog ไว้ก่อน @@ -816,10 +813,9 @@ function formattedNumber(x: number) { diff --git a/src/modules/09_leave/components/2_Leave/DetailLeaveReject.vue b/src/modules/09_leave/components/2_Leave/DetailLeaveReject.vue index 5e2422dd7..43d06ff2d 100644 --- a/src/modules/09_leave/components/2_Leave/DetailLeaveReject.vue +++ b/src/modules/09_leave/components/2_Leave/DetailLeaveReject.vue @@ -52,9 +52,6 @@ const typePdf = ref("pdf"); const modalApprove = ref(false); const dialogTitleUnapprove = ref("ไม่อนุมัติ"); const dialogTitle = ref("อนุมัติ"); -const closeDialog = () => { - modalApprove.value = false; -}; /** ฟังก์ชั่น อัปโหลด * consolelog ไว้ก่อน @@ -755,9 +752,8 @@ async function onClickDownloadFile(id: string, fileName: string, type: string) { diff --git a/src/modules/09_leave/interface/request/leave.ts b/src/modules/09_leave/interface/request/leave.ts index 5b4b2fdc1..b59049338 100644 --- a/src/modules/09_leave/interface/request/leave.ts +++ b/src/modules/09_leave/interface/request/leave.ts @@ -89,7 +89,7 @@ interface FremData { coupleDaySumTotalHistory: string; //ประวัติ ในกรณีลาติดต่อกับครั้งก่อน รวมทั้งนี้ด้วย เป็นเวลา กี่ปี กี่เดือน กี่วัน (ลาติดตามคู่สมรส) approveStep: string; dear: string; - leaveRange: string; + leaveRange?: string; } export type { ListsData, FremData, QuerySting, DateFilter }; diff --git a/src/modules/09_leave/views/SpecialTimeMain.vue b/src/modules/09_leave/views/SpecialTimeMain.vue index ab8d8e903..82d4f69de 100644 --- a/src/modules/09_leave/views/SpecialTimeMain.vue +++ b/src/modules/09_leave/views/SpecialTimeMain.vue @@ -363,10 +363,9 @@ const monthYearThai = (val: any) => { diff --git a/src/modules/13_salary/components/SalaryLists/ProcessStep.vue b/src/modules/13_salary/components/SalaryLists/ProcessStep.vue index 526920774..d4ded6251 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(1); +const sendStep = ref(4); const fileUpload = ref(null); const document = ref(""); /** @@ -47,50 +47,60 @@ async function uploadFile(event: any) { ); } +function saveReccommend() { + modalRecommend.value = false; +} + function sendToDirector() {} + +const modalRecommend = ref(false); +const titleRecommend = ref(""); +function sendAndRecommend(title: string) { + modalRecommend.value = true; + titleRecommend.value = title; +} From 1fc9b81bdecb88d4f8adea0fc735555c29f1d587 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 8 Mar 2024 18:01:23 +0700 Subject: [PATCH 2/7] =?UTF-8?q?process=20=E0=B9=80=E0=B8=A5=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=99=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99?= =?UTF-8?q?=E0=B9=80=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('ยืนยันและส่งเอกสารให้ สกจ.')" /> + + From f1a8522cfdcb92eea97fb02950186a2265dc01ea Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 8 Mar 2024 18:03:44 +0700 Subject: [PATCH 3/7] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registryNew/views/detailView.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/modules/04_registryNew/views/detailView.vue b/src/modules/04_registryNew/views/detailView.vue index b23d8c8ad..5d876821b 100644 --- a/src/modules/04_registryNew/views/detailView.vue +++ b/src/modules/04_registryNew/views/detailView.vue @@ -68,8 +68,16 @@ const router = useRouter(); -
-
+
+
+
+
+ นายณัฐพงศ์ ดิษยบุตร +
+
นักบริหาร
+
+
+
@@ -82,7 +90,12 @@ const router = useRouter(); style="position: absolute; bottom: 0; right: 0" />
-
+ +
+
+
+
+
From e6cfec106a733a5a6a38582bce21861439f38ce4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 11 Mar 2024 10:11:32 +0700 Subject: [PATCH 4/7] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/detail/Achievement/Main.vue | 2 +- .../components/detail/Salary/Main.vue | 2 +- .../components/detail/TabMain.vue | 4 +- .../04_registryNew/views/detailView.vue | 65 ++++++++++++++++--- 4 files changed, 59 insertions(+), 14 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/Achievement/Main.vue b/src/modules/04_registryNew/components/detail/Achievement/Main.vue index 76961142d..d5fd7322e 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/Main.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/Main.vue @@ -13,7 +13,7 @@ const tab = ref("1");