diff --git a/src/components/base/BaseClientFormCreate.vue b/src/components/base/BaseClientFormCreate.vue index 1c47ac7..79330a3 100644 --- a/src/components/base/BaseClientFormCreate.vue +++ b/src/components/base/BaseClientFormCreate.vue @@ -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( diff --git a/src/pages/clients/utils/tableConfig.js b/src/pages/clients/utils/tableConfig.js index d27b0ec..b6099ec 100644 --- a/src/pages/clients/utils/tableConfig.js +++ b/src/pages/clients/utils/tableConfig.js @@ -153,7 +153,7 @@ export const detail = { rowFlex: true, }, addresses: { - title: "Адреса", + title: "Адрес", options: { join_adress: "Полный адрес", },