Refactoring code module 10_registry

This commit is contained in:
STW_TTTY\stwtt 2024-09-10 15:10:18 +07:00
parent 59393536f7
commit 779e33d2a5
25 changed files with 605 additions and 276 deletions

View file

@ -1,25 +1,29 @@
<script setup lang="ts">
import { useCounterMixin } from "@/stores/mixin";
import { useQuasar, type QTableProps } from "quasar";
import { ref, reactive, onMounted } from "vue";
import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry";
//history dialog
import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
import { useQuasar, type QTableProps } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry";
import type {
ProfileAppointment,
FormDataGovernment,
} from "@/modules/10_registry/interface/index/Main";
//history dialog
import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
const store = useRegistryInFormationStore();
const rowsHistory = ref<any[]>([]);
const $q = useQuasar();
const mixin = useCounterMixin();
const store = useRegistryInFormationStore();
const { showLoader, hideLoader, messageError, date2Thai, dateToISO } = mixin;
const rowsHistory = ref<ProfileAppointment[]>([]);
const modalHistory = ref<boolean>(false);
/** ตัวแปรข้อมูล */
const formData = reactive<any>({
const formData = reactive<FormDataGovernment>({
org: "",
positionField: "",
position: "",
@ -29,8 +33,8 @@ const formData = reactive<any>({
posExecutive: "",
positionArea: "",
positionExecutiveField: "",
dateLeave: "",
dateRetireLaw: "",
dateLeave: null,
dateRetireLaw: null,
govAge: {
year: 0,
month: 0,