ยืมคืนเครื่องราชฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-13 09:36:03 +07:00
parent eac10d3f3a
commit 4a73df7bd8
2 changed files with 26 additions and 6 deletions

View file

@ -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 = "";
}
}
};