diff --git a/public/File/บัญชีรวมคะแนนทั้งหมด (เรียงตามเลขประจำตัวสอบ).xlsx b/public/File/บัญชีรวมคะแนนทั้งหมด (เรียงตามเลขประจำตัวสอบ).xlsx deleted file mode 100644 index 583c3aeec..000000000 Binary files a/public/File/บัญชีรวมคะแนนทั้งหมด (เรียงตามเลขประจำตัวสอบ).xlsx and /dev/null differ diff --git a/public/File/ผลการสอบแข่งขันฯ (บัญชีรายชื่อ).xlsx b/public/File/ผลการสอบแข่งขันฯ (บัญชีรายชื่อ).xlsx deleted file mode 100644 index 3e012c58c..000000000 Binary files a/public/File/ผลการสอบแข่งขันฯ (บัญชีรายชื่อ).xlsx and /dev/null differ diff --git a/public/File/สรรหา_สอบคัดเลือกคนพิการ_จำนวนที่บันทึกผลสอบ.xlsx b/public/File/สรรหา_สอบคัดเลือกคนพิการ_จำนวนที่บันทึกผลสอบ.xlsx deleted file mode 100644 index 67037ac8b..000000000 Binary files a/public/File/สรรหา_สอบคัดเลือกคนพิการ_จำนวนที่บันทึกผลสอบ.xlsx and /dev/null differ diff --git a/public/File/สรรหา_สอบคัดเลือกคนพิการ_จำนวนผู้สอบทั้งหมด.xlsx b/public/File/สรรหา_สอบคัดเลือกคนพิการ_จำนวนผู้สอบทั้งหมด.xlsx deleted file mode 100644 index 910e79e5a..000000000 Binary files a/public/File/สรรหา_สอบคัดเลือกคนพิการ_จำนวนผู้สอบทั้งหมด.xlsx and /dev/null differ diff --git a/public/File/สรรหาสอบแข่งขัน_จำนวนที่บันทึกผลสอบ.xlsx b/public/File/สรรหาสอบแข่งขัน_จำนวนที่บันทึกผลสอบ.xlsx deleted file mode 100644 index 16538b2e3..000000000 Binary files a/public/File/สรรหาสอบแข่งขัน_จำนวนที่บันทึกผลสอบ.xlsx and /dev/null differ diff --git a/src/modules/03_recruiting/views/01_compete/DetailEx.vue b/src/modules/03_recruiting/views/01_compete/DetailEx.vue index 4972f0819..eaf1e7b4f 100644 --- a/src/modules/03_recruiting/views/01_compete/DetailEx.vue +++ b/src/modules/03_recruiting/views/01_compete/DetailEx.vue @@ -332,10 +332,10 @@ onMounted(async () => { ภาคความรู้ความสามารถที่ใช้เฉพาะตำแหน่ง (ภาค ข)
- {{ scoreAFull }} + {{ scoreAFull ? scoreAFull:'-' }}
- {{ scoreA }} + {{ scoreA ? scoreA:'-' }}
คะแนน
diff --git a/src/modules/03_recruiting/views/01_compete/Period.vue b/src/modules/03_recruiting/views/01_compete/Period.vue index 6019fc9f6..0c182fd7b 100644 --- a/src/modules/03_recruiting/views/01_compete/Period.vue +++ b/src/modules/03_recruiting/views/01_compete/Period.vue @@ -296,7 +296,7 @@ async function clickEdit(id: string) { */ async function clickResult(id: string) { modalResult.value = true; - textTittleResult.value = "นำเข้าไฟล์ผลการสอบแข่งขันฯ (บัญชีรายชื่อ)"; + textTittleResult.value = "นำเข้าไฟล์ผลการสอบ"; selected_row_id.value = id; } @@ -706,7 +706,7 @@ onMounted(async () => { > นำเข้าไฟล์ผลการสอบแข่งขันฯ (บัญชีรายชื่อ)นำเข้าไฟล์ผลการสอบ (บัญชีรายชื่อ)
@@ -722,7 +722,7 @@ onMounted(async () => { icon="mdi-file-excel-outline" > นำเข้าไฟล์ผลการสอบแข่งขันฯ (บัญชีรายชื่อ) + >นำเข้าไฟล์ผลการสอบ (บัญชีรายชื่อ) อีกครั้ง @@ -956,7 +956,7 @@ onMounted(async () => { @@ -965,7 +965,7 @@ onMounted(async () => { ([ "examID", "profileID", "fullName", + "hddPosition", "dateOfBirth", "gender", "position_name", @@ -83,6 +84,15 @@ const columns = ref([ headerStyle: "font-size: 14px; min-width: 250px", style: "font-size: 14px; ", }, + { + name: "hddPosition", + align: "left", + label: "บัญชีสอบ", + sortable: true, + field: "hddPosition", + headerStyle: "font-size: 14px; min-width: 250px", + style: "font-size: 14px; ", + }, { name: "dateOfBirth", align: "left", diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue index dfc4cabaa..4e8f6b00b 100644 --- a/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue +++ b/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue @@ -35,6 +35,9 @@ const scoreSumFull = ref(""); const scoreSum = ref(""); const examOrder = ref(""); const number = ref(""); +const scoreDFull = ref(""); +const scoreD = ref(""); +const typeTest = ref(""); const score_expired = ref(""); const examID = ref("62150001"); const prefix = ref("นาย"); @@ -64,6 +67,7 @@ async function fetchData() { number.value = data.number; examOrder.value = data.examOrder; score_expired.value = data.scoreExpire; + typeTest.value = data.typeTest; if (data.scoreResult != null) { scoreAFull.value = data.scoreResult.scoreAFull; scoreA.value = data.scoreResult.scoreA; @@ -74,6 +78,8 @@ async function fetchData() { scoreSumFull.value = data.scoreResult.scoreSumFull; scoreSum.value = data.scoreResult.scoreSum; examResultinscore.value = data.scoreResult.examResult; + scoreDFull.value = data.scoreResult.scoreDFull; + scoreD.value = data.scoreResult.scoreD; } } else { dialogMessageNotify($q, "แข่งขัน ไม่พบข้อมูล"); @@ -160,82 +166,82 @@ onMounted(async () => { เลขประจำตัวประชาชน
- {{ profile_id }} + {{ profile_id ? profile_id : "-" }}
คำนำหน้าชื่อนาม
- {{ prefix }} + {{ prefix ? prefix : "-" }}
ชื่อ-นามสกุล
- {{ fullname }} + {{ fullname ? fullname : "-" }}
วัน/เดือน/ปี เกิด
- {{ birthdate }} + {{ birthdate ? birthdate : "-" }}
เพศ
- {{ gender }} + {{ gender ? gender : "-" }}
ตำแหน่งที่สมัคร
- {{ position_name }} + {{ position_name ? position_name : "-" }}
สถานศึกษา
- {{ university }} + {{ university ? university : "-" }}
วุฒิการศึกษา
- {{ degree }} + {{ degree ? degree : "-" }}
สาขาวิชาเอก
- {{ major }} + {{ major ? major : "-" }}
ครั้งที่ประกาศรับสมัคร
- {{ examOrder }} + {{ examOrder ? examOrder : "-" }}
ใบอนุญาตประกอบวิชาชีพ วัน เดือน ปีที่ได้รับ
- {{ cert_issuedate }} + {{ cert_issuedate ? cert_issuedate : "-" }}
สถานะการคัดกรองคุณสมบัติ
- {{ examAttribute }} + {{ examAttribute ? examAttribute : "-" }}
@@ -288,10 +294,23 @@ onMounted(async () => { ดาวน์โหลดผลคะแนน -
-
+
+
ประเภท
+
+ ภาคความรู้ความสามารถทั่วไป (ภาค ก) +
+
+ {{ typeTest == "bangkok" ? "กทม." : "ก.พ." }} +
+
+
+ +
+
คะแนนเต็ม
@@ -301,40 +320,46 @@ onMounted(async () => {
- -
ภาค ก
-
- {{ scoreAFull }} +
+ ภาคความรู้ความสามารถที่ใช้เฉพาะตำแหน่ง (ภาค ข)
- {{ scoreA }} + {{ scoreAFull ? scoreAFull : "-" }} +
+
+ {{ scoreA ? scoreA : "-" }}
คะแนน
-
ภาค ข
-
- {{ scoreBFull }} +
+ ภาคความเหมาะสมกับตำแหน่ง (ภาค ค) +
+ +
+ - ทดสอบสมรรถนะ และทดสอบจิตวิทยาฯ
- {{ scoreB }} + {{ scoreCFull ? scoreCFull : "-" }} +
+
+ {{ scoreC ? scoreC : "-" }}
คะแนน
- -
ภาค ค
+
- สัมภาษณ์
- {{ scoreCFull }} + {{ scoreDFull ? scoreDFull : "-" }}
- {{ scoreC }} + {{ scoreD ? scoreD : "-" }}
คะแนน
รวมทั้งหมด
- {{ scoreSumFull }} + {{ scoreSumFull ? scoreSumFull : "-" }}
- {{ scoreSum }} + {{ scoreSum ? scoreSum : "-" }}
คะแนน
@@ -356,7 +381,7 @@ onMounted(async () => { วันหมดอายุบัญชีคัดเลือกคนพิการ
- {{ score_expired }} + {{ score_expired ? score_expired : "-" }}
diff --git a/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue b/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue index 84176e4fd..3af2c648e 100644 --- a/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue +++ b/src/modules/03_recruiting/views/02_qualify/DisablePeriod.vue @@ -41,10 +41,12 @@ const year = ref(new Date().getFullYear() + 543); const round = ref(1); const files = ref(null); const files_score = ref(null); +const files_result = ref(null); const files_candidate = ref(null); const modalAdd = ref(false); const modalScore = ref(false); const modalCandidate = ref(false); +const modalResult = ref(false); const selected_row_id = ref(""); const rowsHistory = ref([]); //select data history const tittleHistory = ref("ประวัติการนำเข้าข้อมูล"); // @@ -56,6 +58,7 @@ const filterHistory = ref(""); //search data table const textTittle = ref(""); const textTittleScore = ref(""); const textTittleCandidate = ref(""); +const textTittleResult = ref(""); const initialPagination = ref({ rowsPerPage: 0, sortBy: "year", @@ -67,6 +70,7 @@ const visibleColumns = ref([ "year", "examCount", "scoreCount", + "result", ]); const columns = ref([ @@ -112,7 +116,7 @@ const columns = ref([ }, { name: "examCount", - label: "จำนวนผู้สอบทั้งหมด", + label: "ข้อมูลผู้สมัครสอบ", align: "right", field: "examCount", sortable: true, @@ -121,13 +125,22 @@ const columns = ref([ }, { name: "scoreCount", - label: "จำนวนที่บันทึกผลสอบ", + label: "บัญชีรวมคะแนน", align: "right", field: "scoreCount", sortable: true, headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "result", + label: "ผลการสอบ", + align: "right", + field: "result", + sortable: true, + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, ]); const columnsHistory = ref([ @@ -177,7 +190,7 @@ async function clickPassExam(id: string) { .then(async (res) => { const data = res.data.result; data.reportName = `CandidateList`; - await genReport(data, data.reportName, "pdf"); + await genReport(data, "รายชื่อผู้สอบแข่งขันได้", "pdf"); }) .catch(async (e) => { messageError($q, e); @@ -195,7 +208,7 @@ async function clickCandidateList(id: string) { .then(async (res) => { const data = res.data.result; data.reportName = `CandidateList`; - await genReport(data, data.reportName, "pdf"); + await genReport(data, "รายชื่อผู้มีสิทธิ์สอบ", "pdf"); }) .catch(async (e) => { messageError($q, e); @@ -256,14 +269,24 @@ function clickDetail(id: string) { /** นำเข้าไฟล์ผลคะแนนสอบ */ async function clickEdit(id: string) { modalScore.value = true; - textTittleScore.value = "นำเข้าผลการคัดเลือกคนพิการ"; + textTittleScore.value = "นำเข้าบัญชีรวมคะแนน"; selected_row_id.value = id; } /** นำเข้าไฟล์ผู้สมัครสอบ */ async function clickUpload(id: string) { modalCandidate.value = true; - textTittleCandidate.value = "นำเข้าผู้สมัครคัดเลือกคนพิการ"; + textTittleCandidate.value = "นำเข้าผู้สมัครสอบคัดเลือก"; + selected_row_id.value = id; +} + +/** + * นำเข้าไฟล์ลำดับ + * @param id รอบสอบเเข่งขัน + */ +async function clickResult(id: string) { + modalResult.value = true; + textTittleResult.value = "นำเข้าไฟล์ผลการสอบ"; selected_row_id.value = id; } @@ -345,6 +368,12 @@ async function clickCloseCandidate() { files_candidate.value = null; } +/** ปิด dialog เลือกไฟล์ผลการสอบ */ +async function clickCloseResult() { + modalResult.value = false; + files_result.value = null; +} + /** บันทึก รอบการคัดเลือก */ async function checkSaveCandidate() { const fd = new FormData(); @@ -387,6 +416,28 @@ async function checkSaveScore() { }); } +/** บันทึกข้อมูล เลือกไฟล์ผลการสอบแข่งขันฯ */ +async function checkSaveResult() { + const fd = new FormData(); + fd.append("attachment", files_result.value[0]); + showLoader(); + await http + .post(config.API.uploadResult(selected_row_id.value), fd) + .then((res) => { + success($q, "นำเข้าข้อมูลผลการสอบแข่งขันฯ (บัญชีรายชื่อ)"); + modalResult.value = false; + files_result.value = null; + selected_row_id.value = ""; + fetchData(); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + }); +} + /** บันทึกข้อมูล */ async function checkSave() { const fd = new FormData(); @@ -513,7 +564,9 @@ onMounted(async () => { name="mdi-history" /> - แสดงประวัติการนำเข้าข้อมูล + แสดงประวัติการนำเข้าข้อมูล @@ -526,54 +579,6 @@ onMounted(async () => {
{{ col.value }}
-
- - - - นำเข้าไฟล์ผลคะแนนสอบ - -
- {{ col.value }} - - นำเข้าไฟล์ผลคะแนนสอบอีกครั้ง - - - - ดาวน์โหลดรายชื่อผู้สอบคัดเลือกคนพิการได้ - -
-
{
+
+ + + + นำเข้าไฟล์ผลคะแนนสอบ + +
+ {{ col.value }} + + นำเข้าไฟล์ผลคะแนนสอบอีกครั้ง + +
+
+ +
+ + + นำเข้าไฟล์ผลการสอบ (บัญชีรายชื่อ) + +
+ {{ props.row.score.resultCount }} + + นำเข้าไฟล์ผลการสอบ (บัญชีรายชื่อ) อีกครั้ง + + + + ดาวน์โหลดรายชื่อผู้สอบแข่งขันได้ + +
+
+
{{ col.value }}
@@ -738,13 +828,57 @@ onMounted(async () => { - + + + +
+
+ + + +
+
+
+ + + + + บันทึก + + +
+
+
+ + + + + @@ -753,7 +887,7 @@ onMounted(async () => { { - +
{ flat round color="public" - @click="checkSaveCandidate" + @click="checkSaveResult" icon="mdi-content-save-outline" > บันทึก