แก้ไข API รายละเอียดการลาของ
This commit is contained in:
parent
ba19811676
commit
19d5737f8b
2 changed files with 12 additions and 6 deletions
|
|
@ -317,14 +317,16 @@ function sendToCommand() {
|
|||
$q,
|
||||
async () => {
|
||||
await http
|
||||
.put(config.API.leaveApproveToComander(formData.id))
|
||||
.get(config.API.leaveApproveToComander(formData.id))
|
||||
.then(() => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {});
|
||||
.finally(async () => {
|
||||
await fetchDetailLeave(paramsId);
|
||||
});
|
||||
},
|
||||
"ยืนยันการส่งไปผู้บังคับบัญชา",
|
||||
"ต้องการยืนยันการส่งไปผู้บังคับบัญชานี้ใช่หรือไม่ ?"
|
||||
|
|
@ -349,7 +351,8 @@ function clickSave(reason: string) {
|
|||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
.finally(async () => {
|
||||
await fetchDetailLeave(paramsId);
|
||||
modalApprove.value = false;
|
||||
});
|
||||
},
|
||||
|
|
@ -370,7 +373,8 @@ function clickSave(reason: string) {
|
|||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
.finally(async () => {
|
||||
await fetchDetailLeave(paramsId);
|
||||
modalApprove.value = false;
|
||||
});
|
||||
},
|
||||
|
|
@ -392,7 +396,8 @@ function clickSave(reason: string) {
|
|||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
.finally(async () => {
|
||||
await fetchDetailLeave(paramsId);
|
||||
modalApprove.value = false;
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue