[WIP] Исправил название Адрес и уведомление при неправильном вводе ФИО

This commit is contained in:
megavrilinvv
2022-12-02 12:57:53 +03:00
parent 80f7cb075b
commit 4c29fe114c
2 changed files with 14 additions and 10 deletions

View File

@@ -384,19 +384,23 @@ export default {
},
checkFormFullness() {
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 true;
},
addErrrorNotification() {
addNotification(
new Date().getTime(),
"Не заполнено ФИО клиента",
"Пожалуйста, заполните ФИО клиента",
"error",
5000
);
addErrrorNotification(title, message) {
addNotification(new Date().getTime(), title, message, "error", 5000);
},
addSuccessNotification() {
addNotification(

View File

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