diff --git a/src/modules/04_registryPerson/views/listView.vue b/src/modules/04_registryPerson/views/listView.vue
index 89f64532f..e28df35c2 100644
--- a/src/modules/04_registryPerson/views/listView.vue
+++ b/src/modules/04_registryPerson/views/listView.vue
@@ -780,9 +780,7 @@ onMounted(async () => {
diff --git a/src/modules/21_report/views/02_reportRegistry.vue b/src/modules/21_report/views/02_reportRegistry.vue
index 3d70e56a9..0b5f03647 100644
--- a/src/modules/21_report/views/02_reportRegistry.vue
+++ b/src/modules/21_report/views/02_reportRegistry.vue
@@ -24,6 +24,7 @@ import type {
} from "@/modules/21_report/interface/Main";
import DialogOrg from "@/modules/21_report/components/01_org/DialogOrg.vue";
+import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
const $q = useQuasar();
const route = useRoute();
@@ -89,12 +90,13 @@ const org = ref("");
const isProbation = ref(false);
const isRetire = ref(false);
+const isRetireLaw = ref(false);
const pagination = ref({
sortBy: "dateAppoint",
descending: true,
page: 1,
- rowsPerPage: 19,
+ rowsPerPage: 20,
});
const sortBy = ref("DESC");
const retireType = ref("");
@@ -377,9 +379,7 @@ function updateLevel(val: string) {
}
}
-/**
- * ฟังก์เรียกข้อมูลรายการประเภทตำแหน่ง
- */
+/** ฟังก์เรียกข้อมูลรายการประเภทตำแหน่ง*/
async function getType() {
posType.value = "";
posLevel.value = "";
@@ -497,6 +497,7 @@ async function onSearch() {
retireType: retireType.value,
sortBy: sortBy.value ? "dateAppoint" : "",
sort: sortBy.value ? sortBy.value : "ASC",
+ isRetireLaw: isRetireLaw.value,
};
showLoader();
await http
@@ -510,6 +511,7 @@ async function onSearch() {
const data = res.data.result.data;
total.value = res.data.result.total;
rows.value = data.map((item: any, index: number) => ({
+ profileId: item.profileId,
no: index + 1,
fullName: item.firstName
? `${item.prefix ?? ""}${item.firstName ?? ""} ${item.lastName ?? ""}`
@@ -528,6 +530,7 @@ async function onSearch() {
age: item.age ?? "-",
currentPosition: item.currentPosition ?? "-",
lengthPosition: item.lengthPosition ?? "-",
+ empType: employeeClass.value,
}));
})
.catch((e) => {
@@ -544,7 +547,7 @@ async function onSearch() {
function exportToExcel() {
const newData = rows.value.map((e: any) => {
- const { dateAppointFull, ...rest } = e;
+ const { dateAppointFull, profileId, empType, ...rest } = e;
return rest;
});
@@ -625,11 +628,26 @@ function updateSelectedTreeMain(data: any) {
org.value = data.orgName;
storeReport.formFilter.node = data.orgLevel;
storeReport.formFilter.nodeId = data.orgTreeId;
- expandedModal.value = false
+ expandedModal.value = false;
+}
+
+const personId = ref("");
+const empType = ref("");
+const modalPersonal = ref(false);
+function onViewInfo(id: string, type: string) {
+ personId.value = id;
+ empType.value = type;
+ modalPersonal.value = true;
+}
+
+function updatemodalPersonal(modal: boolean) {
+ modalPersonal.value = modal;
}
onMounted(async () => {
showLoader();
+ storeReport.formFilter.node = null;
+ storeReport.formFilter.nodeId = "";
Promise.all([
getType(),
getOptions(),
@@ -799,7 +817,7 @@ onMounted(async () => {
autogrow
borderless
label="สังกัด"
- class="bg-white full-width "
+ class="bg-white full-width"
>
{
+
+
+
+ แสดงผู้เกษียณอายุราชการในปีงบประมาณปัจจุบัน
+
+
+
+
แสดงผู้พ้นจากราชการ
@@ -1356,6 +1382,7 @@ onMounted(async () => {
+