From 4471912ffb6a40304389d76687d076517df4c389 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 8 Mar 2024 17:49:08 +0700 Subject: [PATCH] =?UTF-8?q?-=20=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20dial?= =?UTF-8?q?og=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; +}