fix reasonResign

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-13 17:06:48 +07:00
parent 3cd096a900
commit afe6ee03e4
2 changed files with 5 additions and 4 deletions

View file

@ -73,6 +73,7 @@ const dataDetail = ref<any>({
statusMain: "", statusMain: "",
cancelReason: "", cancelReason: "",
remark: "", remark: "",
reasonResign: "",
}); });
const workflowRef = ref<any>(null); const workflowRef = ref<any>(null);
@ -201,7 +202,7 @@ async function fetchData(id: string) {
salary.value = data.salary ? data.salary : 0; salary.value = data.salary ? data.salary : 0;
date.value = data.sendDate ? new Date(data.sendDate) : null; date.value = data.sendDate ? new Date(data.sendDate) : null;
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
reason.value = data.reason ?? ""; reason.value = data.reasonResign ?? "";
location.value = data.location ?? ""; location.value = data.location ?? "";
status.value = data.status ?? ""; status.value = data.status ?? "";
remarkHorizontal.value = data.remarkHorizontal ?? "-"; remarkHorizontal.value = data.remarkHorizontal ?? "-";
@ -306,7 +307,7 @@ async function clickCancel() {
salary.value = data.salary ? data.salary : 0; salary.value = data.salary ? data.salary : 0;
date.value = data.sendDate ? new Date(data.sendDate) : null; date.value = data.sendDate ? new Date(data.sendDate) : null;
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
reason.value = data.reason ?? ""; reason.value = data.reasonResign ?? "";
location.value = data.location ?? ""; location.value = data.location ?? "";
status.value = data.status ?? ""; status.value = data.status ?? "";
remarkHorizontal.value = data.remarkHorizontal ?? "-"; remarkHorizontal.value = data.remarkHorizontal ?? "-";

View file

@ -200,7 +200,7 @@ async function fetchData(id: string) {
salary.value = data.salary ? data.salary : 0; salary.value = data.salary ? data.salary : 0;
date.value = data.sendDate ? new Date(data.sendDate) : null; date.value = data.sendDate ? new Date(data.sendDate) : null;
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
reason.value = data.reason ?? ""; reason.value = data.reasonResign ?? "";
location.value = data.location ?? ""; location.value = data.location ?? "";
status.value = data.status ?? ""; status.value = data.status ?? "";
remarkHorizontal.value = data.remarkHorizontal ?? "-"; remarkHorizontal.value = data.remarkHorizontal ?? "-";
@ -305,7 +305,7 @@ async function clickCancel() {
salary.value = data.salary ? data.salary : 0; salary.value = data.salary ? data.salary : 0;
date.value = data.sendDate ? new Date(data.sendDate) : null; date.value = data.sendDate ? new Date(data.sendDate) : null;
dateLeave.value = data.activeDate ? new Date(data.activeDate) : null; dateLeave.value = data.activeDate ? new Date(data.activeDate) : null;
reason.value = data.reason ?? ""; reason.value = data.reasonResign ?? "";
location.value = data.location ?? ""; location.value = data.location ?? "";
status.value = data.status ?? ""; status.value = data.status ?? "";
remarkHorizontal.value = data.remarkHorizontal ?? "-"; remarkHorizontal.value = data.remarkHorizontal ?? "-";