ปรับหน้าขอแก้ไขข้อมูลทะเบียนประวัติ

This commit is contained in:
setthawutttty 2024-10-24 15:47:39 +07:00
parent d44cc0d477
commit c6acb3e2b8
9 changed files with 131 additions and 324 deletions

View file

@ -201,27 +201,6 @@ async function amiRequest() {
formDataAddress.currentDistrictId = data.value.currentDistrictId;
formDataAddress.currentSubDistrictId = data.value.currentSubDistrictId;
formDataAddress.currentZipCode = data.value.currentZipCode;
// formFamily.fatherFirstName = data.value.fatherName;
// formFamily.motherFirstName = data.value.motherName;
}
/**
* function fetch อมลความสมพนธ
*/
async function fetchDataRelationship() {
await http
.get(config.API.orgRelationship)
.then(async (res) => {
const list = await res.data.result.map((e: any) => ({
id: e.id,
name: e.name,
}));
storeLinkCenter.optionRelationshipMain = list;
})
.catch((err) => {
messageError($q, err);
});
}
watch(
@ -230,7 +209,6 @@ watch(
if (modal.value) {
showLoader();
count.value = 0;
await fetchDataRelationship();
await storeLinkCenter.fetchPerson();
await amiRequest();
presentAddress.value = formDataAddress.registrationZipCode ? "0" : "1";