WIP Частично исправлены inputDate на форме клиента
This commit is contained in:
@@ -121,7 +121,7 @@ export default {
|
||||
infoClient: {
|
||||
basic: {
|
||||
full_name: "",
|
||||
birth_date: "",
|
||||
birth_date: null,
|
||||
priority: {
|
||||
id: null,
|
||||
label: "",
|
||||
@@ -147,7 +147,7 @@ export default {
|
||||
pass: {
|
||||
series_number: "",
|
||||
issued_by_org: "",
|
||||
issued_by_date: "",
|
||||
issued_by_date: null,
|
||||
issued_by_org_code: "",
|
||||
},
|
||||
snils: {
|
||||
@@ -270,9 +270,13 @@ export default {
|
||||
);
|
||||
} else
|
||||
fetchWrapper.post("general/identity_document/create/", {
|
||||
...this.filterDataEmptyProperty(
|
||||
this.infoClient.identity_document.pass
|
||||
),
|
||||
series_number: this.infoClient.identity_document.pass.series_number,
|
||||
issued_by_org: this.infoClient.identity_document.pass.issued_by_org,
|
||||
issued_by_date: moment(
|
||||
this.infoClient.identity_document.pass.issued_by_date
|
||||
).format("YYYY-MM-DD"),
|
||||
issued_by_org_code:
|
||||
this.infoClient.identity_document.pass.issued_by_org_code,
|
||||
person: id,
|
||||
kind: "Паспорт",
|
||||
});
|
||||
@@ -313,7 +317,10 @@ export default {
|
||||
formData.append("photo", e);
|
||||
});
|
||||
if (this.infoClient.basic.birth_date)
|
||||
formData.append("birth_date", this.infoClient.basic.birth_date);
|
||||
formData.append(
|
||||
"birth_date",
|
||||
moment(this.infoClient.basic.birth_date).format("YYYY-MM-DD")
|
||||
);
|
||||
let foundElement = this.prioritySettings.settings.find(
|
||||
(el) => el.priority === this.infoClient.basic.priority.id
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user