เพิ่มนับ
This commit is contained in:
parent
ea01d168cb
commit
23770d74b5
1 changed files with 8 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue