diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue
index 715925b76..855df240e 100644
--- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue
+++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue
@@ -11,10 +11,10 @@
class="q-mr-sm"
@click="clickBack"
/>
- {{ edit ? `แก้ไขรอบคัดเลือก` : "เพิ่มรอบคัดเลือก" }}
+ {{ edit ? `แก้ไขรอบ` : "เพิ่มรอบคัดเลือก" }}
{{
edit && announcementExam
- ? `ครั้งที่ ${roundRaw}/${yearlyRaw == null ? "" : yearlyRaw + 543}`
+ ? `${name} ครั้งที่ ${roundRaw}/${yearlyRaw == null ? "" : yearlyRaw + 543}`
: ""
}}
@@ -92,14 +92,14 @@
:rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
:label="`${'ปีงบประมาณ'}`"
>
-
+
@@ -220,7 +220,7 @@
-
+
-
+
-
+
เลือกวิธีการชำระเงิน
diff --git a/src/modules/05_placement/components/AppointMent/Detail.vue b/src/modules/05_placement/components/AppointMent/Detail.vue
index d17576708..79d39033d 100644
--- a/src/modules/05_placement/components/AppointMent/Detail.vue
+++ b/src/modules/05_placement/components/AppointMent/Detail.vue
@@ -1,11 +1,15 @@
-divdivdiv
-
+
รายละเอียดการแต่งตั้ง-เลื่อน {{ title.fullname }}
@@ -158,8 +171,15 @@ onMounted(async () => {
{{ title.fullname }}
-
+
@@ -204,14 +224,36 @@ onMounted(async () => {
@@ -219,74 +261,146 @@ onMounted(async () => {
-
วุฒิการศึกษา
+
วุฒิการศึกษา
-
+
-
- ตำแหน่งและหน่วยงานเดิม
-
+
ตำแหน่งและหน่วยงานเดิม
-
+
-
+
{{ year + 543 }}
{{
parseInt(value + 543)
}}
-
+ hide-bottom-space
+ :label="`${'ดำรงตำแหน่งในระดับปัจจุบันเมื่อ'}`"
+ >
-
+
@@ -295,9 +409,19 @@ onMounted(async () => {
-
+
diff --git a/src/modules/05_placement/components/Main.vue b/src/modules/05_placement/components/Main.vue
index 6fbca2201..af79afc85 100644
--- a/src/modules/05_placement/components/Main.vue
+++ b/src/modules/05_placement/components/Main.vue
@@ -150,8 +150,8 @@ const fetchPlacementData = async (val: number) => {
})
.finally(() => {
filterKeyword.value = "";
- examTime.value = "all";
- examType.value = "all";
+ examTime.value = "ทั้งหมด";
+ examType.value = "ทั้งหมด";
expiredAccount.value = false;
hideLoader();
});
@@ -168,6 +168,7 @@ const fetchYearOptions = async () => {
}, "");
searchYear.value = maxNumber;
DataStore.DataMainYearSet(searchYear.value);
+ yearOptionsFn.value = yearOptions;
searchYear.value && fetchPlacementData(searchYear.value);
})
.catch((e) => {
@@ -175,7 +176,9 @@ const fetchYearOptions = async () => {
});
};
const filterYear = () => {
- fetchPlacementData(searchYear.value);
+ if (searchYear.value !== null) {
+ fetchPlacementData(searchYear.value);
+ }
};
// ดูรายการสอบแข่งขัน หน้าต่อไป
@@ -233,11 +236,10 @@ const searchFilterTable = async () => {
rows.value = [];
if (examType.value !== undefined && examType.value !== null) {
await DataStore.DataUpdateMain(
- examTime.value,
- examType.value,
+ examTime.value == "ทั้งหมด" ? "all" : examTime.value,
+ examType.value == "ทั้งหมด" ? "all" : examType.value,
expiredAccount.value
);
-
const dataArr: any = [];
await DataStore.DataMainUpdate.map((e: any) => {
dataArr.push({
@@ -278,6 +280,49 @@ const paginationLabel = (start: number, end: number, total: number) => {
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
else return start + "-" + end + " ใน " + total;
};
+// filter ใน dropdown ครั้งที่
+const examTimeOP2 = ref([]);
+function filterFnexamTime(val: string, update: any) {
+ if (val === "") {
+ update(() => {
+ examTimeOP2.value = examTimeOP;
+ });
+ } else {
+ update(() => {
+ examTimeOP2.value = examTimeOP.filter(
+ (e: any) => e.name.search(val) !== -1
+ );
+ });
+ }
+}
+const examTypeOP2 = ref([]);
+function filterFnExamtype(val: string, update: any) {
+ if (val === "") {
+ update(() => {
+ examTypeOP2.value = examTypeOP.value;
+ });
+ } else {
+ update(() => {
+ examTypeOP2.value = examTypeOP.value.filter(
+ (e: any) => e.name.search(val) !== -1
+ );
+ });
+ }
+}
+const yearOptionsFn = ref([]);
+function filterFnYear(val: string, update: any) {
+ if (val === "") {
+ update(() => {
+ yearOptionsFn.value = yearOptions;
+ });
+ } else {
+ update(() => {
+ yearOptionsFn.value = yearOptions.filter(
+ (e: any) => e.name.toString().search(val) !== -1
+ );
+ });
+ }
+}
@@ -294,7 +339,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
dense
emit-value
map-options
- :options="yearOptions"
+ :options="yearOptionsFn"
option-value="id"
option-label="name"
lazy-rules
@@ -304,7 +349,14 @@ const paginationLabel = (start: number, end: number, total: number) => {
:outlined="true"
:hide-dropdown-icon="false"
@update:model-value="filterYear"
- />
+ use-input
+ @filter="filterFnYear"
+ >
+
+ ไม่มีข้อมูล
+
+
+
{
dense
emit-value
map-options
- :options="examTimeOP"
+ :options="examTimeOP2"
option-value="id"
option-label="name"
lazy-rules
@@ -361,7 +413,17 @@ const paginationLabel = (start: number, end: number, total: number) => {
:outlined="true"
:hide-dropdown-icon="false"
@update:model-value="searchFilterTable"
- />
+ @filter="filterFnexamTime"
+ use-input
+ input-debounce="0"
+ >
+
+
+ ไม่มีข้อมูล
+
+
+
+
{
emit-value
map-options
option-label="name"
- :options="examTypeOP"
+ :options="examTypeOP2"
option-value="id"
lazy-rules
hide-bottom-space
@@ -379,7 +441,17 @@ const paginationLabel = (start: number, end: number, total: number) => {
:outlined="true"
:hide-dropdown-icon="false"
@update:model-value="searchFilterTable"
- />
+ @filter="filterFnExamtype"
+ use-input
+ >
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
{
.get(config.API.otherByid(paramsId.toString()))
.then((res: resApiData) => {
const data = res.data.result;
- Otherdata.value = data
+ Otherdata.value = data;
avatar.value = data.avatar ?? "";
title.value.fullname = `${data.firstname ?? "-"} ${data.lastname ?? "-"}`;
title.value.organizationPositionOld = data.organizationPositionOld ?? "-";
@@ -85,19 +88,23 @@ const fecthOther = async () => {
responseData.value.profileId = data.profileId;
responseData.value.createdAt = data.createdAt;
responseData.value.id = data.id ?? "";
- responseData.value.organizationPositionOld = data.organizationPositionOld ?? "";
+ responseData.value.organizationPositionOld =
+ data.organizationPositionOld ?? "";
responseData.value.positionLevelOld = data.positionLevelOld ?? "";
responseData.value.positionNumberOld = data.positionNumberOld ?? "";
responseData.value.positionTypeOld = data.positionTypeOld ?? "";
responseData.value.reason = data.reason ?? "";
responseData.value.status = data.status ?? "";
- responseData.value.fullname = `${data.prefix ?? "-"}${data.firstname ?? "-"} ${data.lastname ?? "-"}`;
+ responseData.value.fullname = `${data.prefix ?? "-"}${
+ data.firstname ?? "-"
+ } ${data.lastname ?? "-"}`;
organizationPositionOld.value = data.organizationPositionOld ?? "";
positionTypeOld.value = data.positionTypeOld ?? "";
positionLevelOld.value = data.positionLevelOld ?? "";
posNo.value = data.positionNumberOld ?? "";
salary.value = data.amountOld ?? "";
- date.value = data.positionDate !== null ? new Date(data.positionDate) : null;
+ date.value =
+ data.positionDate !== null ? new Date(data.positionDate) : null;
reason.value = data.reason ?? "";
})
.catch((e) => {
@@ -124,7 +131,7 @@ const clickEdit = async () => {
});
}
};
-
+
//-----(update)-----//
const saveOther = async () => {
let data = {
@@ -155,7 +162,7 @@ const saveOther = async () => {
const cancel = () => {
edit.value = false;
fecthOther();
- myForm.value?.resetValidation()
+ myForm.value?.resetValidation();
};
const getClass = (val: boolean) => {
return {
@@ -172,8 +179,16 @@ onMounted(async () => {
-
+
รายละเอียดรายการอื่นๆ {{ responseData.fullname }}
@@ -182,8 +197,15 @@ onMounted(async () => {
{{ responseData.fullname }}
-
+
@@ -232,14 +254,36 @@ onMounted(async () => {
"
>
-
+
-
-
+
+
@@ -249,60 +293,122 @@ onMounted(async () => {
-
- ตำแหน่งและหน่วยงานเดิม
-
+
ตำแหน่งและหน่วยงานเดิม
-
+
-
+
{{ year + 543 }}
{{
parseInt(value + 543)
}}
-
+
-
+
@@ -311,9 +417,18 @@ onMounted(async () => {
-
+
diff --git a/src/modules/05_placement/components/Receive/receiveDetail2.vue b/src/modules/05_placement/components/Receive/receiveDetail2.vue
index 5e1fed1b8..46b86e0ea 100644
--- a/src/modules/05_placement/components/Receive/receiveDetail2.vue
+++ b/src/modules/05_placement/components/Receive/receiveDetail2.vue
@@ -12,7 +12,7 @@ import type {
Information,
DataOption,
DataOptioninfo,
- docList
+ docList,
} from "@/modules/04_registry/components/profileType";
import { defaultInformation } from "@/modules/04_registry/components/profileType";
@@ -272,7 +272,7 @@ const cancel = async () => {
edit.value = !edit.value;
if (myForm.value !== null) {
await getData();
- myForm.value?.resetValidation()
+ myForm.value?.resetValidation();
}
};
@@ -871,7 +871,8 @@ onMounted(async () => {
:label="`${'ประเภทการจ้าง'}`"
use-input
input-debounce="0"
- @filter="(inputValue:any, doneFn:Function) => filterSelector(inputValue, doneFn,'employeeTypeOps' ) " />
+ @filter="(inputValue:any, doneFn:Function) => filterSelector(inputValue, doneFn,'employeeTypeOps' ) "
+ />
{
:label="`${'ประเภทลูกจ้าง'}`"
use-input
input-debounce="0"
- @filter="(inputValue:any, doneFn:Function) => filterSelector(inputValue, doneFn,'employeeClassOps' ) " />
+ @filter="(inputValue:any, doneFn:Function) => filterSelector(inputValue, doneFn,'employeeClassOps' ) "
+ />
-
@@ -984,6 +986,8 @@ onMounted(async () => {
currency: 'THB',
}"
:label="`${'เงินเดือน'}`"
+ :rules="[(val:number) => !!val || `${'กรุณากรอกเงินเดือน'}`]"
+ lazy-rules
/>
@@ -995,7 +999,6 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="reason"
- :rules="[(val) => !!val || `${'กรุณากรอกหมายเหตุ '}`]"
hide-bottom-space
:label="`${'หมายเหตุ '}`"
type="textarea"
diff --git a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue
index 0c4e99784..bcc6e965a 100644
--- a/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue
+++ b/src/modules/05_placement/components/Repatriate/RepatriatebyId.vue
@@ -1,4 +1,5 @@
-div
-
+
เพิ่มแบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
-
+
ดาวน์โหลด
-
-
+
+
ไฟล์ .PDF
-
-
+
+
ไฟล์ .docx
@@ -737,16 +892,37 @@ onMounted(async () => {
-
+
แก้ไขข้อมูล
-
+
ยกเลิก
-
+
บันทึกข้อมูล
@@ -762,12 +938,28 @@ onMounted(async () => {
-
+
-
+
@@ -775,14 +967,32 @@ onMounted(async () => {
-
+
-
+
{{ year + 543 }}
@@ -790,19 +1000,38 @@ onMounted(async () => {
{{ parseInt(value + 543) }}
-
+ "
+ :label="`${'ตั้งเเต่วันที่'}`"
+ clearable
+ @clear="clearDateExam"
+ >
-
+
{{ year + 543 }}
@@ -810,11 +1039,22 @@ onMounted(async () => {
{{ parseInt(value + 543) }}
-
+ "
+ :label="`${'ถึงวันที่'}`"
+ clearable
+ @clear="clearDateExam2"
+ >
@@ -832,22 +1072,86 @@ onMounted(async () => {
ผู้ดูแลการทดลองปฏิบัติหน้าที่ราชการ (อาจมีได้มากกว่า 1 คน)
-
-
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
-
+
+
@@ -862,29 +1166,71 @@ onMounted(async () => {
3.1 ชื่องาน / ภารกิจงานที่มอบหมาย (ควรมีมากกว่า 1 ภารกิจงาน)
-
+
-
+
-
+
-
+
-
@@ -901,22 +1247,59 @@ onMounted(async () => {
ความรู้ความสามารถในการปฏิบัติงาน
-
+
-
+
@@ -924,13 +1307,28 @@ onMounted(async () => {
ความรู้เรื่องกฎหมายและกฎระเบียบ (ไม่เกิน 20 หัวข้อ)
-
+
-
+
-
+
{{ item.description }}
@@ -938,7 +1336,10 @@ onMounted(async () => {
-
+
{{ item.description }}
@@ -946,16 +1347,27 @@ onMounted(async () => {
-
+
-
+
-
+
@@ -964,16 +1376,27 @@ onMounted(async () => {
-
+
-
+
-
+
{{ item.description }}
@@ -981,16 +1404,27 @@ onMounted(async () => {
-
+
-
+
-
+
{{ item.description }}
@@ -998,16 +1432,27 @@ onMounted(async () => {
-
+
-
+
-
+
{{ item.description }}
@@ -1023,8 +1468,15 @@ onMounted(async () => {
@@ -1032,60 +1484,121 @@ onMounted(async () => {
ทักษะ
-
+
{{ scope.opt.title }} -
{{ scope.opt.level_description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.level_description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.level_description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.level_description }}
-
+
@@ -1104,69 +1617,145 @@ onMounted(async () => {
สมรรถนะหลัก
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
@@ -1174,46 +1763,88 @@ onMounted(async () => {
สมรรถนะประจํากลุ่มงาน
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
-
+
{{ scope.opt.title }} -
{{ scope.opt.description }}
-
+
@@ -1224,9 +1855,12 @@ onMounted(async () => {
- 3.4 พฤติกรรมที่จําเป็นสําหรับการปฏิบัติงาน
+ 3.4 พฤติกรรมที่จําเป็นสําหรับการปฏิบัติงาน
( ได้แก่ ความประพฤติ ความมีคุณธรรมจริยธรรม การรักษาวินัย
- )
+ )
@@ -1300,7 +1934,13 @@ onMounted(async () => {
@@ -1308,28 +1948,70 @@ onMounted(async () => {
3.6 ผลผลิตของงานที่คาดหวังและตัวชี้วัดความสําเร็จของงาน
-
+
-
+
-
+
-
+
-
@@ -1398,8 +2080,14 @@ onMounted(async () => {
ความสำเร็จของงานที่ได้รับมอบหมาย
อื่นๆ (ถ้ามี)
-
+
@@ -1482,16 +2170,36 @@ onMounted(async () => {
-
+
-
+
-
+
{{ year + 543 }}
@@ -1499,12 +2207,23 @@ onMounted(async () => {
{{ parseInt(value + 543) }}
-
+
-
+
@@ -1519,15 +2238,65 @@ onMounted(async () => {
ผู้ดูแลการทดลองปฏิบัติหน้าที่ราชการ
-
-
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
+
{{ year + 543 }}
@@ -1535,27 +2304,89 @@ onMounted(async () => {
{{ parseInt(value + 543) }}
-
+
-
+
-
-
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
+
{{ year + 543 }}
@@ -1563,13 +2394,30 @@ onMounted(async () => {
{{ parseInt(value + 543) }}
-
+
-
+
@@ -1584,16 +2432,67 @@ onMounted(async () => {
ผู้บังคับบัญชาผู้มอบหมายงาน
-
-
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
+
{{ year + 543 }}
@@ -1601,12 +2500,23 @@ onMounted(async () => {
{{ parseInt(value + 543) }}
-
+
-
+
@@ -1621,19 +2531,71 @@ onMounted(async () => {
ประธานกรรมการ
-
-
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue
index e938f61a0..dea6b317a 100644
--- a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue
+++ b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue
@@ -17,7 +17,7 @@ const {
showLoader,
hideLoader,
dialogConfirm,
- dialogMessageNotify
+ dialogMessageNotify,
} = mixin;
const route = useRoute();
const assignId = ref
(route.params.form.toString());
@@ -27,7 +27,7 @@ const assign = ref([]);
const mentors = ref([]);
const commander = ref([]);
const status = ref(true);
-const ID = ref('')
+const ID = ref("");
const date_start = ref(new Date());
const date_finish = ref();
const develop = ref();
@@ -61,13 +61,16 @@ const fecthAssign = async (id: string) => {
await http
.get(config.API.evaluateReportcreate(id))
.then((res) => {
- assign.value = res.data.data.assign
- person.value = res.data.data.person
+ assign.value = res.data.data.assign;
+ person.value = res.data.data.person;
mentors.value = res.data.data.mentors;
date_start.value = res.data.data.assign.date_start;
date_finish.value = res.data.data.assign.date_finish;
- if (res.data.data.result.develop_complete != null && res.data.data.result.evaluate_result != null) {
+ if (
+ res.data.data.result.develop_complete != null &&
+ res.data.data.result.evaluate_result != null
+ ) {
develop.value = res.data.data.result.develop_complete;
result.value = res.data.data.result.evaluate_result;
}
@@ -94,7 +97,7 @@ const fecthResult = async (id: string) => {
.then(async (res: any) => {
if (res.data.data != null) {
const data = await res.data.data.evaluate;
- ID.value = data.id
+ ID.value = data.id;
date_start.value = data.date_start;
date_finish.value = data.date_finish;
develop.value = await Number(data.develop_complete);
@@ -106,10 +109,10 @@ const fecthResult = async (id: string) => {
status.value = false;
action.value = "edit";
expand_month.value = data.expand_month;
- changeReson52(Number(data.pass_result))
+ changeReson52(Number(data.pass_result));
}
})
- .catch((e) => { });
+ .catch((e) => {});
};
// part new
@@ -127,8 +130,6 @@ const optionsResult = [
},
];
-
-
const savaForm = async () => {
await myForm.value.validate().then((result: boolean) => {
if (result) {
@@ -185,7 +186,8 @@ const postData = async (action: string) => {
})
.catch((e: any) => {
messageError($q, e);
- }).finally(() => {
+ })
+ .finally(() => {
status.value = false;
fecthResult(assignId.value);
});
@@ -210,19 +212,19 @@ const selectRuslt = () => {
expand_month.value = "";
}
- changeReson52(Number(result.value))
+ changeReson52(Number(result.value));
};
function changeReson52(val: number) {
switch (val) {
case 1:
- reson52.value = "เห็นควรให้รับราชการต่อไป"
+ reson52.value = "เห็นควรให้รับราชการต่อไป";
break;
case 2:
- reson52.value = "เห็นควรให้ออกจากราชการ"
+ reson52.value = "เห็นควรให้ออกจากราชการ";
break;
case 3:
- reson52.value = `เห็นควรให้ขยายเวลาทดลองปฏิบัตหิน้าท่ีราชการต่อไปอีก ${expand_month.value} เดือน`
+ reson52.value = `เห็นควรให้ขยายเวลาทดลองปฏิบัตหิน้าท่ีราชการต่อไปอีก ${expand_month.value} เดือน`;
break;
default:
@@ -234,22 +236,57 @@ onMounted(() => {
fecthAssign(assignId.value);
fecthResult(assignId.value);
});
+const optionsFn = ref([]);
+function filterFnOptions(val: string, update: any) {
+ if (val == "") {
+ update(() => {
+ optionsFn.value = options;
+ });
+ } else {
+ update(() => {
+ optionsFn.value = options.filter((e: any) => e.label.search(val) !== -1);
+ });
+ }
+}
+const optionsResultFn = ref([])
+function filterFnOptionsResult(val: string, update: any) {
+ if (val == "") {
+ update(() => {
+ optionsResultFn.value = optionsResult;
+ });
+ } else {
+ update(() => {
+ optionsResultFn.value = optionsResult.filter((e: any) => e.label.search(val) !== -1);
+ });
+ }
+}
แบบรายงานการประเมินฯ
-
+
ดาวน์โหลด
-
+
ไฟล์ .PDF
-
+
ไฟล์ .docx
@@ -282,9 +319,7 @@ onMounted(() => {
ประเมินผล
-
- ครั้งที่ 1
-
+ ครั้งที่ 1
@@ -299,8 +334,16 @@ onMounted(() => {
-
+
{{ year + 543 }}
@@ -308,10 +351,23 @@ onMounted(() => {
{{ parseInt(value + 543) }}
-
+
-
+
@@ -319,8 +375,16 @@ onMounted(() => {
-
+
{{ year + 543 }}
@@ -328,10 +392,23 @@ onMounted(() => {
{{ parseInt(value + 543) }}
-
+
-
+
@@ -344,27 +421,78 @@ onMounted(() => {
-
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
+
@@ -373,14 +501,34 @@ onMounted(() => {
@@ -392,14 +540,31 @@ onMounted(() => {
- ประธานคณะกรรมการประเมินผลการปฏิบัติหน้าที่ราชการ/ผู้มีอํานาจสั่งบรรจุตามมาตรา 52
+ ประธานคณะกรรมการประเมินผลการปฏิบัติหน้าที่ราชการ/ผู้มีอํานาจสั่งบรรจุตามมาตรา
+ 52
-
+
-
+
{{ year + 543 }}
@@ -407,10 +572,23 @@ onMounted(() => {
{{ parseInt(value + 543) }}
-
+
-
+
@@ -426,11 +604,27 @@ onMounted(() => {
-
+
-
+
{{ year + 543 }}
@@ -438,12 +632,25 @@ onMounted(() => {
{{ parseInt(value + 543) }}
-
+
-
+
@@ -459,11 +666,27 @@ onMounted(() => {
-
+
-
+
{{ year + 543 }}
@@ -471,12 +694,25 @@ onMounted(() => {
{{ parseInt(value + 543) }}
-
+
-
+
diff --git a/src/modules/05_placement/components/probation/MainProbation.vue b/src/modules/05_placement/components/probation/MainProbation.vue
index 32f98067f..33367fe6a 100644
--- a/src/modules/05_placement/components/probation/MainProbation.vue
+++ b/src/modules/05_placement/components/probation/MainProbation.vue
@@ -2,9 +2,15 @@
import { ref, useAttrs, onMounted } from "vue";
import { useCounterMixin } from "@/stores/mixin";
import { useQuasar } from "quasar";
-import { useTransferDataStore } from "@/modules/05_placement/store"
+import { useTransferDataStore } from "@/modules/05_placement/store";
import type { QTableProps } from "quasar";
-import type { FormMainProbation, FormMainProbation2,mapData,OpfillterType,CriteriaType } from "@/modules/05_placement/interface/request/Main";
+import type {
+ FormMainProbation,
+ FormMainProbation2,
+ mapData,
+ OpfillterType,
+ CriteriaType,
+} from "@/modules/05_placement/interface/request/Main";
import DialogHeader from "@/modules/04_registry/components/DialogHeader.vue";
import router from "@/router";
@@ -18,7 +24,7 @@ const rows2 = ref([]);
const modal = ref(false);
const attrs = ref(useAttrs());
const paging = ref(true);
-const fillter = ref(0);
+const fillter = ref(0);
const paging2 = ref(true);
const Opfillter = ref([{ id: 0, value: "ทั้งหมด" }]);
const filterRef = ref(null);
@@ -28,10 +34,10 @@ const probationlist = ref([]);
const filterKeyword = ref("");
const fillterStatus = ref([]);
const filterKeyword2 = ref("");
-
-const storeFn = useTransferDataStore()
+
+const storeFn = useTransferDataStore();
const mixin = useCounterMixin();
-const { statusProbationMain } = storeFn
+const { statusProbationMain } = storeFn;
const { messageError, success, showLoader, hideLoader, dialogConfirm } = mixin;
const pagination = ref({
@@ -205,6 +211,7 @@ const ProbationMainFilter = () => {
}
});
Opfillter.value.sort((a: any, b: any) => a.id - b.id);
+ Opfillter2.value = Opfillter.value;
};
const updateRows = (body: any) => {
@@ -240,7 +247,7 @@ const getpersonalList = async () => {
dataUpdate.value = rows.value;
ProbationMainFilter();
})
- .catch(() => { })
+ .catch(() => {})
.finally(() => {
hideLoader();
});
@@ -259,7 +266,7 @@ const fecthlistPersonal = async () => {
.catch((e) => {
messageError($q, e);
})
- .finally(() => { });
+ .finally(() => {});
};
const fecthlistProbation = async (id: string, data: any) => {
try {
@@ -279,11 +286,11 @@ const fecthlistProbation = async (id: string, data: any) => {
};
const findlist = async (id: string) => {
- let data:CriteriaType[] = [
+ let data: CriteriaType[] = [
{ criteriaType: "is_retire", criteriaValue: "false" },
{ criteriaType: "is_probation", criteriaValue: "true" },
];
- let data2:CriteriaType[] = [
+ let data2: CriteriaType[] = [
{ criteriaType: "is_retire", criteriaValue: "false" },
{ criteriaType: "is_probation", criteriaValue: "false" },
];
@@ -336,7 +343,6 @@ const clickClose = async () => {
modal.value = false;
};
-
const resetFilter = () => {
filterKeyword.value = "";
filterRef.value.focus();
@@ -359,6 +365,22 @@ const paginationLabel2 = (start: string, end: string, total: string) => {
onMounted(async () => {
getpersonalList();
});
+
+const Opfillter2 = ref([]);
+function filterFn(val: string, update: any) {
+ if (val == "") {
+ update(() => {
+ Opfillter2.value = Opfillter.value;
+ fillter.value = null;
+ });
+ } else {
+ update(() => {
+ Opfillter2.value = Opfillter.value.filter(
+ (e: any) => e.value.search(val) !== -1
+ );
+ });
+ }
+}
@@ -370,33 +392,103 @@ onMounted(async () => {
-
+
+
+
+
+ ไม่มีข้อมูล
+
+
+
+
-
+
เพิ่มผู้ทดลองปฏิบัติหน้าที่ราชการ
-
+
-
+
-
+
-