เพิ่มนับ

This commit is contained in:
setthawutttty 2024-10-11 16:01:26 +07:00
parent ea01d168cb
commit 23770d74b5

View file

@ -109,7 +109,6 @@ const childData = ref<FormChildren[]>([]);
/** ปิด 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();