WIP Частично исправлены inputDate на форме клиента
This commit is contained in:
@@ -121,7 +121,7 @@ export default {
|
|||||||
infoClient: {
|
infoClient: {
|
||||||
basic: {
|
basic: {
|
||||||
full_name: "",
|
full_name: "",
|
||||||
birth_date: "",
|
birth_date: null,
|
||||||
priority: {
|
priority: {
|
||||||
id: null,
|
id: null,
|
||||||
label: "",
|
label: "",
|
||||||
@@ -147,7 +147,7 @@ export default {
|
|||||||
pass: {
|
pass: {
|
||||||
series_number: "",
|
series_number: "",
|
||||||
issued_by_org: "",
|
issued_by_org: "",
|
||||||
issued_by_date: "",
|
issued_by_date: null,
|
||||||
issued_by_org_code: "",
|
issued_by_org_code: "",
|
||||||
},
|
},
|
||||||
snils: {
|
snils: {
|
||||||
@@ -270,9 +270,13 @@ export default {
|
|||||||
);
|
);
|
||||||
} else
|
} else
|
||||||
fetchWrapper.post("general/identity_document/create/", {
|
fetchWrapper.post("general/identity_document/create/", {
|
||||||
...this.filterDataEmptyProperty(
|
series_number: this.infoClient.identity_document.pass.series_number,
|
||||||
this.infoClient.identity_document.pass
|
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,
|
person: id,
|
||||||
kind: "Паспорт",
|
kind: "Паспорт",
|
||||||
});
|
});
|
||||||
@@ -313,7 +317,10 @@ export default {
|
|||||||
formData.append("photo", e);
|
formData.append("photo", e);
|
||||||
});
|
});
|
||||||
if (this.infoClient.basic.birth_date)
|
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(
|
let foundElement = this.prioritySettings.settings.find(
|
||||||
(el) => el.priority === this.infoClient.basic.priority.id
|
(el) => el.priority === this.infoClient.basic.priority.id
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
.flex.flex-col(class="gap-y-1.5")
|
.flex.flex-col(class="gap-y-1.5")
|
||||||
span.text-sm Дата рождения
|
span.text-sm Дата рождения
|
||||||
base-input-date.input-info(
|
base-input-date.input-info(
|
||||||
v-model:value="basicInfo.birth_date",
|
v-model="basicInfo.birth_date",
|
||||||
)
|
)
|
||||||
.flex.flex-col(class="gap-y-1.5")
|
.flex.flex-col(class="gap-y-1.5")
|
||||||
span.text-sm Номер телефона
|
span.text-sm Номер телефона
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
.flex.flex-col(class="gap-y-1.5")
|
.flex.flex-col(class="gap-y-1.5")
|
||||||
span.text-sm Дата выдачи
|
span.text-sm Дата выдачи
|
||||||
base-input-date.input-info.h-10(
|
base-input-date.input-info.h-10(
|
||||||
v-model:value="identityDocument.pass.issued_by_date",
|
v-model="identityDocument.pass.issued_by_date",
|
||||||
placeholder="Дата",
|
placeholder="Дата",
|
||||||
:width-input="277"
|
:width-input="277"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user