WIP Изменила инпут, сделала документы

This commit is contained in:
Daria Golova
2023-08-22 15:19:28 +03:00
parent 817f881159
commit 4987a3ae09
6 changed files with 146 additions and 169 deletions

View File

@@ -475,7 +475,7 @@ export const documentForm = [
rules: (val) => ruleLengthValue(val, 6),
},
{
key: "issued_by_org",
key: "issued_by",
label: "Кем выдан",
type: "text",
errorMessage: {
@@ -496,7 +496,7 @@ export const documentForm = [
rules: (val) => ruleLengthValue(val, 7),
},
{
key: "issued_by_date",
key: "issued_at",
label: "Дата выдачи",
type: "date",
rules: (val) => ruleDateValue(val),
@@ -506,7 +506,7 @@ export const documentForm = [
},
},
{
key: "photo",
key: "attachments",
label: "Фото паспорта",
type: "photo",
},
@@ -517,7 +517,7 @@ export const documentForm = [
dataKey: "insurance_number",
fields: [
{
key: "insurance_number",
key: "number",
label: "Номер СНИЛС",
type: "text",
inputMask: "###-###-### ##",
@@ -528,7 +528,7 @@ export const documentForm = [
rules: (val) => ruleOptionalFields(val, 14),
},
{
key: "photo_insurance_number",
key: "attachments",
label: "Фото СНИЛС",
type: "photo",
},
@@ -539,7 +539,7 @@ export const documentForm = [
dataKey: "tax_identification_number",
fields: [
{
key: "tax_identification_number",
key: "number",
label: "Номер ИНН",
type: "text",
inputMask: "############",
@@ -550,7 +550,7 @@ export const documentForm = [
rules: (val) => ruleOptionalFields(val, 12),
},
{
key: "photo_tax_identification_number",
key: "attachments",
label: "Фото ИНН",
type: "photo",
},