From 07dfd8a1a58e87ff2c95b310143e154d5970925b Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Wed, 20 Dec 2023 17:49:48 +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=B8=9A=E0=B8=B1=E0=B8=84=20checkStatus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../09_leave/components/4_specialTime/DialogApprove.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue index 93e3953f5..0e52be3fc 100644 --- a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue +++ b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue @@ -29,6 +29,8 @@ const props = defineProps({ date: { type: String, default: "" }, dateFix: { type: String, default: "" }, id: { type: String, default: "" }, + checkInStatus: { type: String, default: "NORMAL" }, + checkOutStatus: { type: String, default: "NORMAL" }, closeDialog: { type: Function, default: () => {} }, detailData: Object, }); @@ -151,6 +153,13 @@ watch( formData.checkOutEdit = props.detailData.checkOutEdit; } } + if (props.modal === true) { + formData.checkInStatus = "NORMAL"; + formData.checkOutStatus = "NORMAL"; + } else { + formData.checkInStatus = props.checkInStatus; + formData.checkOutStatus = props.checkOutStatus; + } } );