[WIP] Фикс переменных, правка стилей

This commit is contained in:
megavrilinvv
2022-12-27 14:16:39 +03:00
parent 84f4379f2d
commit 687a56defb
8 changed files with 97 additions and 77 deletions

View File

@@ -152,11 +152,11 @@ export default {
},
snils: {
kind: "СНИЛС",
numba: "",
number: "",
},
inn: {
kind: "ИНН",
numba: "",
number: "",
},
},
addresses: {
@@ -273,7 +273,7 @@ export default {
...this.filterDataEmptyProperty(
this.infoClient.identity_document.pass
),
person_id: id,
person: id,
kind: "Паспорт",
});
}
@@ -283,26 +283,26 @@ export default {
.length > 0 &&
fetchWrapper.post("general/address/create/", {
...this.filterDataEmptyProperty(this.infoClient.addresses),
person_id: id,
person: id,
});
},
createContacts(id) {
if (this.infoClient.phone.username)
fetchWrapper.post("general/contact/create/", {
...this.filterDataEmptyProperty(this.infoClient.phone),
person_id: id,
person: id,
});
if (this.infoClient.email.username)
fetchWrapper.post("general/contact/create/", {
...this.filterDataEmptyProperty(this.infoClient.email),
person_id: id,
person: id,
});
this.infoClient.basic.contacts.forEach((el) => {
if (el.username)
fetchWrapper.post("general/contact/create/", {
kind: el.kind,
username: el.username,
person_id: id,
person: id,
});
});
},