map from test data

This commit is contained in:
Warunee Tamkoo 2024-10-08 13:50:54 +07:00
parent 102811d421
commit 9a07238fb5
2 changed files with 36 additions and 1 deletions

View file

@ -215,9 +215,42 @@ function onSubmit() {
console.log(body);
}
const data = ref<any>(null);
/** ดึงข้อมูลรายละเอียด */
async function amiRequest() {
await store.amiRequest($q, 5000, idCard.value, "001");
// data.value = await store.amiRequest($q, 5000, idCard.value, "001");
data.value = {
titleCode: 3,
titleDesc: "นาย",
titleName: "นาย",
titleSex: 1,
firstName: "สุพลชัย",
middleName: "",
lastName: "พูลสวัสดิ์",
genderCode: 1,
genderDesc: "ชาย",
dateOfBirth: 25211228,
nationalityCode: 99,
nationalityDesc: "ไทย",
ownerStatusDesc: "เจ้าบ้าน",
statusOfPersonCode: 0,
statusOfPersonDesc: "บุคคลนี้มีภูมิลำเนาอยู่ในบ้านนี้",
dateOfMoveIn: 25580728,
age: 45,
fatherPersonalID: 3102100621479,
fatherName: "บุญเชิด",
fatherNationalityCode: 99,
fatherNationalityDesc: "ไทย",
motherPersonalID: 3102100621487,
motherName: "พยอม",
motherNationalityCode: 99,
motherNationalityDesc: "ไทย",
fullnameAndRank: "นายสุพลชัย พูลสวัสดิ์",
englishTitleDesc: "MR.",
englishFirstName: "SUPHONCHAI",
englishMiddleName: "",
englishLastName: "PHOONSAWAT",
};
}
/** เช็คค่า modal เมื่อเป็น true ใช้งาน ฟังชั่น */

View file

@ -271,6 +271,8 @@ export const useLinkageStore = defineStore("linkageData", () => {
} else if (code === 9081) {
tKey.value = removeText;
step.value = 4;
} else if (code === 5000) {
return removeText;
}
})
.catch(async (error) => {