2023-12-13 15:24:59 +07:00
|
|
|
<script setup lang="ts">
|
2023-12-19 17:04:39 +07:00
|
|
|
import { reactive, onMounted } from "vue";
|
|
|
|
|
import { useQuasar } from "quasar";
|
|
|
|
|
import http from "@/plugins/http";
|
|
|
|
|
import config from "@/app.config";
|
|
|
|
|
|
|
|
|
|
import { useCounterMixin } from "@/stores/mixin";
|
2023-12-20 14:23:27 +07:00
|
|
|
import { useEvaluateStore } from "@/modules/06_evaluate/store";
|
2023-12-19 17:04:39 +07:00
|
|
|
|
|
|
|
|
const mixin = useCounterMixin();
|
|
|
|
|
const $q = useQuasar();
|
2023-12-20 14:23:27 +07:00
|
|
|
const store = useEvaluateStore();
|
2023-12-19 17:04:39 +07:00
|
|
|
|
|
|
|
|
const { showLoader, hideLoader, messageError } = mixin;
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
evaluateId: {
|
|
|
|
|
type: String,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(["update:spec"]);
|
2023-12-13 15:24:59 +07:00
|
|
|
|
2023-12-13 16:56:43 +07:00
|
|
|
const formData = reactive<any>({
|
|
|
|
|
isEducationalQft: false, // คุณวุฒิการศึกษา
|
|
|
|
|
isGovermantServiceHtr: false, // ประวัติการรับราชการ
|
|
|
|
|
isOperatingExp: false, // ประสบการณ์ในการปฏิบัติงาน
|
|
|
|
|
isMinPeriodOfTenure: false, // ระยะเวลาขั้นต่ำในการดำรงตำแหน่งในสายงานที่ขอเข้ารับการคัดเลือก
|
|
|
|
|
isHaveSpecificQft: false, // มีคุณสมบัติตรงตามคุณสมบัติเฉพาะสำหรับตำแหน่งที่กำหนด ในมาตราฐานกำหนดตำแหน่ง
|
|
|
|
|
isHaveProLicense: false, // มีใบอนุญาตประกอบวิชาชีพของสายงานต่างๆ
|
|
|
|
|
isHaveMinPeriodOrHoldPos: false, // มีระยะเวลาขั้นต่ำในการดำรงตำแหน่งหรือเคยดำรงตำแหน่งในสายงานที่จะคัดเลือกตามคุณวุฒิของบุคคลและระดับตำแหน่งที่จะคัดเลือก]
|
|
|
|
|
});
|
2023-12-19 17:04:39 +07:00
|
|
|
async function updateValue() {
|
|
|
|
|
emit("update:spec", formData);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function fetchCheckSpec(id: string) {
|
|
|
|
|
showLoader();
|
|
|
|
|
await http
|
|
|
|
|
.get(config.API.evaluationCheckspecByid(id))
|
|
|
|
|
.then((res) => {
|
|
|
|
|
const data = res.data.result;
|
2023-12-21 17:51:13 +07:00
|
|
|
formData.isEducationalQft = data.isEducationalQft;
|
|
|
|
|
formData.isGovermantServiceHtr = data.isGovermantServiceHtr;
|
|
|
|
|
formData.isOperatingExp = data.isOperatingExp;
|
|
|
|
|
formData.isMinPeriodOfTenure = data.isMinPeriodOfTenure;
|
|
|
|
|
formData.isHaveSpecificQft = data.isHaveSpecificQft;
|
|
|
|
|
formData.isHaveProLicense = data.isHaveProLicense;
|
|
|
|
|
formData.isHaveMinPeriodOrHoldPos = data.isHaveMinPeriodOrHoldPos;
|
2023-12-19 17:04:39 +07:00
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
messageError($q, err);
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
hideLoader();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2023-12-21 17:51:13 +07:00
|
|
|
console.log(store.step);
|
|
|
|
|
|
|
|
|
|
props.evaluateId && fetchCheckSpec(props.evaluateId);
|
2023-12-19 17:04:39 +07:00
|
|
|
});
|
2023-12-13 15:24:59 +07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<q-list>
|
|
|
|
|
<q-item v-ripple>
|
|
|
|
|
<q-item-section avatar>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-checkbox
|
|
|
|
|
keep-color
|
|
|
|
|
color="primary"
|
|
|
|
|
v-model="formData.isEducationalQft"
|
2023-12-19 17:04:39 +07:00
|
|
|
@update:model-value="updateValue"
|
2023-12-13 16:56:43 +07:00
|
|
|
/>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
2023-12-20 14:23:27 +07:00
|
|
|
<q-item-label
|
|
|
|
|
>คุณวุฒิการศึกษา
|
|
|
|
|
<q-btn flat round dense color="info" icon="info">
|
|
|
|
|
<q-tooltip>ข้อมูลเพิ่มเติม</q-tooltip>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item v-ripple>
|
|
|
|
|
<q-item-section avatar>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-checkbox
|
|
|
|
|
keep-color
|
|
|
|
|
color="primary"
|
|
|
|
|
v-model="formData.isGovermantServiceHtr"
|
2023-12-19 17:04:39 +07:00
|
|
|
@update:model-value="updateValue"
|
2023-12-13 16:56:43 +07:00
|
|
|
/>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-item-label>ประวัติการรับราชการ </q-item-label>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item v-ripple>
|
|
|
|
|
<q-item-section avatar>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-checkbox
|
|
|
|
|
keep-color
|
|
|
|
|
color="primary"
|
|
|
|
|
v-model="formData.isOperatingExp"
|
2023-12-19 17:04:39 +07:00
|
|
|
@update:model-value="updateValue"
|
2023-12-13 16:56:43 +07:00
|
|
|
/>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-item-label>ประสบการณ์ในการปฏิบัติงาน </q-item-label>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item v-ripple>
|
|
|
|
|
<q-item-section avatar>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-checkbox
|
|
|
|
|
keep-color
|
|
|
|
|
color="primary"
|
|
|
|
|
v-model="formData.isMinPeriodOfTenure"
|
2023-12-19 17:04:39 +07:00
|
|
|
@update:model-value="updateValue"
|
2023-12-13 16:56:43 +07:00
|
|
|
/>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-item-label
|
2023-12-20 14:23:27 +07:00
|
|
|
>ระยะเวลาขั้นต่ำในการดำรงตำแหน่งในสายงานที่ขอเข้ารับการคัดเลือก
|
|
|
|
|
<q-btn flat round dense color="info" icon="info">
|
|
|
|
|
<q-tooltip>ข้อมูลเพิ่มเติม</q-tooltip>
|
|
|
|
|
</q-btn></q-item-label
|
2023-12-13 16:56:43 +07:00
|
|
|
>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item v-ripple>
|
|
|
|
|
<q-item-section avatar>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-checkbox
|
|
|
|
|
keep-color
|
|
|
|
|
color="primary"
|
|
|
|
|
v-model="formData.isHaveSpecificQft"
|
2023-12-19 17:04:39 +07:00
|
|
|
@update:model-value="updateValue"
|
2023-12-13 16:56:43 +07:00
|
|
|
/>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
2023-12-13 16:56:43 +07:00
|
|
|
<q-item-label
|
|
|
|
|
>มีคุณสมบัติตรงตามคุณสมบัติเฉพาะ สำหรับตำแหน่งที่กำหนด
|
|
|
|
|
ในมาตรฐานกำหนดตำแหน่ง</q-item-label
|
|
|
|
|
>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item v-ripple>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-checkbox
|
|
|
|
|
keep-color
|
|
|
|
|
color="primary"
|
|
|
|
|
v-model="formData.isHaveProLicense"
|
2023-12-19 17:04:39 +07:00
|
|
|
@update:model-value="updateValue"
|
2023-12-13 16:56:43 +07:00
|
|
|
/>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label
|
|
|
|
|
>มีใบอนุญาตประกอบวิชาชีพของสายงานต่างๆ และ/หรือ
|
|
|
|
|
คุณวุฒิเพิ่มเติมครบถ้วนตามที่ ก.ก. กำหนด (แพทย์พยาบาล วิศวกรโยธา
|
|
|
|
|
สถาปนิก ฯลฯ)</q-item-label
|
|
|
|
|
>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item v-ripple>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-checkbox
|
|
|
|
|
keep-color
|
|
|
|
|
color="primary"
|
|
|
|
|
v-model="formData.isHaveMinPeriodOrHoldPos"
|
2023-12-19 17:04:39 +07:00
|
|
|
@update:model-value="updateValue"
|
2023-12-13 16:56:43 +07:00
|
|
|
/>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label
|
|
|
|
|
>มีระยะเวลาขั้นต่ำในการดำรงตำแหน่งหรือเคย
|
|
|
|
|
ดำรงตำแหน่งในสายงานที่จะคัดเลือก
|
|
|
|
|
ตามคุณวุฒิของบุคคลและระดับตำแหน่งที่จะคัดเลือก</q-item-label
|
|
|
|
|
>
|
2023-12-13 15:24:59 +07:00
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped></style>
|