แก้ไข API รายละเอียดการลาของ
This commit is contained in:
parent
ba19811676
commit
19d5737f8b
2 changed files with 12 additions and 6 deletions
|
|
@ -23,7 +23,8 @@ export default {
|
|||
leaveListDelete: () => `${leave}/admin/delete`,
|
||||
leaveListById: (id: string) => `${leave}/admin/${id}`,
|
||||
leaveCalendar: () => `${leave}/user/calendar`,
|
||||
leaveApproveToComander: (id: string) => `${leave}/admin/officer/${id}`,
|
||||
leaveApproveToComander: (id: string) =>
|
||||
`${leave}/admin/approve/officer/${id}`,
|
||||
leaveComanderApprove: (id: string) => `${leave}/admin/comander/${id}`,
|
||||
leaveApprove: (id: string) => `${leave}/admin/approve/${id}`,
|
||||
leaveReject: (id: string) => `${leave}/admin/reject/${id}`,
|
||||
|
|
|
|||
|
|
@ -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