From afe6ee03e4d37d057c1bb8c5dc8d80832bec4756 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 13 Jan 2025 17:06:48 +0700 Subject: [PATCH] fix reasonResign --- .../06_retirement/components/02_resign/ResignByid.vue | 5 +++-- .../06_retirement/components/03_resignEmp/ResignByid.vue | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/06_retirement/components/02_resign/ResignByid.vue b/src/modules/06_retirement/components/02_resign/ResignByid.vue index 1e3e31f0d..b3cda9a01 100644 --- a/src/modules/06_retirement/components/02_resign/ResignByid.vue +++ b/src/modules/06_retirement/components/02_resign/ResignByid.vue @@ -73,6 +73,7 @@ const dataDetail = ref({ statusMain: "", cancelReason: "", remark: "", + reasonResign: "", }); const workflowRef = ref(null); @@ -201,7 +202,7 @@ async function fetchData(id: string) { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; @@ -306,7 +307,7 @@ async function clickCancel() { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; diff --git a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue index b50a01b24..9c535a167 100644 --- a/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue +++ b/src/modules/06_retirement/components/03_resignEmp/ResignByid.vue @@ -200,7 +200,7 @@ async function fetchData(id: string) { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-"; @@ -305,7 +305,7 @@ async function clickCancel() { salary.value = data.salary ? data.salary : 0; date.value = data.sendDate ? new Date(data.sendDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; - reason.value = data.reason ?? ""; + reason.value = data.reasonResign ?? ""; location.value = data.location ?? ""; status.value = data.status ?? ""; remarkHorizontal.value = data.remarkHorizontal ?? "-";