Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2023-12-08 18:00:39 +07:00
commit c673012cfd
4 changed files with 25 additions and 14 deletions

View file

@ -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}`,

View file

@ -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"

View file

@ -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>

View file

@ -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>