WIP Сделана отправка данных

This commit is contained in:
Daria Golova
2023-04-19 18:10:31 +03:00
parent ebbceae03f
commit e006035e7c
3 changed files with 138 additions and 67 deletions

View File

@@ -322,12 +322,26 @@ export const documentForm = [
label: "Серия",
type: "text",
inputMask: "####",
checkField: (field) => {
return field.length === 4;
},
errorMessage: {
title: "Ошибка валидации",
message: "Серия паспорта заполнена неправильно",
},
},
{
key: "number",
label: "Номер",
type: "text",
inputMask: "######",
checkField: (field) => {
return field.length === 6;
},
errorMessage: {
title: "Ошибка валидации",
message: "Номер паспорта заполнен неправильно",
},
},
{
key: "issued_by_org",
@@ -339,6 +353,13 @@ export const documentForm = [
label: "Код подраздел.",
type: "text",
inputMask: "###-###",
checkField: (field) => {
return field.length === 7;
},
errorMessage: {
title: "Ошибка валидации",
message: "Код подразделения заполнен неправильно",
},
},
{
key: "issued_by_date",
@@ -361,6 +382,13 @@ export const documentForm = [
label: "Номер СНИЛС",
type: "text",
inputMask: "###-###-### ##",
checkField: (field) => {
return field.length === 14;
},
errorMessage: {
title: "Ошибка валидации",
message: "СНИЛС заполнен неправильно",
},
},
{
key: "photo_insurance_number",
@@ -378,6 +406,13 @@ export const documentForm = [
label: "Номер ИНН",
type: "text",
inputMask: "############",
checkField: (field) => {
return field.length === 12;
},
errorMessage: {
title: "Ошибка валидации",
message: "ИНН заполнен неправильно",
},
},
{
key: "photo_tax_identification_number",