map from test data
This commit is contained in:
parent
102811d421
commit
9a07238fb5
2 changed files with 36 additions and 1 deletions
|
|
@ -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 ใช้งาน ฟังชั่น */
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue