Merge pull request #170 from dderbentsov/UC-90

[WIP] Исправил название Адрес и уведомление при неправильном вводе ФИО
This commit is contained in:
frontgavrilin
2022-12-02 13:00:01 +03:00
committed by GitHub
2 changed files with 14 additions and 10 deletions

View File

@@ -384,19 +384,23 @@ export default {
}, },
checkFormFullness() { checkFormFullness() {
if (!this.infoClient.basic.full_name) { if (!this.infoClient.basic.full_name) {
this.addErrrorNotification(); this.addErrrorNotification(
"Не заполнено ФИО клиента",
"Пожалуйста, заполните ФИО клиента"
);
return false;
}
if (this.infoClient.basic.full_name.split(" ").length < 3) {
this.addErrrorNotification(
"Не корректное ФИО клиента",
"Пожалуйста, введите ФИО клиента правильно"
);
return false; return false;
} }
return true; return true;
}, },
addErrrorNotification() { addErrrorNotification(title, message) {
addNotification( addNotification(new Date().getTime(), title, message, "error", 5000);
new Date().getTime(),
"Не заполнено ФИО клиента",
"Пожалуйста, заполните ФИО клиента",
"error",
5000
);
}, },
addSuccessNotification() { addSuccessNotification() {
addNotification( addNotification(

View File

@@ -153,7 +153,7 @@ export const detail = {
rowFlex: true, rowFlex: true,
}, },
addresses: { addresses: {
title: "Адреса", title: "Адрес",
options: { options: {
join_adress: "Полный адрес", join_adress: "Полный адрес",
}, },