เพิ่มนับ
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 */
|
/** ปิด popup */
|
||||||
async function closeDialog() {
|
async function closeDialog() {
|
||||||
modal.value = false;
|
modal.value = false;
|
||||||
count.value = 0;
|
|
||||||
childData.value = [];
|
childData.value = [];
|
||||||
|
|
||||||
formInformations.bloodGroup = null;
|
formInformations.bloodGroup = null;
|
||||||
|
|
@ -158,7 +157,7 @@ async function upDateInfomation() {
|
||||||
undefined,
|
undefined,
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
count.value + 1;
|
count.value += 1;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -186,7 +185,9 @@ async function upDateAddress() {
|
||||||
...formDataAddress,
|
...formDataAddress,
|
||||||
id: undefined,
|
id: undefined,
|
||||||
})
|
})
|
||||||
.then(async () => {})
|
.then(async () => {
|
||||||
|
count.value += 1;
|
||||||
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
hideLoader();
|
hideLoader();
|
||||||
|
|
@ -199,14 +200,14 @@ async function upDateFamily() {
|
||||||
await saveFather();
|
await saveFather();
|
||||||
await saveMother();
|
await saveMother();
|
||||||
if (coupleData.citizenId !== "") {
|
if (coupleData.citizenId !== "") {
|
||||||
await saveCouple();
|
saveCouple();
|
||||||
}
|
}
|
||||||
if (childData.value.length !== 0) {
|
if (childData.value.length !== 0) {
|
||||||
for (const child of childData.value) {
|
for (const child of childData.value) {
|
||||||
await saveChildren(child);
|
saveChildren(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
count.value + 1;
|
count.value += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveFather() {
|
async function saveFather() {
|
||||||
|
|
@ -429,6 +430,7 @@ watch(
|
||||||
async () => {
|
async () => {
|
||||||
if (modal.value) {
|
if (modal.value) {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
count.value = 0;
|
||||||
await fetchDataRelationship();
|
await fetchDataRelationship();
|
||||||
await storeLinkCenter.fetchPerson();
|
await storeLinkCenter.fetchPerson();
|
||||||
await amiRequest();
|
await amiRequest();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue