updated linkage

This commit is contained in:
Warunee Tamkoo 2024-10-05 12:23:02 +07:00
parent 1f65a8d6a7
commit 447bbd90c8
5 changed files with 457 additions and 39 deletions

View file

@ -607,6 +607,7 @@ onMounted(async () => {
:family-data="FamilyData"
:Ops="Ops"
:Ops-filter="OpsFilter"
:id-card="InformationData.idCard"
/>
</template>

View file

@ -6,6 +6,7 @@ import { useRoute, useRouter } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import { useLinkageStore } from "@/stores/linkage";
import {
AddressDataDefualt,
FamilyDataDefualt,
@ -27,12 +28,13 @@ import FormAddressPage from "@/modules/05_placement/components/PersonalDetail/Ch
import FormFamilyPage from "@/modules/05_placement/components/PersonalDetail/CheckInformation/03_FormFamily.vue";
const modal = defineModel<boolean>("modal", { required: true });
const idCard = defineModel<string>("idCard", { required: true });
const $q = useQuasar();
const route = useRoute();
const router = useRouter();
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError } = mixin;
const store = useLinkageStore();
const props = defineProps({
Ops: {
@ -215,15 +217,7 @@ function onSubmit() {
/** ดึงข้อมูลรายละเอียด */
async function amiRequest() {
// await http
// .get(config.API.path)
// .then(async(res) => {
// const data = await res.data.result;
// })
// .catch((e) => {
// messageError($q, e);
// })
// .finally(() => {});
await store.amiRequest($q, 5000, idCard.value, "001");
}
/** เช็คค่า modal เมื่อเป็น true ใช้งาน ฟังชั่น */

View file

@ -8,7 +8,7 @@ interface ChangeActive {
//ข้อมูลส่วนตัว
interface Information {
idCard: string | null;
idCard: string;
prefix: string | null;
prefixId: string | null;
fullName: string | null;
@ -121,7 +121,7 @@ const defaultAddress: Address = {
};
const defaultInformation: Information = {
idCard: null,
idCard: "",
prefix: null,
prefixId: null,
fullName: null,