From 0cf2adc7d16d41854bdafc0de93ef27a2543ae33 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 18 Dec 2023 18:09:59 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=A2?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=99=E0=B9=83=E0=B8=9A=E0=B8=A5=E0=B8=B2?= =?UTF-8?q?(=E0=B8=95=E0=B9=88=E0=B8=AD=20=E0=B8=9E=E0=B8=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_leave/components/Forms/01_SickForm.vue | 21 ++++++++++++++++--- .../05_leave/components/Forms/03_Birth.vue | 3 ++- .../components/Forms/04_HelpWifeBirthForm.vue | 3 ++- .../components/Forms/06_OrdinationForm.vue | 4 ++-- .../05_leave/components/Forms/07_HajjForm.vue | 4 +++- .../components/Forms/09_StudyForm.vue | 4 ++-- .../components/Forms/10_TrainForm.vue | 4 ++-- .../components/Forms/12_FollowSpouseForm.vue | 4 ++-- .../05_leave/components/Forms/Form.vue | 6 +++--- src/modules/05_leave/views/AddPage.vue | 10 ++++++++- 10 files changed, 45 insertions(+), 18 deletions(-) diff --git a/src/modules/05_leave/components/Forms/01_SickForm.vue b/src/modules/05_leave/components/Forms/01_SickForm.vue index 2cfac39..eb13edb 100644 --- a/src/modules/05_leave/components/Forms/01_SickForm.vue +++ b/src/modules/05_leave/components/Forms/01_SickForm.vue @@ -206,6 +206,20 @@ const isReadOnly = computed(() => { } return conditionHalfDay }) + +function inputEdit(val: boolean) { + return { + "full-width cursor-pointer ": val, + "full-width cursor-pointer inputgreen": !val, + }; +} + +function resetEndDate(type:string){ + if(type === 'day'){ + formDataSick.EndLeaveDate === null + } + +} @@ -248,6 +262,7 @@ const isReadOnly = computed(() => { :enableTimePicker="false" week-start="0" :readonly="!edit" + @update:model-value="formDataSick.leaveEndDate = null" >