Merge branch 'develop' into dev

* develop:
  แก้ข้อความคัดเลือกผู้พิการ เป็นคัดเลือกอื่นๆ / คัดเลือกเฉยๆ
  fix:delete  console.log(keycloakId.value);
  fix: type REGISTRY_PROFILE_EMP
This commit is contained in:
Warunee Tamkoo 2026-02-26 16:39:32 +07:00
commit c1813e7a21
9 changed files with 33 additions and 34 deletions

View file

@ -89,6 +89,7 @@ async function fetchLists() {
page: pagination.value.page,
pageSize: pagination.value.rowsPerPage,
keycloakId: props.keycloakId,
type: props.sysName === "REGISTRY_PROFILE_EMP" ? "employee" : "officer",
})
.then(async (res) => {
totalList.value = Math.ceil(

View file

@ -90,7 +90,6 @@ async function fetchCheckState() {
isSign: data.can_sign,
};
keycloakId.value = data.keycloakId;
console.log(keycloakId.value);
})
.catch(() => {
isPermission.value = false;

View file

@ -188,8 +188,8 @@ async function uploadFile() {
async function candidateToPlacement() {
$q.dialog({
title: "ยืนยันการนำผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ",
message: "ต้องการนำผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุใช่หรือไม่?",
title: "ยืนยันการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ",
message: "ต้องการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุใช่หรือไม่?",
cancel: {
flat: true,
color: "negative",
@ -200,7 +200,7 @@ async function candidateToPlacement() {
await http
.get(config.API.periodExamToPlacement(examId.value))
.then(() => {
success($q, "นำผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ");
success($q, "นำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ");
})
.catch((e) => {
messageError($q, e);

View file

@ -364,8 +364,8 @@ function onSearch() {
*/
function onSubmitCandidates(date: Date) {
$q.dialog({
title: "ยืนยันการนำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ",
message: "ต้องการนำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุใช่หรือไม่?",
title: "ยืนยันการนำข้อมูลผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ",
message: "ต้องการนำข้อมูลผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุใช่หรือไม่?",
cancel: {
flat: true,
color: "negative",
@ -379,7 +379,7 @@ function onSubmitCandidates(date: Date) {
accountStartDate: convertDateToAPI(date),
})
.then(() => {
success($q, "นำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ");
success($q, "นำข้อมูลผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ");
modalCandidates.value = false;
})
.catch((e) => {

View file

@ -228,7 +228,7 @@ const rows = ref<RecruitDetailResponse[]>([]);
const rowsData = ref<RecruitDetailResponse[]>([]);
/**
* ไปหนารายละเอยด ดการรอบคดเลอกคนพการ
* ไปหนารายละเอยด ดการรอบคดเลอกนๆ
* @param examID id รอบ
*/
function clickDetail(examID: string) {
@ -269,14 +269,14 @@ async function downloadPassExam() {
});
}
/** ส่งออกข้อมูลผู้คัดเลือกคนพิการได้ */
/** ส่งออกข้อมูลผู้คัดเลือกอื่นๆ ได้ */
async function downloadPassResultExam() {
showLoader();
await http
.get(config.API.exportDisablePassResultExam(importId.value))
.then(async (res) => {
const dataList = res.data.result;
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้คัดเลือกคนพิการได้");
await genReportXLSX(dataList, "ส่งออกข้อมูลผู้คัดเลือกได้");
})
.catch(async (e) => {
messageError($q, JSON.parse(await e.response.data.text()));
@ -335,8 +335,8 @@ async function fetchData() {
/** บรรจุผู้ผ่านการคัดเลือกผู้พิการ */
async function onSubmitCandidates(date: Date) {
$q.dialog({
title: "ยืนยันการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ",
message: "ต้องการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุใช่หรือไม่?",
title: "ยืนยันการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ",
message: "ต้องการนำข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุใช่หรือไม่?",
cancel: {
flat: true,
color: "negative",
@ -350,7 +350,7 @@ async function onSubmitCandidates(date: Date) {
accountStartDate: convertDateToAPI(date),
})
.then(() => {
success($q, "นำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ");
success($q, "นำข้อมูลผู้ผ่านคัดเลือกอื่นๆ เข้าสู่ระบบบรรจุ");
modalCandidates.value = false;
})
.catch((e) => {
@ -426,7 +426,8 @@ onMounted(async () => {
</q-item>
<q-item clickable v-close-popup @click="downloadPassResultExam()">
<q-item-section class="text-amber-9"
>งออกขอมลผดเลอกคนพการได</q-item-section
>งออกขอมลผานคดเลอกอนๆ ได</q-item-section
>
>
</q-item>
</q-list>
@ -513,7 +514,7 @@ onMounted(async () => {
</q-card>
<DialogCandidates
:title="'ส่งผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ'"
:title="'ส่งข้อมูลผู้ผ่านคัดเลือกเข้าสู่ระบบบรรจุ'"
v-model:modal="modalCandidates"
:on-submit="onSubmitCandidates"
/>

View file

@ -375,7 +375,7 @@ onMounted(async () => {
</div>
<div class="col-xs-6 col-sm-5 text-grey-7">
นหมดอายญชดเลอกคนพการ
นหมดอายญชดเลอก
</div>
<div class="col-xs-6 col-sm-7 q-pr-xs">
{{ score_expired ? score_expired : "-" }}

View file

@ -88,7 +88,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "name",
align: "left",
label: "รอบคัดเลือกคนพิการ",
label: "รอบคัดเลือกอื่นๆ",
sortable: true,
field: "name",
headerStyle: "font-size: 14px",
@ -184,7 +184,7 @@ const visibleColumnsHistory = ref<String[]>([
"createdFullName",
]);
/** ดาวน์โหลดรายชื่อผู้สอบคัดเลือกคนพิการได้ */
/** ดาวน์โหลดรายชื่อผู้สอบคัดเลือกอื่นๆ ได้ */
async function clickPassExam(id: string) {
showLoader();
// await http
@ -221,7 +221,7 @@ async function clickPassExam(id: string) {
//
const link = document.createElement("a");
link.href = url;
link.download = `รายชื่อผู้สอบคัดเลือกคนพิการได้.pdf`; //
link.download = `รายชื่อผู้สอบคัดเลือกได้.pdf`; //
document.body.appendChild(link);
link.click();
@ -274,7 +274,7 @@ async function clickCandidateList(id: string) {
//
const link = document.createElement("a");
link.href = url;
link.download = `รายชื่อผู้มีสิทธิ์สอบคัดเลือกคนพิการ.pdf`; //
link.download = `รายชื่อผู้มีสิทธิ์สอบคัดเลือก.pdf`; //
document.body.appendChild(link);
link.click();
@ -434,7 +434,7 @@ async function clickCloseScore() {
files_score.value = null;
}
/** ปิด dialog เลือกไฟล์ผู้สมัครคัดเลือกคนพิการ */
/** ปิด dialog เลือกไฟล์ผู้สมัครคัดเลือก */
async function clickCloseCandidate() {
modalCandidate.value = false;
files_candidate.value = null;
@ -521,7 +521,7 @@ async function checkSave() {
await http
.post(config.API.saveDisableCandidates, fd)
.then((res) => {
success($q, "นำเข้าข้อมูลผู้สมัครคัดเลือกคนพิการสำเร็จ");
success($q, "นำเข้าข้อมูลผู้สมัครคัดเลือกสำเร็จ");
modalAdd.value = false;
fetchData();
})
@ -548,7 +548,7 @@ onMounted(async () => {
</script>
<template>
<div class="toptitle text-dark col-12 row items-center">
ดการรอบคดเลอกคนพการ
ดการรอบคดเลอกนๆ
</div>
<q-card flat bordered class="col-12 q-mt-sm q-pt-sm q-pa-md">
<div>
@ -834,7 +834,7 @@ onMounted(async () => {
<q-input
outlined
v-model="name"
label="ชื่อการคัดเลือกคนพิการ"
label="ชื่อการคัดเลือกอื่นๆ"
dense
autogrow
lazy-rules
@ -870,7 +870,7 @@ onMounted(async () => {
<q-file
v-model="files"
dense
label="เลือกไฟล์รายชื่อผู้สมัครคัดเลือกคนพิการ"
label="เลือกไฟล์รายชื่อผู้สมัครคัดเลือกอื่นๆ"
outlined
use-chips
multiple

View file

@ -1,4 +1,4 @@
<!-- page:ดการรอบคดเลอกคนพการ สรรหา -->
<!-- page:ดการรอบคดเลอกนๆ สรรหา -->
<script setup lang="ts">
import { onMounted, ref, watch } from "vue";
import { useQuasar, QForm } from "quasar";
@ -174,7 +174,7 @@ async function addData() {
const imgUpload = await uploadImgData();
const docUpload = await uploadDocData();
if (imgUpload && docUpload) {
success($q, "บันทึกรอบการสอบคัดเลือกคนพิการสำเร็จ");
success($q, "บันทึกรอบการสอบคัดเลือกอื่นๆ สำเร็จ");
clickBack();
}
})
@ -198,7 +198,7 @@ async function editData(id: string) {
const imgUpload = await uploadImgData();
const docUpload = await uploadDocData();
if (imgUpload && docUpload) {
success($q, "แก้ไขรอบการสอบคัดเลือกคนพิการสำเร็จ");
success($q, "แก้ไขรอบการสอบคัดเลือกสำเร็จ");
clickBack();
}
})
@ -380,9 +380,7 @@ onMounted(async () => {
class="q-mr-sm"
@click="clickBack"
/>
{{
edit ? "แก้ไขข้อมูลการคัดเลือกคนพิการ" : "เพิ่มข้อมูลการคัดเลือกคนพิการ"
}}
{{ edit ? "แก้ไขข้อมูลการคัดเลือกอื่นๆ" : "เพิ่มข้อมูลการคัดเลือกอื่นๆ" }}
</div>
<q-card flat bordered class="col-12">
<q-form ref="myForm">
@ -393,12 +391,12 @@ onMounted(async () => {
<q-input
outlined
v-model="name"
label="ชื่อรอบคัดเลือกคนพิการ/ชื่อประกาศ"
label="ชื่อรอบคัดเลือก/ชื่อประกาศ"
dense
lazy-rules
:rules="[
(val:string) =>
!!val || `${'กรุณากรอกชื่อรอบคัดเลือกคนพิการ/ชื่อประกาศ'}`,
!!val || `${'กรุณากรอกชื่อรอบคัดเลือก/ชื่อประกาศ'}`,
]"
></q-input>
</div>

View file

@ -1,7 +1,7 @@
<!-- page:ดการรอบการสอบ สรรหา -->
<template>
<div class="toptitle text-dark col-12 row items-center">
สถสมครคดเลอกคนพการ
สถสมครคดเลอกนๆ
</div>
<q-card flat bordered class="col-12 q-mt-sm q-px-md q-py-sm">
<iframe