Refactoring code module 10_registry
This commit is contained in:
parent
59393536f7
commit
779e33d2a5
25 changed files with 605 additions and 276 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue