From 4a73df7bd8dabdfa088474954a4d47d6fcb913e6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 13 Sep 2023 09:36:03 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A2=E0=B8=B7=E0=B8=A1=E0=B8=84=E0=B8=B7?= =?UTF-8?q?=E0=B8=99=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registry/components/Salary.vue | 17 +++++++++++++---- .../components/5_Borrow/DialogForm.vue | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/modules/04_registry/components/Salary.vue b/src/modules/04_registry/components/Salary.vue index 07713d2f3..6225b1a57 100644 --- a/src/modules/04_registry/components/Salary.vue +++ b/src/modules/04_registry/components/Salary.vue @@ -67,8 +67,8 @@ icon="mdi-history" @click="clickHistory(props.row)" > - ประวัติแก้ไขตำแหน่ง/เงินเดือน - + ประวัติแก้ไขตำแหน่ง/เงินเดือน + @@ -1566,6 +1566,9 @@ const fetchData = async () => { .get(config.API.profileSalaryId(profileId.value)) .then((res) => { let data = res.data.result; + console.log(data); + + rows.value = []; data.map((e: ResponseObject) => { rows.value.push({ @@ -1577,9 +1580,15 @@ const fetchData = async () => { oc: e.oc, ocId: e.ocId, position: e.position, - positionId: e.positionId, + positionId: + e.positionId !== "00000000-0000-0000-0000-000000000000" + ? e.positionId + : "", posNo: e.posNo, - posNoId: e.posNoId, + posNoId: + e.posNoId !== "00000000-0000-0000-0000-000000000000" + ? e.posNo + : "", positionLine: e.positionLine, positionLineId: e.positionLineId, positionPathSide: e.positionPathSide, diff --git a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue index 6dcdc0ffb..991eb5d37 100644 --- a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue +++ b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue @@ -90,7 +90,7 @@ const fecthlistInsignia = async () => { showLoader(); let data = { insigniaTypeId: props.typeId, - insigniaNoteId: props.roundId, + insigniaNoteId: roundNo.value, insigniaId: "", }; await http @@ -102,6 +102,11 @@ const fecthlistInsignia = async () => { messageError($q, err); }) .finally(() => { + cardid.value = ""; + fullName.value = ""; + brand.value = ""; + OrganazationId.value = ""; + reason.value = ""; hideLoader(); }); }; @@ -206,7 +211,13 @@ const searchcardid = async () => { fullName.value = `${node.prefix} ${node.fullName}`; brand.value = node.requestInsignia; insigniaNoteProfileId.value = node.id; - } else notifyError($q, "ไม่พบข้อมูลการได้รับในรอบนี้"); + } else { + notifyError($q, "ไม่พบข้อมูลการได้รับในรอบนี้"); + fullName.value = ""; + brand.value = ""; + OrganazationId.value = ""; + reason.value = ""; + } } };