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

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

@ -67,8 +67,8 @@
icon="mdi-history" icon="mdi-history"
@click="clickHistory(props.row)" @click="clickHistory(props.row)"
> >
<q-tooltip>ประวแกไขตำแหน/เงนเดอน</q-tooltip> <q-tooltip>ประวแกไขตำแหน/เงนเดอน</q-tooltip>
</q-btn> </q-btn>
</q-td> </q-td>
</q-tr> </q-tr>
</template> </template>
@ -1566,6 +1566,9 @@ const fetchData = async () => {
.get(config.API.profileSalaryId(profileId.value)) .get(config.API.profileSalaryId(profileId.value))
.then((res) => { .then((res) => {
let data = res.data.result; let data = res.data.result;
console.log(data);
rows.value = []; rows.value = [];
data.map((e: ResponseObject) => { data.map((e: ResponseObject) => {
rows.value.push({ rows.value.push({
@ -1577,9 +1580,15 @@ const fetchData = async () => {
oc: e.oc, oc: e.oc,
ocId: e.ocId, ocId: e.ocId,
position: e.position, position: e.position,
positionId: e.positionId, positionId:
e.positionId !== "00000000-0000-0000-0000-000000000000"
? e.positionId
: "",
posNo: e.posNo, posNo: e.posNo,
posNoId: e.posNoId, posNoId:
e.posNoId !== "00000000-0000-0000-0000-000000000000"
? e.posNo
: "",
positionLine: e.positionLine, positionLine: e.positionLine,
positionLineId: e.positionLineId, positionLineId: e.positionLineId,
positionPathSide: e.positionPathSide, positionPathSide: e.positionPathSide,

View file

@ -90,7 +90,7 @@ const fecthlistInsignia = async () => {
showLoader(); showLoader();
let data = { let data = {
insigniaTypeId: props.typeId, insigniaTypeId: props.typeId,
insigniaNoteId: props.roundId, insigniaNoteId: roundNo.value,
insigniaId: "", insigniaId: "",
}; };
await http await http
@ -102,6 +102,11 @@ const fecthlistInsignia = async () => {
messageError($q, err); messageError($q, err);
}) })
.finally(() => { .finally(() => {
cardid.value = "";
fullName.value = "";
brand.value = "";
OrganazationId.value = "";
reason.value = "";
hideLoader(); hideLoader();
}); });
}; };
@ -206,7 +211,13 @@ const searchcardid = async () => {
fullName.value = `${node.prefix} ${node.fullName}`; fullName.value = `${node.prefix} ${node.fullName}`;
brand.value = node.requestInsignia; brand.value = node.requestInsignia;
insigniaNoteProfileId.value = node.id; insigniaNoteProfileId.value = node.id;
} else notifyError($q, "ไม่พบข้อมูลการได้รับในรอบนี้"); } else {
notifyError($q, "ไม่พบข้อมูลการได้รับในรอบนี้");
fullName.value = "";
brand.value = "";
OrganazationId.value = "";
reason.value = "";
}
} }
}; };