WIP В редактировании ДУЛ настроены dateInputs
This commit is contained in:
@@ -465,7 +465,9 @@ export default {
|
||||
issued_by_org_code: data.issued_by_org_code
|
||||
? data?.issued_by_org_code
|
||||
: "",
|
||||
issued_by_date: data.issued_by_date ? data?.issued_by_date : "",
|
||||
issued_by_date: data.issued_by_date
|
||||
? new Date(data?.issued_by_date)
|
||||
: null,
|
||||
};
|
||||
this.lackData = true;
|
||||
} else {
|
||||
@@ -474,7 +476,7 @@ export default {
|
||||
number: "",
|
||||
issued_by_org: "",
|
||||
issued_by_org_code: "",
|
||||
issued_by_date: "",
|
||||
issued_by_date: null,
|
||||
};
|
||||
}
|
||||
},
|
||||
@@ -485,7 +487,9 @@ export default {
|
||||
series_number: this.dataIdentityDocument.number,
|
||||
issued_by_org: this.dataIdentityDocument.issued_by_org,
|
||||
issued_by_org_code: this.dataIdentityDocument.issued_by_org_code,
|
||||
issued_by_date: this.dataIdentityDocument.issued_by_date,
|
||||
issued_by_date: moment(
|
||||
this.dataIdentityDocument.issued_by_date
|
||||
).format("YYYY-MM-DD"),
|
||||
})
|
||||
.then((response) => {
|
||||
this.fetchClientDetail(this.id);
|
||||
@@ -495,7 +499,7 @@ export default {
|
||||
"Ошибка редактрирования ДУЛ",
|
||||
"Часть паспортных данных не заполнена"
|
||||
);
|
||||
if (response.errors[0].code === "Ошибка редактрирования ДУЛ")
|
||||
if (response.errors[0].code === "Ошибка редактирования ДУЛ")
|
||||
this.addErrorNotification(
|
||||
response.errors[0].code,
|
||||
response.errors[0].detail
|
||||
@@ -616,7 +620,9 @@ export default {
|
||||
series_number: this.dataIdentityDocument.number,
|
||||
issued_by_org: this.dataIdentityDocument.issued_by_org,
|
||||
issued_by_org_code: this.dataIdentityDocument.issued_by_org_code,
|
||||
issued_by_date: this.dataIdentityDocument.issued_by_date,
|
||||
issued_by_date: moment(
|
||||
this.dataIdentityDocument.issued_by_date
|
||||
).format("YYYY-MM-DD"),
|
||||
})
|
||||
.then((response) => {
|
||||
this.fetchClientDetail(this.id);
|
||||
|
||||
Reference in New Issue
Block a user