From c7e7abe441f1e8f947bc54e35654c78d73942269 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Wed, 20 Dec 2023 15:38:42 +0700 Subject: [PATCH 1/5] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B8=A5=E0=B8=87=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?=E0=B8=9E=E0=B8=B4=E0=B9=80=E0=B8=A8=E0=B8=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/4_specialTime/DialogApprove.vue | 4 +++- src/modules/09_leave/stores/SpecialTimeStore.ts | 13 +++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue index 2fcd3a31c..c56708d53 100644 --- a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue +++ b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue @@ -159,7 +159,7 @@ watch(
-
เวลาที่กรอก
+
วันที่ยื่นเรื่อง
@@ -216,6 +216,7 @@ watch(

สถานะช่วงเช้า

@@ -242,6 +243,7 @@ watch(

สถานะช่วงบ่าย

diff --git a/src/modules/09_leave/stores/SpecialTimeStore.ts b/src/modules/09_leave/stores/SpecialTimeStore.ts index 9069ff8e8..12059f15b 100644 --- a/src/modules/09_leave/stores/SpecialTimeStore.ts +++ b/src/modules/09_leave/stores/SpecialTimeStore.ts @@ -73,8 +73,8 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => { rows.value.push({ id: e.id, fullname: e.fullName, - date: date2Thai(new Date(e.checkDate), false, true), - dateFix: date2Thai(new Date(e.createdAt)), + date: date2Thai(new Date(e.createdAt), false, true), + dateFix: date2Thai(new Date(e.checkDate)), timeMorning: e.startTimeMorning == null ? "-" @@ -151,9 +151,10 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => { } }; const optionStatus = ref([ - { id: "0", name: "ปกติ" }, - { id: "1", name: "สาย" }, - { id: "2", name: "ขาดราชการ" }, + { id: "NORMAL", name: "ปกติ" }, + { id: "LATE", name: "สาย" }, + { id: "ABSENT", name: "ขาดราชการ" }, + { id: "NOT_COMPLETE", name: "ปฏิบัติงานไม่ครบตามกำหนดเวลา" }, ]); // const filterSelector = (val: any, update: Function, refData: string) => { @@ -203,7 +204,7 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => { { name: "date", align: "left", - label: "วันที่กรอก", + label: "วันที่ยื่นเรื่อง", sortable: true, field: "date", headerStyle: "font-size: 14px", From 624f9cbd47f7cfa817458621d5f3e7e8a688549d Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Wed, 20 Dec 2023 15:48:07 +0700 Subject: [PATCH 2/5] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=20ui=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20funciton//=20=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=9B=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PopupCheckFeatures.vue | 138 ++++++++++++++++++ .../components/3_WorkTime/DialogForm.vue | 13 +- .../09_leave/views/ChangeRoundMain.vue | 62 ++++++++ 3 files changed, 212 insertions(+), 1 deletion(-) diff --git a/src/components/PopupCheckFeatures.vue b/src/components/PopupCheckFeatures.vue index e69de29bb..8ed0d1684 100644 --- a/src/components/PopupCheckFeatures.vue +++ b/src/components/PopupCheckFeatures.vue @@ -0,0 +1,138 @@ + + + diff --git a/src/modules/09_leave/components/3_WorkTime/DialogForm.vue b/src/modules/09_leave/components/3_WorkTime/DialogForm.vue index 967471626..0ba9095d2 100644 --- a/src/modules/09_leave/components/3_WorkTime/DialogForm.vue +++ b/src/modules/09_leave/components/3_WorkTime/DialogForm.vue @@ -68,6 +68,13 @@ const formData = reactive({ isActive: false, }); +/**FunctionCheckbox แก้ไขสถานะ */ +function checkDefault() { + if (formData.isDefault === true) { + formData.isActive = true; + } +} + /** Function validateForm*/ function validateForm() { const hasError = []; @@ -356,7 +363,11 @@ watch(

เวลา Default

diff --git a/src/modules/09_leave/views/ChangeRoundMain.vue b/src/modules/09_leave/views/ChangeRoundMain.vue index 1863febd4..1c7fd2c71 100644 --- a/src/modules/09_leave/views/ChangeRoundMain.vue +++ b/src/modules/09_leave/views/ChangeRoundMain.vue @@ -21,6 +21,8 @@ const dataStore = useChangeRoundDataStore(); const $q = useQuasar(); const modal = ref(false); +const dateWork = ref(); +const modalFix = ref(false); const editCheck = ref(""); const DataRow = ref(); const formData = reactive({ @@ -45,9 +47,14 @@ function Openmodal(check: string, detail: any) { } } +function OpenmodalFix(detail: any) { + modalFix.value = true; +} + /** Function closePopup */ function closeDialog() { modal.value = false; + modalFix.value = false; } /** Function ค้นหาข้อมูล */ @@ -180,6 +187,15 @@ function searchData() { ประวัติการเปลี่ยนรอบ + + + แก้ไขปฏิทินวันทำงาน + + @@ -198,6 +214,52 @@ function searchData() { :personId="DataRow == null ? '' : DataRow.profileId" @update:change-page="dataStore.changePage" /> + + + + {{ "แก้ไขปฏิทินวันทำงาน" }} + + + + + +
+ + +
+ +
+
+ +
+
+