diff --git a/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue b/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue index d63855eba..5c7376fb1 100644 --- a/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue +++ b/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue @@ -109,7 +109,6 @@ const childData = ref([]); /** ปิด popup */ async function closeDialog() { modal.value = false; - count.value = 0; childData.value = []; formInformations.bloodGroup = null; @@ -158,7 +157,7 @@ async function upDateInfomation() { undefined, }) .then(async () => { - count.value + 1; + count.value += 1; }) .catch((e) => { messageError($q, e); @@ -186,7 +185,9 @@ async function upDateAddress() { ...formDataAddress, id: undefined, }) - .then(async () => {}) + .then(async () => { + count.value += 1; + }) .catch((e) => { messageError($q, e); hideLoader(); @@ -199,14 +200,14 @@ async function upDateFamily() { await saveFather(); await saveMother(); if (coupleData.citizenId !== "") { - await saveCouple(); + saveCouple(); } if (childData.value.length !== 0) { for (const child of childData.value) { - await saveChildren(child); + saveChildren(child); } } - count.value + 1; + count.value += 1; } async function saveFather() { @@ -429,6 +430,7 @@ watch( async () => { if (modal.value) { showLoader(); + count.value = 0; await fetchDataRelationship(); await storeLinkCenter.fetchPerson(); await amiRequest();