comment คำนวนเครื่องราช
This commit is contained in:
parent
7aa08944bb
commit
df9e271f74
2 changed files with 13 additions and 19 deletions
|
|
@ -287,20 +287,18 @@ async function directorApproved() {
|
|||
await http
|
||||
.get(config.API.insigniaDirectorApproved(round.value, DataStore.agency))
|
||||
.then(async () => {
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
await fecthInsigniaByOc(
|
||||
round.value,
|
||||
DataStore.agency,
|
||||
"officer",
|
||||
tab.value
|
||||
);
|
||||
await fecthStat(round.value);
|
||||
await success($q, "บันทึกสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(async () => {
|
||||
await hideLoader();
|
||||
await fecthStat(round.value);
|
||||
hideLoader();
|
||||
});
|
||||
},
|
||||
"ยืนยันการอนุมัติ",
|
||||
|
|
@ -325,13 +323,11 @@ async function backToEditinsignia2Role(reason: string) {
|
|||
"officer",
|
||||
tab.value
|
||||
);
|
||||
success($q, "การตีกลับสำเร็จ");
|
||||
modalbackInsignia2Role.value = await false;
|
||||
await success($q, "การตีกลับสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
modalbackInsignia2Role.value = false;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -345,20 +341,18 @@ async function requestSendNote() {
|
|||
name: roundName.value,
|
||||
})
|
||||
.then(async () => {
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
await fecthInsigniaByOc(
|
||||
round.value,
|
||||
DataStore.typeOc,
|
||||
"officer",
|
||||
tab.value
|
||||
);
|
||||
await fecthStat(round.value);
|
||||
await success($q, "บันทึกสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(async () => {
|
||||
await hideLoader();
|
||||
await fecthStat(round.value);
|
||||
hideLoader();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -309,11 +309,11 @@ watch(tab, () => {
|
|||
});
|
||||
|
||||
/** callback function จำทำงานเมื่อ modal มีการเปลี่ยนแปลง*/
|
||||
// watch(modal, () => {
|
||||
// if (modal.value == false) {
|
||||
// fecthlistInsignia();
|
||||
// }
|
||||
// });
|
||||
watch(modal, () => {
|
||||
if (modal.value == false) {
|
||||
fecthlistInsignia();
|
||||
}
|
||||
});
|
||||
|
||||
/** function เรียกรายชื่อบันทึกผลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/การจ่ายใบกำกับ */
|
||||
async function fecthlistInsignia() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue