diff --git a/src/api/14_KPI/api.KPI.ts b/src/api/14_KPI/api.KPI.ts index 732ecd14d..902d5b476 100644 --- a/src/api/14_KPI/api.KPI.ts +++ b/src/api/14_KPI/api.KPI.ts @@ -69,4 +69,7 @@ export default { kpiLink, profilePosition: () => `${env.API_URI}/org/profile/keycloak/position`, + + /** Report*/ + kpiReport: () => `${KPI}/report/announcement`, }; diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 3d8f56bef..beae6906e 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -46,7 +46,6 @@ const menuList = readonly([ { key: 1, icon: "mdi-home-variant-outline", - activeIcon: "mdi-home-variant", label: "หน้าแรก", path: "dashboard", role: "dashboard", @@ -54,7 +53,6 @@ const menuList = readonly([ // { // key: 2, // icon: "o_person", - // activeIcon: "person", // label: "ข้อมูลหลัก", // path: "metadataNew", // role: "metadata", @@ -89,7 +87,6 @@ const menuList = readonly([ { key: 2, icon: "o_person", - activeIcon: "person", label: "ข้อมูลการประเมิน", path: "metadataNew", role: "evaluateKPI", @@ -133,7 +130,6 @@ const menuList = readonly([ { key: 3, icon: "o_groups", - activeIcon: "groups", label: "โครงสร้างอัตรากำลัง", path: "organizationalNew", role: "organization", @@ -159,18 +155,9 @@ const menuList = readonly([ path: "registry-employee", role: "registryEmployee", }, - { - key: 4, - icon: "verified", - activeIcon: "verified", - label: "รายการรอตรวจสอบ", - path: "verified", - role: "registryverify", - }, { key: 6, icon: "mdi-file-certificate-outline", - activeIcon: "order", label: "ออกคำสั่ง", path: "order", role: "order", @@ -178,7 +165,6 @@ const menuList = readonly([ { key: 7, icon: "o_search", - activeIcon: "search", label: "สรรหา", path: "recruiting", role: "recruit", @@ -246,7 +232,6 @@ const menuList = readonly([ key: 8, path: "placement", icon: "how_to_reg", - activeIcon: "how_to_reg", label: "บรรจุ แต่งตั้ง ย้าย โอน", role: "placement", children: [ @@ -305,7 +290,6 @@ const menuList = readonly([ { key: 81, icon: "badge", - activeIcon: "badge", label: "ทดลองปฏิบัติหน้าที่ราชการ", path: "probation", role: "probation", @@ -313,7 +297,6 @@ const menuList = readonly([ { key: 9, icon: "mdi-account-cancel-outline", - activeIcon: "mdi-account-cancel", label: "พ้นจากราชการ", path: "retirement", role: "retirement", @@ -348,7 +331,6 @@ const menuList = readonly([ { key: 10, icon: "mdi-medal-outline", - activeIcon: "mdi-medal", label: "เครื่องราชฯ", path: "insignia", role: "insignia", @@ -388,39 +370,38 @@ const menuList = readonly([ { key: 11, icon: "mdi-calendar", - activeIcon: "mdi-calendar", label: "การลา", path: "leave", role: "leave", children: [ { label: "รอบการปฏิบัติงาน", - path: "/round-time", + path: "roundTime", role: "leave", }, { label: "แก้ไขรอบการปฎิบัติงานผู้ใช้งาน", - path: "/change-round", + path: "changeRound", role: "leave", }, { label: "รายการลงเวลาปฏิบัติงาน", - path: "/work-list", + path: "workList", role: "leave", }, { label: "ลงเวลากรณีพิเศษ", - path: "/timestamp-special", + path: "timestampSpecial", role: "leave", }, { label: "รายการลา", - path: "/leave", + path: "leave", role: "leave", }, { label: "รายงานสถิติการลา", - path: "/leave-report", + path: "leaveReport", role: "leave", }, ], @@ -428,7 +409,6 @@ const menuList = readonly([ { key: 12, icon: "mdi-scale-balance", - activeIcon: "mdi-scale-balance", label: "วินัย", role: "discipline", children: [ @@ -497,7 +477,6 @@ const menuList = readonly([ { key: 13, icon: "mdi-account-check", - activeIcon: "mdi-account-check", label: "ประเมินบุคคล", role: "evaluate", children: [ @@ -530,12 +509,11 @@ const menuList = readonly([ { key: 14, icon: "mdi-cash", - activeIcon: "mdi-cash", label: "เงินเดือน/ค่าจ้าง", role: "salary", children: [ { - label: "ผังบัญชีเงินเดือนข้าราชการ ฯ", + label: "ผังบัญชีเงินเดือนข้าราชการฯ", path: "salaryChart", role: "salary", }, @@ -550,7 +528,7 @@ const menuList = readonly([ role: "salary", }, { - label: "เลื่อนเงินเดือนข้าราชการ ฯ", + label: "เลื่อนเงินเดือนข้าราชการฯ", path: "salaryLists", role: "salary", }, @@ -569,7 +547,6 @@ const menuList = readonly([ { key: 15, icon: "mdi-account-star", - activeIcon: "mdi-account-star", label: "ประเมินผลการปฏิบัติราชการระดับบุคคล", role: "evaluateKPI", children: [ @@ -623,7 +600,7 @@ const menuList = readonly([ icon: "o_note", label: "ระบบเดิม", path: "registry", - role: "registry", + role: "organization", children: [ { key: 13.0, @@ -685,6 +662,20 @@ const menuList = readonly([ }, ], }, + { + key: 4, + icon: "o_contact_page", + label: "ทะเบียนประวัติ", + path: "registry", + role: "registry", + }, + { + key: 4, + icon: "verified", + label: "รายการรอตรวจสอบ", + path: "verified", + role: "registryverify", + }, ]); const tabList = readonly([ diff --git a/src/modules/02_organizational/views/MainReport.vue b/src/modules/02_organizational/views/MainReport.vue index 708b18218..38536c94e 100644 --- a/src/modules/02_organizational/views/MainReport.vue +++ b/src/modules/02_organizational/views/MainReport.vue @@ -158,8 +158,8 @@ const clickAccount1 = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -185,8 +185,8 @@ const clickAccount2 = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -211,8 +211,8 @@ const clickAccount3 = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); diff --git a/src/modules/02_organizationalNew/views/main.vue b/src/modules/02_organizationalNew/views/main.vue index 998cf0493..8cc395034 100644 --- a/src/modules/02_organizationalNew/views/main.vue +++ b/src/modules/02_organizationalNew/views/main.vue @@ -85,15 +85,12 @@ async function fetchOrganizationActive() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { hideLoader(); }); } /** function เรียกข้อมูลประวัติโครงสร้าง*/ async function fetchHistory() { - showLoader(); await http .get(config.API.organizationHistoryNew) .then((res) => { @@ -109,9 +106,6 @@ async function fetchHistory() { }) .catch((err) => { messageError($q, err); - }) - .finally(() => { - hideLoader(); }); } diff --git a/src/modules/03_recruiting/components/TableCandidate.vue b/src/modules/03_recruiting/components/TableCandidate.vue index b274abae8..bd3bc50f7 100644 --- a/src/modules/03_recruiting/components/TableCandidate.vue +++ b/src/modules/03_recruiting/components/TableCandidate.vue @@ -502,8 +502,8 @@ const downloadFile = async () => { const data = res.data; downloadFilePDF(data, `Candidate__${dateToISO(new Date())}.xlsx`); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -520,8 +520,8 @@ const downloadFileDetail = async () => { const data = res.data; downloadFilePDF(data, `Candidate_Detail_${dateToISO(new Date())}.xlsx`); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -638,8 +638,8 @@ const downloadFileDashboard = async () => { `Candidate_Dashboard_${dateToISO(new Date())}.xlsx` ); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); diff --git a/src/modules/03_recruiting/views/01_compete/Detail.vue b/src/modules/03_recruiting/views/01_compete/Detail.vue index 4909c3fa7..8f2cabea3 100644 --- a/src/modules/03_recruiting/views/01_compete/Detail.vue +++ b/src/modules/03_recruiting/views/01_compete/Detail.vue @@ -386,8 +386,8 @@ const downloadExam = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -407,8 +407,8 @@ const downloadPassExam = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -428,8 +428,8 @@ const downloadPassResultExam = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); diff --git a/src/modules/03_recruiting/views/01_compete/DetailEx.vue b/src/modules/03_recruiting/views/01_compete/DetailEx.vue index 1c379fd04..25e504865 100644 --- a/src/modules/03_recruiting/views/01_compete/DetailEx.vue +++ b/src/modules/03_recruiting/views/01_compete/DetailEx.vue @@ -202,7 +202,7 @@
คะแนน
- ผลการสอบx + ผลการสอบ
{ // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -358,8 +358,8 @@ const downloadCertificate = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue index aad8efb37..ebc378469 100644 --- a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue +++ b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue @@ -344,8 +344,8 @@ const downloadExam = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -365,8 +365,8 @@ const downloadPassExam = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -386,8 +386,8 @@ const downloadPassResultExam = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue index 75a2f501f..79442ce4d 100644 --- a/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue +++ b/src/modules/03_recruiting/views/02_qualify/DisableDetailEx.vue @@ -339,8 +339,8 @@ const downloadScore = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); @@ -363,8 +363,8 @@ const downloadCertificate = async () => { // start download a.click(); }) - .catch((e) => { - messageError($q, e); + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); }) .finally(() => { hideLoader(); diff --git a/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue index e506a8f23..f81a44e49 100644 --- a/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/DisablePeriodAdd.vue @@ -20,7 +20,7 @@
-
+
-
+
-
+
diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index 10945c281..f317d94fc 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -378,12 +378,12 @@ lazy-rules v-model="props.row.code" :rules="[ - (val) => - val.length >= 3 || - `${'กรุณากรอกรหัสประจำตำแหน่งที่สอบ'}`, + (val:string) => !!val || `${'กรุณากรอกรหัสประจำตำแหน่งที่สอบ'}`, + (val:any) => + val.length >= 3 || + `${'กรุณากรอกรหัสประจำตำแหน่งที่สอบ'}`, ]" :label="`${'รหัสประจำตำแหน่งที่สอบ'}`" - @update:modelValue="clickEditRow" hide-bottom-space mask="###" /> diff --git a/src/modules/04_registry/stores/salary.ts b/src/modules/04_registry/stores/salary.ts index 2804f75f5..750d2889e 100644 --- a/src/modules/04_registry/stores/salary.ts +++ b/src/modules/04_registry/stores/salary.ts @@ -176,6 +176,10 @@ export const useSalaryDataStore = defineStore("salary", () => { id: 18, name: "ปรับอัตราเงินเดือนตามพระราชกฤษฎีกาการปรับอัตราเงินเดือนของข้าราชการ พ.ศ. (.............)", }, + { + id: 19, + name: "เลื่อนเงินเดือนและให้ได้รับเงินเดือนสูงกว่าขั้นสูงของตำแหน่งที่ได้รับแต่งตั้ง คำสั่ง{หน่วยงาน} ลงวันที่ {เลขที่}/{ปี พ.ศ.}", + }, ]); const optiontype = ref([ diff --git a/src/modules/04_registryNew/components/DialogAddData.vue b/src/modules/04_registryNew/components/DialogAddData.vue index 7b91ec9ca..837224e5a 100644 --- a/src/modules/04_registryNew/components/DialogAddData.vue +++ b/src/modules/04_registryNew/components/DialogAddData.vue @@ -329,7 +329,7 @@ watch( bg-color="white" outlined v-model="formData.position" - label="ตำแหน่ง" + label="ตำแหน่งในสายงาน" dense lazy-rules borderless @@ -339,7 +339,7 @@ watch( diff --git a/src/modules/04_registryNew/components/TableView.vue b/src/modules/04_registryNew/components/TableView.vue index b8988c058..2bf0609fe 100644 --- a/src/modules/04_registryNew/components/TableView.vue +++ b/src/modules/04_registryNew/components/TableView.vue @@ -64,7 +64,7 @@ const columns = ref([ { name: "position", align: "left", - label: "ตำแหน่ง", + label: "ตำแหน่งในสายงาน", sortable: true, field: "position", headerStyle: "font-size: 14px", @@ -75,7 +75,7 @@ const columns = ref([ { name: "posPath", align: "left", - label: "ประเภทตำแหน่ง", + label: "ตำแหน่งประเภท", sortable: true, field: "posType", headerStyle: "font-size: 14px", @@ -86,7 +86,7 @@ const columns = ref([ { name: "posLevel", align: "left", - label: "ระดับตำแหน่ง", + label: "ระดับ", sortable: true, field: "posLevel", headerStyle: "font-size: 14px", @@ -295,6 +295,11 @@ watch( {{ empType === "officer" ? col.label : "กลุ่มงาน" }} + {{ empType === "officer" ? col.label : "ตำแหน่ง" }} {{ col.label }} @@ -375,7 +380,9 @@ watch( - ตำแหน่ง + {{ + empType === "officer" ? `ตำแหน่งในสายงาน` : `ตำแหน่ง` + }} @@ -390,7 +397,7 @@ watch( {{ - empType === "officer" ? "ประเภทตำแหน่ง" : "กลุ่มงาน" + empType === "officer" ? "ตำแหน่งประเภท" : "กลุ่มงาน" }} @@ -407,7 +414,7 @@ watch( {{ - empType === "officer" ? "ระดับตำแหน่ง" : "ระดับชั้นงาน" + empType === "officer" ? "ระดับ" : "ระดับชั้นงาน" }} diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue index edb66ec3c..27cba1187 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue @@ -466,7 +466,7 @@ onMounted(() => {
-
ตำแหน่ง
+
{{ empType === "" ? `ตำแหน่งในสายงาน` : `ตำแหน่ง` }}
{{ formMain.positionId }}
@@ -504,7 +504,7 @@ onMounted(() => {
-
{{ empType === "" ? "ประเภทตำแหน่ง" : "กลุ่มงาน" }}
+
{{ empType === "" ? "ตำแหน่งประเภท" : "กลุ่มงาน" }}
{{ formMain.positionType }} @@ -512,7 +512,7 @@ onMounted(() => {
-
{{ empType === "" ? "ระดับตำแหน่ง" : "ระดับชั้นงาน" }}
+
{{ empType === "" ? "ระดับ" : "ระดับชั้นงาน" }}
{{ formMain.positionLevel }} diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index 9e59670a3..1ec7c9426 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -443,9 +443,9 @@ onMounted(async () => {
{{ - `${informaData.rank ? informaData.rank : informaData.prefix} ${ - informaData.firstName - } ${informaData.lastName}` + `${ + informaData.rank ? informaData.rank : informaData.prefix ?? "" + } ${informaData.firstName} ${informaData.lastName}` }}
diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue index bf1868667..8c5bc0a28 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue @@ -65,13 +65,13 @@ const adsName = reactive({ const dataLabel = { registrationAddress: "ที่อยู่ตามทะเบียนบ้าน", registrationProvince: "จังหวัด", - registrationDistrict: "เขต / อำเภอ", + registrationDistrict: "เขต/อำเภอ", registrationSubDistrict: "แขวง / ตำบล", registrationZipCode: "รหัสไปรษณีย์", currentAddress: "ที่อยู่ปัจจุบัน", currentProvince: "จังหวัด", - currentDistrict: "เขต / อำเภอ", + currentDistrict: "เขต/อำเภอ", currentSubDistrict: "แขวง / ตำบล", currentZipCode: "รหัสไปรษณีย์", @@ -81,7 +81,6 @@ const dataLabel = { const visibleColumnsHistory = ref([ "currentAddress", "currentDistrict", - "currentProvince", "currentSubDistrict", "currentZipCode", "registrationAddress", @@ -481,6 +480,7 @@ onMounted(async () => { await fetchAll(); }); +