ออกคำสั่ง ==> รายละเอียด API Tab 3

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-13 11:49:49 +07:00
parent 4ef591fd72
commit 8336ba3051
9 changed files with 388 additions and 208 deletions

View file

@ -143,7 +143,21 @@ function onCancel(id: string) {
function onReCommand(id: string) {
dialogConfirm(
$q,
() => {},
async () => {
showLoader();
await http
.put(config.API.commandAction(id, "resume"))
.then(async () => {
await fetchListCommand();
success($q, "ดึงไปทำคำสั่งใหม่สำเร็จ");
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
},
"ยืนยันการดึงไปทำคำสั่งใหม่",
"ต้องการยืนยืนยันการดึงไปทำคำสั่งใหม่ใช่หรือไม่ ?"
);