From 6ad2b616faaf96c7735a5b1a6b1c0e28e629ece5 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 18 Feb 2025 17:26:52 +0700 Subject: [PATCH] =?UTF-8?q?UI=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99=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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../21_report/views/02_reportRegistry.vue | 121 ++++++++++++++++-- 1 file changed, 107 insertions(+), 14 deletions(-) diff --git a/src/modules/21_report/views/02_reportRegistry.vue b/src/modules/21_report/views/02_reportRegistry.vue index 4f54be26a..8e18c4c9c 100644 --- a/src/modules/21_report/views/02_reportRegistry.vue +++ b/src/modules/21_report/views/02_reportRegistry.vue @@ -87,6 +87,29 @@ const educationOpMain = ref([]); const modalOrg = ref(false); const org = ref(""); +const isProbation = ref(false); +const isRetire = ref(false); + +const retireType = ref(""); +const retireTypeOps = ref([]); +const retireTypeOpsMain = ref([ + { id: "RETIRE", name: "เกษียณ" }, + { id: "RETIRE_RESIGN", name: "ลาออก" }, + { id: "RETIRE_DECEASED", name: "ถึงแก่กรรม" }, + { id: "RETIRE_OUT", name: "ให้ออกจากราชการ" }, + { id: "DISCIPLINE_RESULT_REMOVE", name: "ปลดออกจากราชการ" }, + { id: "DISCIPLINE_RESULT_DISMISS", name: "ไล่ออกจากราชการ" }, + { id: "DISCIPLINE_SUSPEND", name: "ถูกพักจากราชการ" }, + { id: "PROBATION_REPORT", name: "ไม่ผ่านทดลองงาน" }, +]); + +const retireTypeOpsMainEMP = ref([ + { id: "RETIRE", name: "เกษียณ" }, + { id: "RETIRE_RESIGN", name: "ลาออก" }, + { id: "RETIRE_DECEASED", name: "ถึงแก่กรรม" }, + { id: "RETIRE_RESIGN_EMP", name: "ให้ออกจากราชการ" }, +]); + const visibleColumns = ref([ "no", "fullName", @@ -320,6 +343,15 @@ function filterOption(val: string, update: any, typeOp: string) { educationOp.value = educationOpMain.value.filter( (v: DataOption) => v.name.indexOf(val) > -1 ); + } else if (typeOp == "retireType") { + retireTypeOps.value = + employeeClass.value == "officer" + ? retireTypeOpsMain.value.filter( + (v: DataOption) => v.name.indexOf(val) > -1 + ) + : retireTypeOpsMainEMP.value.filter( + (v: DataOption) => v.name.indexOf(val) > -1 + ); } }); } @@ -463,6 +495,10 @@ async function onSearch() { ageMax: rangeAge.value.max, dateStart: dateStart.value, dateEnd: dateEnd.value, + + isProbation: isProbation.value, + isRetire: isRetire.value, + retireType: retireType.value, }; showLoader(); await http @@ -536,6 +572,7 @@ onMounted(async () => { map-options option-label="name" option-value="id" + @update:model-value="retireType = ''" > @@ -619,7 +656,7 @@ onMounted(async () => {
-
+
{
-
+
{
-
+
{ />
-
+
+
{
-
+
{
-
+
{
-
-
-
-
-
+
{
-
+
{
-
+
+
+
+
+
{
+
+
+
+ +
+
+
+
+
+ + + + + + +
+