ปรับหน้าขอแก้ไขข้อมูลทะเบียนประวัติ
This commit is contained in:
parent
d44cc0d477
commit
c6acb3e2b8
9 changed files with 131 additions and 324 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue