WIP Добавил страницу доверенного лица

This commit is contained in:
DwCay
2023-04-24 19:01:58 +03:00
parent 2205500916
commit b2f180bbb9
9 changed files with 288 additions and 7 deletions

View File

@@ -214,6 +214,59 @@ export const allergiesConfig = {
},
};
export const confidantConfig = [
{
dataLabel: "Общая информация",
fields: [
{
key: "first_name",
label: "Имя",
},
{
key: "last_name",
label: "Фамилия",
},
{
key: "patronymic",
label: "Отчество",
},
],
},
{
dataLabel: "Контакты",
fields: [
{
key: "phone",
label: "Телефон",
mask: "+7 (###) ###-##-##",
rules: [(val) => ruleLengthValue(val, 18)],
},
{
key: "email",
label: "Почта",
rules: [(val) => ruleEmailValue(val)],
},
{
key: "networks",
label: "Соцсеть",
rules: [(val) => ruleNotValue(val)],
},
],
},
{
dataLabel: "Дополнения",
fields: [
{
key: "additions",
label: "Информация",
type: "textarea",
autogrow: true,
placeholder: "Нет информации",
},
],
},
];
export const genderOptions = [
{
id: "MALE",
@@ -266,8 +319,8 @@ export const baseInfoMenu = [
},
{
title: "Доверенное лицо",
id: "trusted-person",
component: "TrustedPerson",
id: "confidant",
component: "MedicalConfidantWrapper",
},
{
title: "Аллергии",