diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
index 76a26da7b..25e2b3137 100644
--- a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
+++ b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue
@@ -12,6 +12,7 @@ import { useCounterMixin } from "@/stores/mixin";
import type { RecruitDetailResponse } from "@/modules/03_recruiting/interface/response/Period";
import type { Pagination } from "@/modules/03_recruiting/interface/index/Main";
+import DialogCandidates from "@/modules/03_recruiting/components/DialogCandidates.vue";
import Table from "@/modules/03_recruiting/components/Table.vue";
import genReportXLSX from "@/plugins/genreportxlsx";
@@ -349,7 +350,7 @@ async function fetchData() {
}
/** บรรจุผู้ผ่านการคัดเลือกผู้พิการ */
-async function candidateToPlacement() {
+async function onSubmitCandidates() {
$q.dialog({
title: "ยืนยันการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ",
message: "ต้องการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุใช่หรือไม่?",
@@ -363,15 +364,16 @@ async function candidateToPlacement() {
showLoader();
await http
.get(config.API.periodDisableToPlacement(importId.value))
- .then((res) => {
+ .then(() => {
success($q, "นำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ");
+ modalCandidates.value = false;
+ router.go(-1);
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
- router.go(-1);
});
})
.onCancel(() => {})
@@ -386,6 +388,13 @@ function onSearch() {
);
}
+const modalCandidates = ref(false); // dialog บรรจุผู้ผ่านการสอบแข่งขัน
+
+/** ฟังก์ชันเปิดโมดัลสำหรับผู้ส่งผ่านคัดเลือก */
+function openModalCandidates() {
+ modalCandidates.value = true;
+}
+
onMounted(async () => {
hideLoader();
await fetchData();
@@ -413,7 +422,7 @@ onMounted(async () => {
flat
color="indigo"
v-if="rows.length > 0"
- @click="candidateToPlacement"
+ @click="openModalCandidates"
>
บรรจุผู้ผ่านการคัดเลือกผู้พิการ
@@ -517,6 +526,12 @@ onMounted(async () => {
+
+
diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue
index 8464ce5d1..39d9e2eb6 100644
--- a/src/modules/05_placement/components/PersonalList/Table.vue
+++ b/src/modules/05_placement/components/PersonalList/Table.vue
@@ -1679,6 +1679,7 @@ onMounted(async () => {
+
{
borderless
:enableTimePicker="false"
week-start="0"
- :min-date="new Date()"
>
{{ year + 543 }}