From d2a50125a559906e7c1e8427f8aa29fb4dae8727 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 1 Nov 2023 11:38:15 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B9=80?= =?UTF-8?q?=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81=E0=B8=A7=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B9=80=E0=B8=81=E0=B8=B4=E0=B8=99=20Date=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AddEmployee/Main.vue | 291 ++++++++++++++---- .../09_leave/components/1_Work/ToolBar.vue | 7 + src/modules/09_leave/stores/WorkStore.ts | 217 ++++++------- 3 files changed, 354 insertions(+), 161 deletions(-) diff --git a/src/modules/08_registryEmployee/components/AddEmployee/Main.vue b/src/modules/08_registryEmployee/components/AddEmployee/Main.vue index 162446638..f5799e44b 100644 --- a/src/modules/08_registryEmployee/components/AddEmployee/Main.vue +++ b/src/modules/08_registryEmployee/components/AddEmployee/Main.vue @@ -140,7 +140,7 @@ const fetchPerson = async () => { Ops.value.religionOps = optionreligions; OpsFilter.value.religionOps = optionreligions; }) - .catch((e: any) => { }) + .catch((e: any) => {}) .finally(() => { hideLoader(); }); @@ -359,34 +359,82 @@ const clickBack = () => {
- + ]" + label="เลขประจำตัวประชาชน" + maxlength="13" + mask="#############" + />
- +
- +
- +
- + @@ -394,13 +442,26 @@ const clickBack = () => { {{ parseInt(value + 543) }} \ No newline at end of file + diff --git a/src/modules/09_leave/components/1_Work/ToolBar.vue b/src/modules/09_leave/components/1_Work/ToolBar.vue index f00acfb44..d37f776ef 100644 --- a/src/modules/09_leave/components/1_Work/ToolBar.vue +++ b/src/modules/09_leave/components/1_Work/ToolBar.vue @@ -8,6 +8,12 @@ const mixin = useCounterMixin(); const { date2Thai } = mixin; const { filterFn, searchDataFn } = workStore; + +function calculateMaxDate() { + const today = new Date(); + today.setDate(today.getDate() - 1); + return today; +}