From a6f76328dbe59dfa7005acfc18e94aa6de95cf1d Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:40:37 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B9=80=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=20=E0=B8=8A=E0=B9=89=E0=B8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registry/components/Leave.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/04_registry/components/Leave.vue b/src/modules/04_registry/components/Leave.vue index dfda325af..1aa4f50df 100644 --- a/src/modules/04_registry/components/Leave.vue +++ b/src/modules/04_registry/components/Leave.vue @@ -1201,7 +1201,9 @@ const clickSave = async () => { // * บันทึกเพิ่มข้อมูล // */ const saveData = async () => { + formData.leaveYear = (await Number(inputDateLaeaveYear.value)) - 543; const sum = Number(numLeave.value) + Number(numUsedLeave.value); + console.log(formData.leaveYear); if (profileId.value) { showLoader(); @@ -1216,6 +1218,7 @@ const saveData = async () => { }) .then((res) => { success($q, "บันทึกข้อมูลสำเร็จ"); + modalAdd.value = false; }) .catch((e) => {