From 55905c8cecfdf05395699c358d2f2bfd2cf78ecd Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 22 Apr 2025 12:35:09 +0700 Subject: [PATCH 1/7] =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87?= =?UTF-8?q?=E0=B8=AA=E0=B8=B1=E0=B8=87=E0=B8=81=E0=B8=B1=E0=B8=94=E0=B8=82?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=97?= =?UTF-8?q?=E0=B8=94=E0=B8=A5=E0=B8=AD=E0=B8=87=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_placement/components/probation/ProbationDetail.vue | 4 +++- src/modules/14_KPI/views/mainDetail.vue | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/05_placement/components/probation/ProbationDetail.vue b/src/modules/05_placement/components/probation/ProbationDetail.vue index 0ab9679f6..cf4ad1e31 100644 --- a/src/modules/05_placement/components/probation/ProbationDetail.vue +++ b/src/modules/05_placement/components/probation/ProbationDetail.vue @@ -362,7 +362,9 @@ onMounted(async () => {
สังกัด
-
{{ organization }}
+
+ {{ organization.replace("\\n", "\n") }} +
diff --git a/src/modules/14_KPI/views/mainDetail.vue b/src/modules/14_KPI/views/mainDetail.vue index 9a81e01f2..2c76bc4aa 100644 --- a/src/modules/14_KPI/views/mainDetail.vue +++ b/src/modules/14_KPI/views/mainDetail.vue @@ -35,7 +35,6 @@ const router = useRouter(); const route = useRoute(); const id = ref(route.params.id as string); - const idEva = ref(route.params.id as string); const formData = reactive({ prefix: "", @@ -119,7 +118,7 @@ function onResize(size: any) { * fetch ข้แมูลส่วนตัว */ - // เส้นเก่าที่เคยใช้ .get(config.API.kpiEvaluationUser + `/admin/${id.value}`) +// เส้นเก่าที่เคยใช้ .get(config.API.kpiEvaluationUser + `/admin/${id.value}`) async function getMain() { showLoader(); await http @@ -303,7 +302,7 @@ onMounted(async () => { }}
- {{ formData.org ? formData.org : "-" }} + {{ formData.org ? formData.org.replace("\\n", "\n") : "-" }}
From c90e22b037904fa0fe0739fdd419426ef46f86e8 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 22 Apr 2025 15:40:30 +0700 Subject: [PATCH 2/7] =?UTF-8?q?#closed=20issue=20#1416=20=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=8A=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 13 ++++++++++--- .../07_insignia/components/2_Manage/Tab2.vue | 10 +++++++--- .../07_insignia/components/2_Manage/Tab3.vue | 10 +++++++--- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 65cf5d6ab..245098a8c 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -715,13 +715,15 @@ async function fecthInsignia() { } const personId = ref(""); +const profileType = ref(""); /** * function redirect to ทะเบียนประวัติ * @param id profileId */ -function nextPage(id: string) { +function nextPage(id: string, type: string) { modalPersonal.value = true; personId.value = id; + profileType.value = type; } function updatemodalPersonal(modal: boolean) { @@ -1148,7 +1150,9 @@ onMounted(async () => { @@ -1217,7 +1221,9 @@ onMounted(async () => { flat round dense - @click.stop="nextPage(props.row.profileId)" + @click.stop=" + nextPage(props.row.profileId, props.row.employeeClass) + " > ดูข้อมูลทะเบียนประวัติ @@ -1698,6 +1704,7 @@ onMounted(async () => { diff --git a/src/modules/07_insignia/components/2_Manage/Tab2.vue b/src/modules/07_insignia/components/2_Manage/Tab2.vue index 2d757afab..807e1df29 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab2.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab2.vue @@ -170,14 +170,15 @@ function changtypeOc() { const modalPersonal = ref(false); const personId = ref(""); - +const profileType = ref(""); /** * function redirect ทะเบียนประวัติิ * @param id profileId */ -function nextPage(id: string) { +function nextPage(id: string, type: string) { modalPersonal.value = true; personId.value = id; + profileType.value = type; } function updatemodalPersonal(modal: boolean) { @@ -474,7 +475,9 @@ watch( flat round color="info" - @click="nextPage(props.row.profileId)" + @click=" + nextPage(props.row.profileId, props.row.employeeClass) + " icon="mdi-eye" > ดูข้อมูลทะเบียนประวัติ @@ -545,6 +548,7 @@ watch( diff --git a/src/modules/07_insignia/components/2_Manage/Tab3.vue b/src/modules/07_insignia/components/2_Manage/Tab3.vue index 76514f23d..85a7b14bb 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab3.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab3.vue @@ -170,14 +170,15 @@ async function changtypeOc() { const modalPersonal = ref(false); const personId = ref(""); - +const profileType = ref(""); /** * function redirect ทะเบียนประวัติิ * @param id profileId */ -function nextPage(id: string) { +function nextPage(id: string, type: string) { modalPersonal.value = true; personId.value = id; + profileType.value = type; } function updatemodalPersonal(modal: boolean) { @@ -472,7 +473,9 @@ onMounted(async () => { flat round color="info" - @click="nextPage(props.row.profileId)" + @click=" + nextPage(props.row.profileId, props.row.employeeClass) + " icon="mdi-eye" > ดูข้อมูลทะเบียนประวัติ @@ -542,6 +545,7 @@ onMounted(async () => { From 662e85c2bc7bc6bf4b536b6351154b66f90b2ba7 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 22 Apr 2025 15:54:06 +0700 Subject: [PATCH 3/7] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=82=E0=B8=AD=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=E0=B9=83=E0=B8=9A=E0=B8=AD=E0=B8=99=E0=B8=B8=E0=B8=8D?= =?UTF-8?q?=E0=B8=B2=E0=B8=95=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A=E0=B8=A7=E0=B8=B4=E0=B8=8A=E0=B8=B2=E0=B8=8A=E0=B8=B5?= =?UTF-8?q?=E0=B8=9E=20=E0=B9=83=E0=B8=99=E0=B8=82=E0=B8=AD=E0=B9=81?= =?UTF-8?q?=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=97=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04_registryPerson/stores/RequestEdit.ts | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/modules/04_registryPerson/stores/RequestEdit.ts b/src/modules/04_registryPerson/stores/RequestEdit.ts index f4745dbe3..dbed06f3a 100644 --- a/src/modules/04_registryPerson/stores/RequestEdit.ts +++ b/src/modules/04_registryPerson/stores/RequestEdit.ts @@ -3,16 +3,20 @@ import { ref } from "vue"; import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main"; export const useRequestEditStore = defineStore("requestEditStore", () => { - const profileId = ref('') + const profileId = ref(""); const optionTopic = ref([ - "ขอแก้ไขคำนำหน้านาม ชื่อ นามสกุล", + "ขอปรับปรุงข้อมูลจากกรมการปกครอง", "ขอแก้ไขรูปภาพประจำตัว", - "ขอแก้ไขชื่อ - นามสกุล คู่สมรส", - "ขอแก้ไขชื่อ - นามสกุล บิดา", - "ขอแก้ไขชื่อ - นามสกุล มารดา", - "ขอแก้ไขข้อมูลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/เหรียญจักรพรรดิมาลา", - "ขอแก้ไขประกาศเกียรติคุณ", + "ขอแก้ไขข้อมูล คู่สมรส", + "ขอแก้ไขข้อมูล บิดา", + "ขอแก้ไขข้อมูล มารดา", + "ขอแก้ไขข้อมูลบุตร", + "ขอแก้ไขข้อมูลเครื่องราชฯ เหรียญจักรพรรดิมาลา", "ขอแก้ไขข้อมูลประวัติการศึกษา", + "ขอแก้ไขข้อมูลประวัติการฝึกอบรม", + "ขอแก้ไขใบอนุญาตประกอบวิชาชีพ", + "ขอแก้ไขที่อยู่ปัจจุบัน", + "ขอแก้ไขใบอนุญาตประกอบวิชาชีพ", ]); const optionStatus = ref([ { id: "", name: "ทั้งหมด" }, @@ -59,6 +63,6 @@ export const useRequestEditStore = defineStore("requestEditStore", () => { optionStatus, optionStatusIDP, convertStatusIDP, - profileId + profileId, }; }); From f5261b2b4d4225fe57507193046a85ac8c6898ac Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 23 Apr 2025 10:29:03 +0700 Subject: [PATCH 4/7] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=20Eva?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/12_evaluatePersonal/api.evaluate.ts | 12 +- .../components/Detail/step/step2.vue | 204 ++- .../components/Detail/step/step3.vue | 154 +-- .../components/Detail/step/step4.vue | 571 +++++++-- .../components/Detail/step/step6.vue | 254 ++-- .../components/Detail/step/step7.vue | 13 +- .../components/Detail/step/step8.vue | 1107 +++++------------ .../components/Detail/viewstep/viewStep1.vue | 25 +- .../interface/index/evalute.ts | 6 + .../store/EvaluateDetail.ts | 88 +- 10 files changed, 1207 insertions(+), 1227 deletions(-) diff --git a/src/api/12_evaluatePersonal/api.evaluate.ts b/src/api/12_evaluatePersonal/api.evaluate.ts index 62bd3c98d..a81c62e8c 100644 --- a/src/api/12_evaluatePersonal/api.evaluate.ts +++ b/src/api/12_evaluatePersonal/api.evaluate.ts @@ -9,10 +9,10 @@ export default { evaluationMain: () => `${evaluation}`, evaluateGetDetail: (id: string) => `${evaluation}/admin/check-spec/${id}`, - evaluateGetReport: (id: string) => `${evaluation}/report/check-spec-report/${id}`, + evaluateGetReport: (id: string) => + `${evaluation}/report/check-spec-report/${id}`, evaluateGetStep: (id: string) => `${evaluation}/check/admin/${id}`, - meeting: () => `${evaluation}/meeting`, meetingById: (id: string) => `${evaluation}/meeting/${id}`, meetingFilebyId: (volume: string, id: string) => @@ -28,6 +28,9 @@ export default { evaluationNext5To6: (id: string) => `${evaluation}/announce/${id}`, evaluationNextFinish: (id: string) => `${evaluation}/wait-check-doc-v2/${id}`, + evaluationAnnounceTemplete: (type: string, id: string) => + `${evaluation}/${type}-announce-template/${id}`, + evaluationHistory: (id: string) => `${evaluation}/step-history/${id}`, evaluationDateAnnounce: (id: string) => @@ -47,7 +50,8 @@ export default { `${evaluation}/choose-meetings/${id}`, evaluationListData: (id: string) => `${evaluation}/director-meeting/${id}`, - evaluationReport:`${evaluation}/report`, + evaluationReport: `${evaluation}/report`, - updateEvaluationResult:(id:string) =>`${evaluation}/updateEvaluationResult/${id}` + updateEvaluationResult: (id: string) => + `${evaluation}/updateEvaluationResult/${id}`, }; diff --git a/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue b/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue index 1ee96e01d..122218c2e 100644 --- a/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue +++ b/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue @@ -1,3 +1,4 @@ +div diff --git a/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue b/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue index dc1ad5ddc..d18a5ec92 100644 --- a/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue +++ b/src/modules/12_evaluatePersonal/components/Detail/step/step4.vue @@ -1,5 +1,5 @@ @@ -394,6 +564,124 @@ onMounted(async () => { + +
+ +
+ เอกสารเล่มที่ 1 (ฉบับแก้ไข) +
+
+ + + + + {{ file.title }} + + +
+
+ + ดาวน์โหลดไฟล์ + +
+
+
+
+
+
+
+ +
+ +
+
{{ item.title }}
+ +
+ + ดาวน์โหลดต้นแบบ +
+
+ + ดูไฟล์เอกสาร +
+
+
+
+
+
+ + + + +
+
+
+
+
+
@@ -401,6 +689,17 @@ onMounted(async () => { class="text-weight-medium row col-12 bg-grey-1 q-py-sm q-px-md items-center" >
ประกาศผลการคัดเลือกบุคคล (เอกสารหมายเลข 10)
+ + + แก้ไขประกาศ +
{ dense color="primary" icon="mdi-upload " - @click="upLoadFile(fileEvaluationUpload)" + @click=" + upLoadFile( + fileEvaluationUpload, + '10-ประกาศผลการคัดเลือกบุคคล (เอกสารหมายเลข 10)' + ) + " >อัปโหลดไฟล์ @@ -498,22 +802,15 @@ onMounted(async () => { - - - ติดต่อผู้ขอประเมิน - - + - - - - + +
{ />
-
-
- + + -
- - -
+
+ + +
+ +
+
+ + + + + + + + +
+
+ +
+
+ +
+
+
+ + + + + บันทึกข้อมูล + + +
diff --git a/src/modules/12_evaluatePersonal/components/Detail/step/step6.vue b/src/modules/12_evaluatePersonal/components/Detail/step/step6.vue index 4f69df166..29227328f 100644 --- a/src/modules/12_evaluatePersonal/components/Detail/step/step6.vue +++ b/src/modules/12_evaluatePersonal/components/Detail/step/step6.vue @@ -21,19 +21,22 @@ const id = ref(route.params.id as string); //id ประเมิน const formCommand = reactive({ elementaryFullName: "", //ชื่อ-นามสกุลผู้บังคับบัญชาชั้นต้น elementaryPosition: "", //ตำแหน่งผู้บังคับบัญชาชั้นต้น + elementaryPositionOld: "", //ตำแหน่งเดิมผู้บังคับบัญชาชั้นต้น + elementaryOrg: "", //สังกัดผู้บังคับบัญชาชั้นต้น + elementaryOrgOld: "", //สังกัดเดิมผู้บังคับบัญชาชั้นต้น abovelevelFullname: "", //ชื่อ-นามสกุลผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ abovelevelPosition: "", //ตำแหน่งผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ + abovelevelPositionOld: "", //ตำแหน่งเดิมผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ + abovelevelOrg: "", //สังกัดผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ + abovelevelOrgOld: "", //สังกัดเดิมผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ }); const author = ref(""); //เจ้าของผลงาน -const subject = ref(""); //ชื่อผลงาน +const subject = ref([""]); //ชื่อผลงาน const assignedPosition = ref(""); //ตำแหน่งที่ได้รับ const dateEndPrepareDoc2 = ref(); //วันสุดท้ายของการส่งผลงาน -/** - * function เรียกข้อมูลวันที่ประกาศ - */ +/** function เรียกข้อมูลวันที่ประกาศ*/ async function getDate() { - showLoader(); await http .get(config.API.evaluationDateAnnounce(id.value)) .then((res) => { @@ -44,11 +47,6 @@ async function getDate() { }) .catch((e) => { messageError($q, e); - }) - .finally(() => { - setTimeout(() => { - hideLoader(); - }, 1500); }); } @@ -56,7 +54,6 @@ async function getDate() { * function เรียกข้อมูลผลงาน */ async function getSigner() { - showLoader(); await http .get(config.API.evaluationSigner(id.value, 2)) .then((res) => { @@ -64,8 +61,14 @@ async function getSigner() { if (data) { formCommand.elementaryFullName = data.commanderFullnameDoc2; formCommand.elementaryPosition = data.commanderPositionDoc2; + formCommand.elementaryPositionOld = data.commanderPositionOldDoc2; + formCommand.elementaryOrg = data.commanderOrgDoc2; + formCommand.elementaryOrgOld = data.commanderOrgOldDoc2; formCommand.abovelevelFullname = data.commanderAboveFullnameDoc2; formCommand.abovelevelPosition = data.commanderAbovePositionDoc2; + formCommand.abovelevelPositionOld = data.commanderAbovePositionOldDoc2; + formCommand.abovelevelOrg = data.commanderAboveOrgDoc2; + formCommand.abovelevelOrgOld = data.commanderAboveOrgOldDoc2; author.value = data.authorDoc2; subject.value = data.subjectDoc2; assignedPosition.value = data.assignedPosition; @@ -73,16 +76,18 @@ async function getSigner() { }) .catch((e) => { messageError($q, e); - }) - .finally(() => { - setTimeout(() => { - hideLoader(); - }, 1500); }); } onMounted(async () => { - await Promise.all([getSigner(), getDate()]); + try { + showLoader(); + await Promise.all([getSigner(), getDate()]); + } catch (error) { + console.log(error); + } finally { + hideLoader(); + } }); @@ -104,47 +109,47 @@ onMounted(async () => {
ผลงาน
-
-
-
-
-
- - - -
+ +
+
+
+ + +
+ +
+
+
@@ -159,48 +164,81 @@ onMounted(async () => { เลือกผู้เซ็นเอกสาร
-
-
-
+
+
+
ผู้บังคับบัญชาชั้นต้น
-
+
- +
+
+ + + + + + +
+
-
+
ผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ
-
+
{ lazy-rules hide-bottom-space /> - + +
+
+ + + + + + +
+
diff --git a/src/modules/12_evaluatePersonal/components/Detail/step/step7.vue b/src/modules/12_evaluatePersonal/components/Detail/step/step7.vue index 2f40443f1..cae9a2c2b 100644 --- a/src/modules/12_evaluatePersonal/components/Detail/step/step7.vue +++ b/src/modules/12_evaluatePersonal/components/Detail/step/step7.vue @@ -39,13 +39,10 @@ async function getFile(volume: number) { showLoader(); await http .get(config.API.evaluationFilebyId("เล่ม 2", id.value, fileText)) - .then((res) => { + .then(async (res) => { const link = res.data.downloadUrl; const type = res.data.fileType; - getPDF(link, type); - }) - .catch(() => { - // messageError($q, e); + await getPDF(link, type); }) .finally(() => { hideLoader(); @@ -57,9 +54,8 @@ async function getFile(volume: number) { * @param url linkLoadFile * @param type ประเภทไฟล์ */ -function getPDF(url: string, type: string) { - showLoader(); - axios +async function getPDF(url: string, type: string) { + await axios .get(url, { method: "GET", responseType: "blob", @@ -80,7 +76,6 @@ function getPDF(url: string, type: string) { store.log = 1; store.pdfSrcStore = pdfData.pdf.value; store.numOfPagesStore = pdfData.pages.value; - hideLoader(); }, 1500); }) .catch(async (e) => { diff --git a/src/modules/12_evaluatePersonal/components/Detail/step/step8.vue b/src/modules/12_evaluatePersonal/components/Detail/step/step8.vue index 423d1caaf..01d9e8462 100644 --- a/src/modules/12_evaluatePersonal/components/Detail/step/step8.vue +++ b/src/modules/12_evaluatePersonal/components/Detail/step/step8.vue @@ -11,8 +11,7 @@ import http from "@/plugins/http"; import config from "@/app.config"; import genReport from "@/plugins/genreport"; -/** importType*/ -import type { FileEvaluationRefRef } from "@/modules/12_evaluatePersonal/interface/index/evalute"; +import DialogHeader from "@/components/DialogHeader.vue"; /** uer*/ const store = useEvaluateDetailStore(); @@ -29,26 +28,66 @@ const modalConfirm = ref(false); const nameOfWork = ref(""); const nameOfOwner = ref(""); const position = ref(""); -const fileEvaluation81 = ref(); //แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค) -const fileEvaluation82 = ref(); //บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15) -const fileEvaluation83 = ref(); //แบบประเมินผลงาน (เอกสารหมายเลข 16) -const fileEvaluation84 = ref(); //แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17) -const fileEvaluation85 = ref(); //แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18) -const fileEvaluation86 = ref(); //แบบสรุปผลการประเมิน (เอกสารแบบ ง) -const fileEvaluation81Ref = ref(null); -const fileEvaluation82Ref = ref(null); -const fileEvaluation83Ref = ref(null); -const fileEvaluation84Ref = ref(null); -const fileEvaluation85Ref = ref(null); -const fileEvaluation86Ref = ref(null); -const fileEvaluationRef: FileEvaluationRefRef = { - fileEvaluation81: fileEvaluation81Ref, - fileEvaluation82: fileEvaluation82Ref, - fileEvaluation83: fileEvaluation83Ref, - fileEvaluation84: fileEvaluation84Ref, - fileEvaluation85: fileEvaluation85Ref, - fileEvaluation86: fileEvaluation86Ref, -}; + +const formTemplates = ref([ + { + code: "เอกสารแบบ ค", + templateName: "template-4", + title: + " แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน(เอกสารแบบ ค)", + fileName: + "แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค)", + downloadFile: "", + file: null, + }, + { + code: "เอกสารหมายเลข 15", + templateName: "template-4", + title: "บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)", + fileName: "บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)", + downloadFile: "", + file: null, + }, + { + code: "เอกสารหมายเลข 16", + templateName: "template-4", + title: " แบบประเมินผลงาน (เอกสารหมายเลข 16)", + fileName: "แบบประเมินผลงาน (เอกสารหมายเลข 16)", + downloadFile: "", + file: null, + }, + { + code: "เอกสารหมายเลข 17", + templateName: "template-4", + title: " แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)", + fileName: "แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)", + downloadFile: "", + file: null, + }, + + { + code: "เอกสารหมายเลข 18", + templateName: "template-4", + title: " แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)", + fileName: "แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)", + downloadFile: "", + file: null, + }, + + { + code: "เอกสารแบบ ง", + templateName: "template-4", + title: "แบบสรุปผลการประเมิน (เอกสารแบบ ง)", + fileName: "แบบสรุปผลการประเมิน (เอกสารแบบ ง)", + downloadFile: "", + file: null, + }, +]); + +/** ติดต่อผู้ขอประเมิน*/ +const messenger = ref(""); //ข้อความ +const title = ref(""); //หัวข้อ +const modalEvaluation = ref(false); //แสดง popup ติดต่อผู้ขอประเมิน /** function ดาวน์โหลดไฟล์ต้นแบบ*/ async function onClickDowloadFile( @@ -108,6 +147,8 @@ function upLoadFile(name: string, file: any) { }) .catch((e) => { messageError($q, e); + }) + .finally(() => { hideLoader(); }); } @@ -118,8 +159,8 @@ function upLoadFile(name: string, file: any) { * @param url link อัปโหลด * @param file ไฟล์ */ -function fileUpLoad(url: string, file: any) { - axios +async function fileUpLoad(url: string, file: any) { + await axios .put(url, file, { headers: { "Content-Type": file?.type }, onUploadProgress: (e) => console.log(e), @@ -135,97 +176,62 @@ function fileUpLoad(url: string, file: any) { }); } -/** function ยืนยันผลการพิจารณา */ -async function confirmApprove() { - const fileEvaluationValues = [ - fileEvaluation81, - fileEvaluation82, - fileEvaluation83, - fileEvaluation84, - fileEvaluation85, - fileEvaluation86, - ]; - const downloadFileValues = [ - downloadFile1, - downloadFile2, - downloadFile3, - downloadFile4, - downloadFile5, - downloadFile6, - ]; - - for (let i = 0; i < downloadFileValues.length; i++) { - if (downloadFileValues[i].value === "") { - fileEvaluationValues[i].value = null; - } - } - setTimeout(() => { - const hasError = []; - for (const key in fileEvaluationRef) { - if (Object.prototype.hasOwnProperty.call(fileEvaluationRef, key)) { - const property = fileEvaluationRef[key]; - if (property.value && typeof property.value.validate === "function") { - const isValid = property.value.validate(); - hasError.push(isValid); - } +function onSubmit() { + if (formTemplates.value.some((e: any) => e.downloadFile === "")) { + for (let i = 0; i < formTemplates.value.length; i++) { + if (formTemplates.value[i].downloadFile === "") { + formTemplates.value[i].file = null; } } + } else { + modalConfirm.value = true; + } +} - if (hasError.every((result) => result === true)) { - dialogConfirm( - $q, - async () => { - showLoader(); - const data = { - metadata: { - additionalProp1: nameOfWork.value, - additionalProp2: nameOfOwner.value, - additionalProp3: position.value, - }, - }; - await http - .patch( - config.API.evaluationPatchData( - "เล่ม 2", - id.value, - "1-เอกสารเล่ม 2" - ), - data - ) - .then(async () => { - await updateEvaluationResult(); - await nextStep(); - modalConfirm.value = false; - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - hideLoader(); - }); +/** function ยืนยันผลการพิจารณา */ +async function confirmApprove() { + dialogConfirm( + $q, + async () => { + showLoader(); + const data = { + metadata: { + additionalProp1: nameOfWork.value, + additionalProp2: nameOfOwner.value, + additionalProp3: position.value, }, - "ยืนยันผลการพิจารณา", - "ต้องการยืนยันผลการพิจารณาใช่หรือไม่?" - ); - } - }, 100); + }; + await http + .patch( + config.API.evaluationPatchData("เล่ม 2", id.value, "1-เอกสารเล่ม 2"), + data + ) + .then(async () => { + await Promise.all([updateEvaluationResult(), nextStep()]); + modalConfirm.value = false; + store.step = 9; + store.currentStep = 9; + success($q, "ยืนยันผลการพิจารณาสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + }); + }, + "ยืนยันผลการพิจารณา", + "ต้องการยืนยันผลการพิจารณาใช่หรือไม่?" + ); } /** function ยืนยันผลการพิจารณา*/ -function nextStep() { - showLoader(); - http +async function nextStep() { + await http .put(config.API.evaluationNextFinish(id.value)) - .then(() => { - success($q, "ยืนยันผลการพิจารณาสำเร็จ"); - store.step = 9; - store.currentStep = 9; - }) + .then(() => {}) .catch((e) => { messageError($q, e); - }) - .finally(() => { - hideLoader(); }); } @@ -233,7 +239,6 @@ const downloadDocEditUrl = ref(""); /** function ตรวจสอบไฟล์แก้ไข*/ async function checkDocEdit() { - showLoader(); await http .get( config.API.evaluationPatchData( @@ -244,55 +249,23 @@ async function checkDocEdit() { ) .then((res: any) => { downloadDocEditUrl.value = res.data.downloadUrl; - }) - .catch((e) => { - // messageError($q, e); - }) - .finally(() => { - setTimeout(() => { - hideLoader(); - }, 2000); }); } -//ไฟล์โหล -const downloadFile1 = ref(""); //"แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค) -const downloadFile2 = ref(""); //บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)" -const downloadFile3 = ref(""); //แบบประเมินผลงาน (เอกสารหมายเลข 16) -const downloadFile4 = ref(""); //แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17) -const downloadFile5 = ref(""); //แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18) -const downloadFile6 = ref(""); //แบบสรุปผลการประเมิน (เอกสารแบบ ง) - /** * function ดาวน์โหลดไฟล์ * @param fileName ชื่อไฟล์ */ async function downloadFileList(fileName: string) { - showLoader(); await http .get(config.API.evaluationFilebyId("เล่ม 2", id.value, fileName)) .then((res) => { - if ( - fileName === - "แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค)" - ) { - downloadFile1.value = res.data.downloadUrl; - } else if (fileName === "บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)") { - downloadFile2.value = res.data.downloadUrl; - } else if (fileName === "แบบประเมินผลงาน (เอกสารหมายเลข 16)") { - downloadFile3.value = res.data.downloadUrl; - } else if (fileName === "แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)") { - downloadFile4.value = res.data.downloadUrl; - } else if (fileName === "แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)") { - downloadFile5.value = res.data.downloadUrl; - } else if (fileName === "แบบสรุปผลการประเมิน (เอกสารแบบ ง)") { - downloadFile6.value = res.data.downloadUrl; + const index = formTemplates.value.findIndex( + (item) => item.fileName === fileName + ); + if (index !== -1) { + formTemplates.value[index].downloadFile = res.data.downloadUrl; } - }) - .finally(() => { - setTimeout(() => { - hideLoader(); - }, 2000); }); } @@ -302,7 +275,6 @@ const assignedPosition = ref(""); //ตำแหน่ง /** function เรียกข้อมูลผลงาน*/ async function fetchDataSigner() { - showLoader(); await http .get(config.API.evaluationSigner(id.value, 2)) .then((res) => { @@ -312,7 +284,7 @@ async function fetchDataSigner() { subject.value = data.subjectDoc2; assignedPosition.value = data.assignedPosition; - nameOfWork.value = data.subjectDoc2; + nameOfWork.value = data.subjectDoc2[0]; nameOfOwner.value = data.authorDoc2; position.value = data.assignedPosition; evaluationResult.value = data.evaluationResult; @@ -320,20 +292,34 @@ async function fetchDataSigner() { }) .catch((e) => { messageError($q, e); - }) - .finally(() => { - setTimeout(() => { - hideLoader(); - }, 2000); }); } async function updateEvaluationResult() { - http + await http .put(config.API.updateEvaluationResult(id.value), { result: checkBox.value, }) .then(() => {}) + .catch((e) => { + messageError($q, e); + }); +} + +/** fiunction ส่งข้อความ*/ +async function onSentMessenger() { + showLoader(); + await http + .put(config.API.evaluationSentToContact(id.value), { + subject: title.value, + body: messenger.value, + }) + .then(() => { + success($q, "ส่งข้อความสำเร็จ"); + title.value = ""; + messenger.value = ""; + modalEvaluation.value = false; + }) .catch((e) => { messageError($q, e); }) @@ -343,487 +329,121 @@ async function updateEvaluationResult() { } onMounted(async () => { - await Promise.all([ - fetchDataSigner(), - downloadFileList( - "แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค)" - ), - downloadFileList("บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)"), - downloadFileList("แบบประเมินผลงาน (เอกสารหมายเลข 16)"), - downloadFileList("แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)"), - downloadFileList("แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)"), - downloadFileList("แบบสรุปผลการประเมิน (เอกสารแบบ ง)"), - checkDocEdit(), - ]); + try { + showLoader(); + await Promise.all([ + fetchDataSigner(), + formTemplates.value.forEach((e) => { + downloadFileList(e.fileName); + }), + + // downloadFileList( + // "แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค)" + // ), + // downloadFileList("บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)"), + // downloadFileList("แบบประเมินผลงาน (เอกสารหมายเลข 16)"), + // downloadFileList("แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)"), + // downloadFileList("แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)"), + // downloadFileList("แบบสรุปผลการประเมิน (เอกสารแบบ ง)"), + checkDocEdit(), + ]); + } catch (error) { + console.log(error); + } finally { + hideLoader(); + } }); diff --git a/src/modules/12_evaluatePersonal/components/Detail/viewstep/viewStep1.vue b/src/modules/12_evaluatePersonal/components/Detail/viewstep/viewStep1.vue index 5770f2253..deb8ccbbc 100644 --- a/src/modules/12_evaluatePersonal/components/Detail/viewstep/viewStep1.vue +++ b/src/modules/12_evaluatePersonal/components/Detail/viewstep/viewStep1.vue @@ -21,6 +21,7 @@ const { columnSalaries, columnTraining, columnAssessments, + columnExperience, } = store; const { date2Thai, showLoader, hideLoader } = mixin; @@ -51,6 +52,7 @@ const formDetail = reactive({ salaries: [], //ประวัติการรับราชการ trainings: [], //ประวัติการฝึกอบรมดูงาน assessments: [], //ประสบการณ์ในการปฏิบัติงาน + experience: [], }); function formattedNumber(x: number) { @@ -60,6 +62,7 @@ function formattedNumber(x: number) { onMounted(() => { if (props.data) { showLoader(); + console.log("props.data :>> ", props.data); formDetail.prefix = props.data.prefix ?? "-"; formDetail.fullName = props.data.fullName ?? "-"; formDetail.position = props.data.position ?? "-"; @@ -99,7 +102,8 @@ onMounted(() => { yearly: e.yearly, })) : []; - formDetail.assessments = props.data.assessments; + formDetail.assessments = props.data.performances; + formDetail.experience = props.data.portfolios; setTimeout(() => { hideLoader(); }, 1000); @@ -382,7 +386,11 @@ onMounted(() => { ประสบการณ์ในการปฏิบัติงาน
-
-
+ @@ -390,13 +398,12 @@ onMounted(() => { ผลงานที่เคยเสนอขอประเมิน (ถ้ามี)
-
-
- + +
diff --git a/src/modules/12_evaluatePersonal/interface/index/evalute.ts b/src/modules/12_evaluatePersonal/interface/index/evalute.ts index f707e324a..16ff58fa6 100644 --- a/src/modules/12_evaluatePersonal/interface/index/evalute.ts +++ b/src/modules/12_evaluatePersonal/interface/index/evalute.ts @@ -1,8 +1,14 @@ interface FormCommand { elementaryFullName: string; elementaryPosition: string; + elementaryPositionOld: string; + elementaryOrg: string; + elementaryOrgOld: string; abovelevelFullname: string; abovelevelPosition: string; + abovelevelPositionOld: string; + abovelevelOrg: string; + abovelevelOrgOld: string; } interface FormCommandRef { diff --git a/src/modules/12_evaluatePersonal/store/EvaluateDetail.ts b/src/modules/12_evaluatePersonal/store/EvaluateDetail.ts index ef98b0c4e..2a55289aa 100644 --- a/src/modules/12_evaluatePersonal/store/EvaluateDetail.ts +++ b/src/modules/12_evaluatePersonal/store/EvaluateDetail.ts @@ -328,97 +328,65 @@ export const useEvaluateDetailStore = defineStore("evaluateDetailStore", () => { }, ]); - /** คอลัมน์ ผลงานที่เคยเสนอขอประเมิน*/ + //ผลงานที่เคยเสนอขอประเมิน (ถ้ามี) const columnAssessments = ref([ { - name: "date", + name: "year", align: "left", - label: "วันที่ได้รับ", + label: "ปี พ.ศ.", sortable: true, - field: "date", + field: "year", headerStyle: "font-size: 14px", style: "font-size: 14px", - format: (v) => date2Thai(v), }, { - name: "point1Total", + name: "type", align: "left", - label: "ส่วนที่1 (น้ำหนัก)", + label: "ระดับตอนที่ยื่นขอ", sortable: true, - field: "point1Total", + field: "type", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "point1", + name: "subject", align: "left", - label: "ผลประเมินส่วนที่1 (คะแนน)", + label: "เรื่อง/ชื่อเรื่อง", sortable: true, - field: "point1", + field: "subject", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "point2Total", + name: "evaluationResult", align: "left", - label: "ส่วนที่2 (น้ำหนัก)", + label: "ผลการประเมิน (ผ่าน/ไม่ผ่าน)", sortable: true, - field: "point2Total", + field: "evaluationResult", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "point2", - align: "left", - label: "ผลประเมินส่วนที่2 (คะแนน)", - sortable: true, - field: "point2", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "pointSumTotal", - align: "left", - label: "ผลรวม (น้ำหนัก)", - sortable: true, - field: "pointSumTotal", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "pointSum", - align: "left", - label: "ผลประเมินรวม (คะแนน)", - sortable: true, - field: "pointSum", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, + ]); + + //ประสบการณ์ในการปฏิบัติงาน + const columnExperience = ref([ { name: "name", align: "left", - label: "ผลประเมิน", + label: "ชื่อผลงาน", sortable: true, field: "name", - format(val, row) { - return `${textPoint(row.pointSum)} ${textRangePoint(row.pointSum)}`; - }, headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, + { + name: "detail", + align: "left", + label: "รายละเอียดผลงาน", + sortable: true, + field: "detail", + headerStyle: "font-size: 14px", + style: "font-size: 14px", }, ]); @@ -452,6 +420,8 @@ export const useEvaluateDetailStore = defineStore("evaluateDetailStore", () => { columnSalaries, columnTraining, columnAssessments, + columnExperience, + pdfSrcStore, urlDownloadFile, numOfPagesStore, From 10d2614c76ffbfa8c4bc7dfee7b91ffed4ed896b Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 23 Apr 2025 13:15:05 +0700 Subject: [PATCH 5/7] =?UTF-8?q?[Bug=20=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4]=20=E0=B8=A7=E0=B8=B8=E0=B8=92?= =?UTF-8?q?=E0=B8=B4=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A8=E0=B8=B6=E0=B8=81?= =?UTF-8?q?=E0=B8=A9=E0=B8=B2=E0=B9=83=E0=B8=99=E0=B8=95=E0=B8=B3=E0=B9=81?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/DialogSortEducation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue index d75c73852..dd9a1ae14 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue @@ -307,7 +307,7 @@ watch(modal, async () => { Date: Wed, 23 Apr 2025 14:18:10 +0700 Subject: [PATCH 6/7] =?UTF-8?q?Bug=20=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Achievement/01_ProfessionalLicense.vue | 9 ++--- .../GovernmentInformation/02_Discipline.vue | 13 +++---- .../02_NameChangeHistory.vue | 36 +++++++++++++++++-- .../detail/Salary/01_PositionSalary.vue | 2 ++ .../detail/Salary/02_NotReceiveSalary.vue | 6 ++-- 5 files changed, 46 insertions(+), 20 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue index 8fc8a1551..67e9f06f3 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue @@ -240,20 +240,17 @@ async function uploadfile(subId: string) { //อัพโหลไฟล์ await uploadFile(uploadUrl, fileUpload.value); - await updateIsUpload(); + await updateIsUpload(subId); } catch (err) { messageError($q, err); } } /** ฟังก์ชันอัพเดทสถานะอัพโหลด*/ -async function updateIsUpload() { +async function updateIsUpload(subId: string) { await http .patch( - config.API.profileNewCertificateByCertificateId( - editId.value, - empType.value - ), + config.API.profileNewCertificateByCertificateId(subId, empType.value), { isUpload: fileUpload.value ? true : false, } diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue index b754ac899..62dbb8150 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue @@ -400,21 +400,18 @@ async function uploadfile(id: string) { //อัพโหลไฟล์ await uploadFile(uploadUrl, fileUpload.value); - await updateIsUpload(); + await updateIsUpload(id); } catch (err) { messageError($q, err); } } /** ฟังก์ชันอัพเดทสถานะอัพโหลด*/ -async function updateIsUpload() { +async function updateIsUpload(id: string) { await http - .patch( - config.API.profileNewDisciplineByDisciplineId(id.value, empType.value), - { - isUpload: fileUpload.value ? true : false, - } - ) + .patch(config.API.profileNewDisciplineByDisciplineId(id, empType.value), { + isUpload: fileUpload.value ? true : false, + }) .then(() => { fileUpload.value = null; }); diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue index c70426561..7f4b94024 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -618,7 +618,7 @@ onMounted(async () => { { { { + +
{ From d4270421ba4b48193eaab88a9c307523f5c7072d Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 23 Apr 2025 16:07:29 +0700 Subject: [PATCH 7/7] fixing bug org switch case break --- src/modules/02_organization/components/DialogFormAgency.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/02_organization/components/DialogFormAgency.vue b/src/modules/02_organization/components/DialogFormAgency.vue index 0abc8c71f..975082439 100644 --- a/src/modules/02_organization/components/DialogFormAgency.vue +++ b/src/modules/02_organization/components/DialogFormAgency.vue @@ -279,7 +279,7 @@ function selectOrgLevele(val: string, status: boolean = true) { id: "MISSION", }, ]; - + break; case "SECTION": orgLevelSubOptionMain.value = [ { name: "ฝ่าย", id: "FACTION" }, @@ -328,7 +328,7 @@ function selectOrgLevele(val: string, status: boolean = true) { id: "SECONDARYSCHOOL", }, ]; - + break; default: break; }