[WIP] Фикс переменных, правка стилей
This commit is contained in:
@@ -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,
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user