2024-03-08 16:46:36 +07:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref } from "vue";
|
2025-02-24 15:55:47 +07:00
|
|
|
import { useCounterMixin } from "@/stores/mixin";
|
|
|
|
|
import { useRoute } from "vue-router";
|
|
|
|
|
|
|
|
|
|
const { pathRegistryEmp } = useCounterMixin();
|
|
|
|
|
const route = useRoute();
|
2024-03-08 16:46:36 +07:00
|
|
|
|
|
|
|
|
/** importComponents*/
|
2024-09-18 17:24:21 +07:00
|
|
|
import Info from "@/modules/04_registryPerson/components/detail/GovernmentInformation/01_Info.vue"; //ข้อมูลราชการ
|
|
|
|
|
import Discipline from "@/modules/04_registryPerson/components/detail/GovernmentInformation/02_Discipline.vue"; //วินัย
|
|
|
|
|
import Leave from "@/modules/04_registryPerson/components/detail/GovernmentInformation/03_Leave.vue"; //การลา
|
|
|
|
|
import PerformSpecialWork from "@/modules/04_registryPerson/components/detail/GovernmentInformation/04_PerformSpecialWork.vue"; //ปฏิบัติราชการพิเศษ
|
2025-01-24 14:08:34 +07:00
|
|
|
import ActingPos from "@/modules/04_registryPerson/components/detail/GovernmentInformation/05_ActingPos.vue"; //รักษาการในตำแหน่ง
|
|
|
|
|
import HelpGovernmentDetail from "@/modules/04_registryPerson/components/detail/GovernmentInformation/06_HelpGovernment.vue"; //ช่วยราชการ
|
2025-02-19 13:10:35 +07:00
|
|
|
import Postion from "@/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue";
|
2026-03-24 16:50:26 +07:00
|
|
|
import AbsentLate from "@/modules/04_registryPerson/components/detail/GovernmentInformation/08_AbsentLate.vue";
|
2024-10-21 17:56:47 +07:00
|
|
|
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
|
|
|
|
|
2025-02-24 15:55:47 +07:00
|
|
|
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
|
|
|
|
|
2024-03-08 16:46:36 +07:00
|
|
|
const tab = ref<string>("1");
|
2024-10-21 17:56:47 +07:00
|
|
|
const storeRegistry = useRegistryNewDataStore();
|
2024-03-08 16:46:36 +07:00
|
|
|
</script>
|
2025-02-24 15:55:47 +07:00
|
|
|
|
2024-03-08 16:46:36 +07:00
|
|
|
<template>
|
2024-04-23 17:56:51 +07:00
|
|
|
<div class="row items-center q-my-md">
|
|
|
|
|
<div class="text-dark row items-center q-px-md">
|
|
|
|
|
<q-icon name="mdi-account" class="q-mr-md" size="22px" />
|
|
|
|
|
<div class="text-subtitle1 text-weight-bold">ข้อมูลราชการ</div>
|
2024-03-08 16:46:36 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<q-separator />
|
|
|
|
|
<q-tabs
|
|
|
|
|
v-model="tab"
|
2024-04-23 17:56:51 +07:00
|
|
|
active-color="blue-8"
|
2024-03-11 11:25:42 +07:00
|
|
|
align="left"
|
2024-03-08 16:46:36 +07:00
|
|
|
bordered
|
2024-04-23 17:56:51 +07:00
|
|
|
narrow-indicator
|
|
|
|
|
indicator-color="transparent"
|
|
|
|
|
dense
|
|
|
|
|
class="text-grey q-pl-sm"
|
2024-03-08 16:46:36 +07:00
|
|
|
>
|
|
|
|
|
<q-tab name="1" label="ข้อมูลราชการ" />
|
2025-02-19 13:10:35 +07:00
|
|
|
<q-tab name="7" label="ตำแหน่ง" />
|
2025-02-24 15:55:47 +07:00
|
|
|
<q-tab v-if="empType != '-employee'" name="5" label="รักษาการในตำแหน่ง" />
|
|
|
|
|
<q-tab v-if="empType != '-employee'" name="6" label="ช่วยราชการ" />
|
2024-03-08 16:46:36 +07:00
|
|
|
<q-tab name="2" label="วินัย" />
|
|
|
|
|
<q-tab name="3" label="การลา" />
|
2026-03-24 16:50:26 +07:00
|
|
|
<q-tab name="8" label="ขาดราชการ/มาสาย" />
|
2024-03-08 16:46:36 +07:00
|
|
|
<q-tab name="4" label="ปฏิบัติราชการพิเศษ" />
|
|
|
|
|
</q-tabs>
|
|
|
|
|
<q-separator />
|
|
|
|
|
|
|
|
|
|
<q-tab-panels v-model="tab" animated>
|
|
|
|
|
<q-tab-panel name="1">
|
2025-01-24 14:08:34 +07:00
|
|
|
<Info :is-leave="storeRegistry.isLeave" />
|
2024-03-08 16:46:36 +07:00
|
|
|
</q-tab-panel>
|
|
|
|
|
<q-tab-panel name="2">
|
2025-01-24 14:08:34 +07:00
|
|
|
<Discipline :is-leave="storeRegistry.isLeave" />
|
2024-03-08 16:46:36 +07:00
|
|
|
</q-tab-panel>
|
|
|
|
|
<q-tab-panel name="3">
|
2025-01-24 14:08:34 +07:00
|
|
|
<Leave :is-leave="storeRegistry.isLeave" />
|
2024-03-08 16:46:36 +07:00
|
|
|
</q-tab-panel>
|
|
|
|
|
<q-tab-panel name="4">
|
2025-01-24 14:08:34 +07:00
|
|
|
<PerformSpecialWork :is-leave="storeRegistry.isLeave" />
|
|
|
|
|
</q-tab-panel>
|
2025-02-24 15:55:47 +07:00
|
|
|
<q-tab-panel v-if="empType != '-employee'" name="5">
|
2026-02-03 16:23:08 +07:00
|
|
|
<ActingPos
|
|
|
|
|
:is-leave="storeRegistry.isLeave"
|
|
|
|
|
:citizen-id="storeRegistry.citizenId"
|
|
|
|
|
/>
|
2025-01-24 14:08:34 +07:00
|
|
|
</q-tab-panel>
|
2025-02-24 15:55:47 +07:00
|
|
|
<q-tab-panel v-if="empType != '-employee'" name="6">
|
2026-02-03 16:23:08 +07:00
|
|
|
<HelpGovernmentDetail
|
|
|
|
|
:is-leave="storeRegistry.isLeave"
|
|
|
|
|
:citizen-id="storeRegistry.citizenId"
|
|
|
|
|
/>
|
2024-03-08 16:46:36 +07:00
|
|
|
</q-tab-panel>
|
2026-03-24 16:50:26 +07:00
|
|
|
<q-tab-panel name="8">
|
|
|
|
|
<AbsentLate :is-leave="storeRegistry.isLeave" />
|
|
|
|
|
</q-tab-panel>
|
2025-02-19 13:10:35 +07:00
|
|
|
<q-tab-panel name="7">
|
2026-02-03 16:23:08 +07:00
|
|
|
<Postion
|
|
|
|
|
:is-leave="storeRegistry.isLeave"
|
|
|
|
|
:citizen-id="storeRegistry.citizenId"
|
|
|
|
|
/>
|
2025-02-19 13:10:35 +07:00
|
|
|
</q-tab-panel>
|
2024-03-08 16:46:36 +07:00
|
|
|
</q-tab-panels>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped></style>
|