Merge branch 'develop' into devTee
This commit is contained in:
commit
c673012cfd
4 changed files with 25 additions and 14 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;
|
||||
});
|
||||
},
|
||||
|
|
@ -434,7 +439,7 @@ function clickSave(reason: string) {
|
|||
<!-- <q-file
|
||||
v-model="filesUpload"
|
||||
dense
|
||||
label="อัพโหลดไฟล์"
|
||||
label="อัปโหลดไฟล์"
|
||||
outlined
|
||||
class="col-xs-12 col-sm-3 col-md-2"
|
||||
bg-color="white"
|
||||
|
|
|
|||
|
|
@ -27,15 +27,15 @@ console.log(props);
|
|||
<div class="col">{{ props.data.fullName }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4 text-grey-8">ตำแหน่งผู้ยืนขอ</div>
|
||||
<div class="col-4 text-grey-8">ตำแหน่งผู้ยื่นขอ</div>
|
||||
<div class="col">{{ props.data.positionName }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4 text-grey-8">ระดับผู้ยืนขอ</div>
|
||||
<div class="col-4 text-grey-8">ระดับผู้ยื่นขอ</div>
|
||||
<div class="col">{{ props.data.positionLevelName }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4 text-grey-8">สังกัดผู้ยืนขอ</div>
|
||||
<div class="col-4 text-grey-8">สังกัดผู้ยื่นขอ</div>
|
||||
<div class="col">{{ props.data.organizationName }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ const roundOp = ref<any>([]);
|
|||
|
||||
/**Hook */
|
||||
onMounted(async () => {
|
||||
await fetchDataOption();
|
||||
// await fetchDataOption();
|
||||
});
|
||||
|
||||
/**FormData */
|
||||
|
|
@ -124,8 +124,10 @@ async function fetchDataOption() {
|
|||
name: `${r.startTimeMorning}-${r.endTimeAfternoon}`,
|
||||
});
|
||||
});
|
||||
roundOp.value = option;
|
||||
console.log(roundOp.value);
|
||||
|
||||
roundOp.value = option.filter(
|
||||
(e) => e.name !== props.DataRow?.currentRound
|
||||
);
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -190,12 +192,15 @@ function close() {
|
|||
}
|
||||
watch(
|
||||
() => props.modal,
|
||||
(newDetailData, oldDetailData) => {
|
||||
async (newDetailData, oldDetailData) => {
|
||||
if (props.editCheck === "edit") {
|
||||
formData.round = "";
|
||||
formData.reson = "";
|
||||
formData.effectiveDate = null;
|
||||
}
|
||||
if (props.modal === true) {
|
||||
await fetchDataOption();
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue