This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-22 17:17:29 +07:00
parent 8ec6b3b290
commit f3b9c21733

View file

@ -227,27 +227,27 @@ async function fileDownload(no: number, type: string, fileName: string) {
}
/** ฟังก์ชันยืนยันการส่งคำร้องไปยัง สกจ.*/
function onUpdateStatus() {
dialogConfirm(
$q,
async () => {
showLoader();
await http
.get(config.API.transferConfirmId(transferId.value))
.then(async () => {
await getData();
// success($q, "");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
});
},
"ต้องการยืนยันส่งคำร้องไปยัง สกจ หรือไม่?",
"ข้อมูลจะถูกนำส่งคำร้องไปยัง สกจ ทันที"
);
async function onUpdateStatus() {
// dialogConfirm(
// $q,
// async () => {
showLoader();
await http
.get(config.API.transferConfirmId(transferId.value))
.then(async () => {
await getData();
// success($q, "");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
});
// },
// " ?",
// " "
// );
}
/** ฟังก์ชันยืนยันการบันทึกการแก้ไขข้อมูล*/