From fcba299a205253f58acbefd759c813a5541a8407 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Tue, 29 Aug 2023 17:04:37 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20=E0=B8=9C=E0=B8=A5=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9E?= =?UTF-8?q?=E0=B8=B4=E0=B8=88=E0=B8=B2=E0=B8=A3=E0=B8=93=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ผลการพิจารณาของผู้มีอำนาจ ผลการพิจารณาของผู้บังคับบัญชา --- src/modules/03_leave/views/AddLeave.vue | 147 +++++++++++++++++++++++- 1 file changed, 146 insertions(+), 1 deletion(-) diff --git a/src/modules/03_leave/views/AddLeave.vue b/src/modules/03_leave/views/AddLeave.vue index c82abb6..9c34976 100644 --- a/src/modules/03_leave/views/AddLeave.vue +++ b/src/modules/03_leave/views/AddLeave.vue @@ -87,6 +87,118 @@ + +
+
+ ผลการพิจารณาของผู้บังคับบัญชา +
+
+ +
+
+
+
สถานะ
+
+ {{ + dataDetail.commanderReject !== null + ? statusOrder(dataDetail.commanderReject) + : "-" + }} +
+
+
+
วันสุดท้ายที่ยับยั้ง
+
+ {{ + dataDetail.commanderRejectDate !== null + ? date2Thai(dataDetail.commanderRejectDate) + : "-" + }} +
+
+
+
ความคิดเห็นและเหตุผล
+
+ {{ + dataDetail.commanderApproveReason !== null + ? dataDetail.commanderApproveReason + : "-" + }} +
+
+ {{ + dataDetail.commanderRejectReason !== null + ? dataDetail.commanderRejectReason + : "-" + }} +
+
+
+
+
+ + +
+
+ ผลการพิจารณาของผู้มีอำนาจ +
+
+ +
+
+
+
สถานะ
+
+ {{ + dataDetail.oligarchReject !== null + ? statusOrder(dataDetail.oligarchReject) + : "-" + }} +
+
+
+
วันสุดท้ายที่ยับยั้ง
+
+ {{ + dataDetail.oligarchRejectDate !== null + ? date2Thai(dataDetail.oligarchRejectDate) + : "-" + }} +
+
+
+
ความคิดเห็นและเหตุผล
+
+ {{ + dataDetail.oligarchApproveReason !== null + ? dataDetail.oligarchApproveReason + : "-" + }} +
+
+ {{ + dataDetail.oligarchRejectReason !== null + ? dataDetail.oligarchRejectReason + : "-" + }} +
+
+
+
+
+
@@ -122,6 +234,38 @@ const dateLeave = ref(new Date()) const noteReason = ref("") const nameFile = ref("") +const dataDetail = ref({ + datetext: "", + activeDate: new Date(), + createdAt: new Date(), + firstName: "", + id: "", + isActive: true, + lastName: "", + location: "", + organizationPositionOld: "", + positionLevelOld: "", + positionNumberOld: "", + positionTypeOld: "", + prefix: "", + profileId: "", + reason: "", + salary: 0, + sendDate: new Date(), + status: "", + statustext: "", + fullname: "", +}); + +const statusOrder = (val: boolean) => { + switch (val) { + case true: + return "ยับยั้งการลาออก"; + case false: + return "อนุมัติการลาออก"; + } +}; + onMounted(() => { if (route.params.id !== undefined) { id.value = route.params.id.toString() @@ -176,7 +320,8 @@ const fectDataresign = async (id: string) => { .then((res: any) => { let data = res.data.result // console.log(data); - ;(tranferOrg.value = data.location), (dateCommand.value = data.sendDate), (dateLeave.value = data.activeDate), (noteReason.value = data.reason), (files.value = data.docs) + ;(tranferOrg.value = data.location), (dateCommand.value = data.sendDate), (dateLeave.value = data.activeDate), (noteReason.value = data.reason), (files.value = data.docs) ,(dataDetail.value = data) + }) .catch((e: any) => { console.log(e)