@redneckz/wildless-cms-uni-blocks 0.14.733 → 0.14.735
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.734.js +26 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +66 -94
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/bundle/services/retail/model/RetailFormContent.d.ts +1 -8
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/dist/components/ApplicationForm/getInitialFormState.js +2 -2
- package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js +11 -11
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/dist/services/retail/content.js +51 -72
- package/dist/services/retail/content.js.map +1 -1
- package/dist/services/retail/model/RetailFormContent.d.ts +1 -8
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/lib/components/ApplicationForm/getInitialFormState.js +2 -2
- package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js +11 -11
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/lib/services/retail/content.js +51 -72
- package/lib/services/retail/content.js.map +1 -1
- package/lib/services/retail/model/RetailFormContent.d.ts +1 -8
- package/mobile/bundle/bundle.umd.js +66 -94
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/mobile/bundle/services/retail/model/RetailFormContent.d.ts +1 -8
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js +2 -2
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +11 -11
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/mobile/dist/services/retail/content.js +51 -72
- package/mobile/dist/services/retail/content.js.map +1 -1
- package/mobile/dist/services/retail/model/RetailFormContent.d.ts +1 -8
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js +2 -2
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +11 -11
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js +1 -2
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/mobile/lib/services/retail/content.js +51 -72
- package/mobile/lib/services/retail/content.js.map +1 -1
- package/mobile/lib/services/retail/model/RetailFormContent.d.ts +1 -8
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +0 -126
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +2 -33
- package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +0 -11
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +11 -11
- package/mobile/src/components/CreditCardForm/getDeliveryCreditCardData.ts +1 -2
- package/mobile/src/services/retail/content.tsx +51 -72
- package/mobile/src/services/retail/model/RetailFormContent.ts +1 -11
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +0 -126
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +114 -136
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +115 -136
- package/src/components/ApplicationForm/ApplicationFormContent.ts +2 -33
- package/src/components/ApplicationForm/getInitialFormState.tsx +2 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +0 -11
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +11 -11
- package/src/components/CreditCardForm/getDeliveryCreditCardData.ts +1 -2
- package/src/icons/IconName.ts +4 -4
- package/src/services/retail/content.tsx +51 -72
- package/src/services/retail/model/RetailFormContent.ts +1 -11
|
@@ -34,46 +34,15 @@ export type FilledByEsiaProps = {
|
|
|
34
34
|
filledByEsia?: boolean;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export type
|
|
37
|
+
export type FieldDef = Required &
|
|
38
38
|
LabelProps &
|
|
39
39
|
ConditionFieldProps &
|
|
40
40
|
FilledByEsiaProps & {
|
|
41
41
|
name?: NameFieldDef;
|
|
42
42
|
dadata?: boolean;
|
|
43
|
+
defaultValue?: string;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
|
-
/**
|
|
46
|
-
* @title Поля ввода по умолчанию
|
|
47
|
-
* @default {"fieldType": "common"}
|
|
48
|
-
*/
|
|
49
|
-
export type FieldCommonDef = FieldDefaultDef & {
|
|
50
|
-
/** @default "common" */
|
|
51
|
-
fieldType: 'common';
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @title Значение по умолчанию
|
|
56
|
-
* @enumNames ["Валютный контроль","Документарные операции","Конверсионные операции","Иные вопросы ВЭД"]
|
|
57
|
-
*/
|
|
58
|
-
type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @title Поле ввода ВЭД
|
|
62
|
-
* @default {"fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl"}
|
|
63
|
-
*/
|
|
64
|
-
export type FieldVedDef = FieldDefaultDef & {
|
|
65
|
-
/** @default "ved" */
|
|
66
|
-
fieldType: 'ved';
|
|
67
|
-
defaultValue?: VedTypes;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @title Поле
|
|
72
|
-
* @default { "fieldType": "common" }
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
export type FieldDef = FieldCommonDef | FieldVedDef;
|
|
76
|
-
|
|
77
46
|
/** @hidden */
|
|
78
47
|
export type EndpointType = 'lead' | 'sendcorporatelead';
|
|
79
48
|
|
|
@@ -48,7 +48,7 @@ const initialFormState = {
|
|
|
48
48
|
serviceType: SERVICE_TYPES[0],
|
|
49
49
|
feedbackMethod: FEEDBACK_METHOD[0],
|
|
50
50
|
serviceDirection: SERVICE_DIRECTIONS[0],
|
|
51
|
-
vedTypes: VED_TYPES[0],
|
|
51
|
+
vedTypes: VED_TYPES[0].id,
|
|
52
52
|
birthday: undefined,
|
|
53
53
|
isClient: false,
|
|
54
54
|
onlineCheckout: false,
|
|
@@ -62,7 +62,7 @@ export const getInitialFormState = (inputs: FieldDef[], typeForm = ''): FormStat
|
|
|
62
62
|
const formState = Object.fromEntries(
|
|
63
63
|
inputs.map((_) => [
|
|
64
64
|
_.name,
|
|
65
|
-
(_
|
|
65
|
+
(_?.name === 'vedTypes' && _?.defaultValue) || initialFormState[_.name || ''],
|
|
66
66
|
]),
|
|
67
67
|
);
|
|
68
68
|
|
|
@@ -13,31 +13,25 @@
|
|
|
13
13
|
"columns": 2,
|
|
14
14
|
"inputs": [
|
|
15
15
|
{
|
|
16
|
-
"fieldType": "common",
|
|
17
16
|
"name": "surname",
|
|
18
17
|
"required": true
|
|
19
18
|
},
|
|
20
19
|
{
|
|
21
|
-
"fieldType": "common",
|
|
22
20
|
"name": "name",
|
|
23
21
|
"required": true
|
|
24
22
|
},
|
|
25
23
|
{
|
|
26
|
-
"fieldType": "common",
|
|
27
24
|
"name": "middleName"
|
|
28
25
|
},
|
|
29
26
|
{
|
|
30
|
-
"fieldType": "common",
|
|
31
27
|
"name": "limitedBirthday",
|
|
32
28
|
"required": true
|
|
33
29
|
},
|
|
34
30
|
{
|
|
35
|
-
"fieldType": "common",
|
|
36
31
|
"name": "phone",
|
|
37
32
|
"required": true
|
|
38
33
|
},
|
|
39
34
|
{
|
|
40
|
-
"fieldType": "common",
|
|
41
35
|
"name": "email",
|
|
42
36
|
"required": true
|
|
43
37
|
}
|
|
@@ -46,26 +40,21 @@
|
|
|
46
40
|
{
|
|
47
41
|
"inputs": [
|
|
48
42
|
{
|
|
49
|
-
"fieldType": "common",
|
|
50
43
|
"name": "processPersonalDataFlg",
|
|
51
44
|
"required": true
|
|
52
45
|
},
|
|
53
46
|
{
|
|
54
|
-
"fieldType": "common",
|
|
55
47
|
"name": "consentProviderFlg",
|
|
56
48
|
"required": true
|
|
57
49
|
},
|
|
58
50
|
{
|
|
59
|
-
"fieldType": "common",
|
|
60
51
|
"name": "consentOthersFlg",
|
|
61
52
|
"required": true
|
|
62
53
|
},
|
|
63
54
|
{
|
|
64
|
-
"fieldType": "common",
|
|
65
55
|
"name": "consentInformFlg"
|
|
66
56
|
},
|
|
67
57
|
{
|
|
68
|
-
"fieldType": "common",
|
|
69
58
|
"name": "consentPfrFlg"
|
|
70
59
|
}
|
|
71
60
|
]
|
|
@@ -4,21 +4,21 @@ export const applicationFormData: SectionsRetailProps[] = [
|
|
|
4
4
|
{
|
|
5
5
|
columns: 2,
|
|
6
6
|
inputs: [
|
|
7
|
-
{
|
|
8
|
-
{
|
|
9
|
-
{
|
|
10
|
-
{
|
|
11
|
-
{
|
|
12
|
-
{
|
|
7
|
+
{ name: 'surname', required: true, dadata: true },
|
|
8
|
+
{ name: 'name', required: true, dadata: true },
|
|
9
|
+
{ name: 'middleName', dadata: true },
|
|
10
|
+
{ name: 'limitedBirthday', required: true },
|
|
11
|
+
{ name: 'phone', required: true },
|
|
12
|
+
{ name: 'email', required: true, dadata: true },
|
|
13
13
|
],
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
inputs: [
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
17
|
+
{ name: 'processPersonalDataFlg', required: true },
|
|
18
|
+
{ name: 'consentProviderFlg', required: true },
|
|
19
|
+
{ name: 'consentOthersFlg', required: true },
|
|
20
|
+
{ name: 'consentInformFlg' },
|
|
21
|
+
{ name: 'consentPfrFlg' },
|
|
22
22
|
],
|
|
23
23
|
},
|
|
24
24
|
];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type LeadFormState } from '../../services/retail/model/LeadFormState';
|
|
2
|
-
import { dateToISO } from '../../utils/dateToISO';
|
|
3
2
|
import { getParticipantAddresses } from '../CreditForm/utils';
|
|
4
3
|
|
|
5
4
|
export const getDeliveryData = (formData: LeadFormState) => {
|
|
@@ -10,7 +9,7 @@ export const getDeliveryData = (formData: LeadFormState) => {
|
|
|
10
9
|
return isCourierDelivery
|
|
11
10
|
? {
|
|
12
11
|
courierDeliveryFlg: isCourierDelivery,
|
|
13
|
-
deliveryDate:
|
|
12
|
+
deliveryDate: deliveryDate.toString().replace(/(GMT)[+-]\d{4}/, 'GMT+0000'),
|
|
14
13
|
deliveryTimeCd: { value: 'TIME_2' },
|
|
15
14
|
//TODO временный хардкод для тестирования, не забыть удалить
|
|
16
15
|
office: { id: '3' },
|
|
@@ -7,30 +7,28 @@ const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
|
7
7
|
columns: 2,
|
|
8
8
|
inputs: [
|
|
9
9
|
{
|
|
10
|
-
fieldType: 'common',
|
|
11
10
|
name: 'surname',
|
|
12
11
|
required: true,
|
|
13
12
|
dadata: true,
|
|
14
13
|
filledByEsia: true,
|
|
15
14
|
},
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
15
|
+
{ name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
16
|
+
{ name: 'middleName', dadata: true, filledByEsia: true },
|
|
17
|
+
{ name: 'sex', required: true },
|
|
18
|
+
{ name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
19
|
+
{ name: 'birthPlace', required: true, filledByEsia: true },
|
|
20
|
+
{ name: 'phone', required: true, filledByEsia: true },
|
|
21
|
+
{ name: 'email', required: true, dadata: true },
|
|
23
22
|
],
|
|
24
23
|
},
|
|
25
24
|
{
|
|
26
25
|
title: 'Паспортные данные',
|
|
27
26
|
columns: 2,
|
|
28
27
|
inputs: [
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
28
|
+
{ name: 'dulSerie', required: true, filledByEsia: true },
|
|
29
|
+
{ name: 'dulNumber', required: true, filledByEsia: true },
|
|
30
|
+
{ name: 'dulIssueDateField', required: true, filledByEsia: true },
|
|
32
31
|
{
|
|
33
|
-
fieldType: 'common',
|
|
34
32
|
name: 'dulSubdivisionCode',
|
|
35
33
|
required: true,
|
|
36
34
|
dadata: true,
|
|
@@ -41,14 +39,12 @@ const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
|
41
39
|
{
|
|
42
40
|
inputs: [
|
|
43
41
|
{
|
|
44
|
-
fieldType: 'common',
|
|
45
42
|
name: 'dulIssuedBy',
|
|
46
43
|
required: true,
|
|
47
44
|
dadata: true,
|
|
48
45
|
filledByEsia: true,
|
|
49
46
|
},
|
|
50
47
|
{
|
|
51
|
-
fieldType: 'common',
|
|
52
48
|
name: 'education',
|
|
53
49
|
required: true,
|
|
54
50
|
},
|
|
@@ -62,18 +58,17 @@ const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
|
62
58
|
{
|
|
63
59
|
inputs: [
|
|
64
60
|
{
|
|
65
|
-
fieldType: 'common',
|
|
66
61
|
name: 'addressRegistration',
|
|
67
62
|
required: true,
|
|
68
63
|
dadata: true,
|
|
69
64
|
filledByEsia: true,
|
|
70
65
|
},
|
|
71
|
-
{
|
|
66
|
+
{ name: 'addressMatch' },
|
|
72
67
|
],
|
|
73
68
|
},
|
|
74
69
|
{
|
|
75
70
|
columns: 2,
|
|
76
|
-
inputs: [{
|
|
71
|
+
inputs: [{ name: 'participantDateRegistration', required: true }],
|
|
77
72
|
},
|
|
78
73
|
{
|
|
79
74
|
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
@@ -81,10 +76,10 @@ const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
|
81
76
|
},
|
|
82
77
|
{
|
|
83
78
|
columns: 2,
|
|
84
|
-
inputs: [{
|
|
79
|
+
inputs: [{ name: 'housing', required: true }],
|
|
85
80
|
},
|
|
86
81
|
{
|
|
87
|
-
inputs: [{
|
|
82
|
+
inputs: [{ name: 'addressFact', required: true, dadata: true }],
|
|
88
83
|
},
|
|
89
84
|
];
|
|
90
85
|
const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
|
|
@@ -95,7 +90,6 @@ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
|
|
|
95
90
|
{
|
|
96
91
|
inputs: [
|
|
97
92
|
{
|
|
98
|
-
fieldType: 'common',
|
|
99
93
|
name: 'infoCard',
|
|
100
94
|
label:
|
|
101
95
|
'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
@@ -105,51 +99,49 @@ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
|
|
|
105
99
|
},
|
|
106
100
|
{
|
|
107
101
|
inputs: [
|
|
108
|
-
{
|
|
109
|
-
{
|
|
102
|
+
{ name: 'employment', required: true },
|
|
103
|
+
{ name: 'organizationName', required: true, dadata: true },
|
|
110
104
|
],
|
|
111
105
|
},
|
|
112
106
|
{
|
|
113
107
|
columns: 2,
|
|
114
108
|
inputs: [
|
|
115
|
-
{
|
|
116
|
-
{
|
|
109
|
+
{ name: 'inn', required: true, dadata: true },
|
|
110
|
+
{ name: 'legalForm', required: true },
|
|
117
111
|
],
|
|
118
112
|
},
|
|
119
113
|
{
|
|
120
114
|
inputs: [
|
|
121
|
-
{
|
|
122
|
-
{
|
|
115
|
+
{ name: 'organization', required: true },
|
|
116
|
+
{ name: 'amountWorkers', required: true },
|
|
123
117
|
],
|
|
124
118
|
},
|
|
125
119
|
{
|
|
126
120
|
columns: 2,
|
|
127
121
|
inputs: [
|
|
128
|
-
{
|
|
129
|
-
{
|
|
130
|
-
{
|
|
131
|
-
{
|
|
132
|
-
{
|
|
133
|
-
{
|
|
122
|
+
{ name: 'employerActivities', required: true },
|
|
123
|
+
{ name: 'employerOrganization', required: true },
|
|
124
|
+
{ name: 'generalSeniority', required: true },
|
|
125
|
+
{ name: 'lastJobExperience', required: true },
|
|
126
|
+
{ name: 'experience5Years', required: true },
|
|
127
|
+
{ name: 'jobsNumber', required: true },
|
|
134
128
|
],
|
|
135
129
|
},
|
|
136
130
|
{
|
|
137
131
|
inputs: [
|
|
138
132
|
{
|
|
139
|
-
fieldType: 'common',
|
|
140
133
|
name: 'organizationPhone',
|
|
141
134
|
label: 'Телефон работодателя',
|
|
142
135
|
required: true,
|
|
143
136
|
},
|
|
144
|
-
{
|
|
137
|
+
{ name: 'beginDate', required: true },
|
|
145
138
|
],
|
|
146
139
|
},
|
|
147
140
|
{
|
|
148
141
|
columns: 2,
|
|
149
142
|
inputs: [
|
|
150
|
-
{
|
|
143
|
+
{ name: 'positionOrganization', required: true },
|
|
151
144
|
{
|
|
152
|
-
fieldType: 'common',
|
|
153
145
|
name: 'partInBusiness',
|
|
154
146
|
required: true,
|
|
155
147
|
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
@@ -161,7 +153,7 @@ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
|
|
|
161
153
|
inputs: [],
|
|
162
154
|
},
|
|
163
155
|
{
|
|
164
|
-
inputs: [{
|
|
156
|
+
inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
|
|
165
157
|
},
|
|
166
158
|
];
|
|
167
159
|
const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
@@ -170,18 +162,15 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
|
170
162
|
},
|
|
171
163
|
{
|
|
172
164
|
columns: 1,
|
|
173
|
-
inputs: [{
|
|
165
|
+
inputs: [{ name: 'familyStatus', required: true }],
|
|
174
166
|
},
|
|
175
167
|
{
|
|
176
168
|
columns: 1,
|
|
177
|
-
inputs: [{
|
|
169
|
+
inputs: [{ name: 'dependents', required: true }],
|
|
178
170
|
},
|
|
179
171
|
{
|
|
180
172
|
columns: 2,
|
|
181
|
-
inputs: [
|
|
182
|
-
{ fieldType: 'common', name: 'familyMembers' },
|
|
183
|
-
{ fieldType: 'common', name: 'children', required: true },
|
|
184
|
-
],
|
|
173
|
+
inputs: [{ name: 'familyMembers' }, { name: 'children', required: true }],
|
|
185
174
|
},
|
|
186
175
|
{
|
|
187
176
|
title: 'Совокупный доход',
|
|
@@ -189,7 +178,6 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
|
189
178
|
{
|
|
190
179
|
inputs: [
|
|
191
180
|
{
|
|
192
|
-
fieldType: 'common',
|
|
193
181
|
name: 'infoCard',
|
|
194
182
|
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
195
183
|
},
|
|
@@ -197,27 +185,27 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
|
197
185
|
},
|
|
198
186
|
{
|
|
199
187
|
columns: 1,
|
|
200
|
-
inputs: [{
|
|
188
|
+
inputs: [{ name: 'confirmationIncome', required: true }],
|
|
201
189
|
},
|
|
202
190
|
{
|
|
203
191
|
columns: 1,
|
|
204
|
-
inputs: [{
|
|
192
|
+
inputs: [{ name: 'wages', required: true }],
|
|
205
193
|
},
|
|
206
194
|
{
|
|
207
195
|
columns: 1,
|
|
208
|
-
inputs: [{
|
|
196
|
+
inputs: [{ name: 'mandatoryPayments', required: true }],
|
|
209
197
|
},
|
|
210
198
|
{
|
|
211
199
|
columns: 1,
|
|
212
|
-
inputs: [{
|
|
200
|
+
inputs: [{ name: 'snils', required: true }],
|
|
213
201
|
},
|
|
214
202
|
{
|
|
215
203
|
columns: 1,
|
|
216
|
-
inputs: [{
|
|
204
|
+
inputs: [{ name: 'conscription', required: true }],
|
|
217
205
|
},
|
|
218
206
|
{
|
|
219
207
|
columns: 2,
|
|
220
|
-
inputs: [{
|
|
208
|
+
inputs: [{ name: 'armyIdFlg' }],
|
|
221
209
|
},
|
|
222
210
|
];
|
|
223
211
|
const ADDITIONAL_CONTENT: CreditCardSectionsProps[] = [
|
|
@@ -227,19 +215,19 @@ const ADDITIONAL_CONTENT: CreditCardSectionsProps[] = [
|
|
|
227
215
|
inputs: [],
|
|
228
216
|
},
|
|
229
217
|
{
|
|
230
|
-
inputs: [{
|
|
218
|
+
inputs: [{ name: 'disablePeopleFlg' }],
|
|
231
219
|
},
|
|
232
220
|
{
|
|
233
|
-
inputs: [{
|
|
221
|
+
inputs: [{ name: 'bankruptcyFlg' }],
|
|
234
222
|
},
|
|
235
223
|
{
|
|
236
|
-
inputs: [{
|
|
224
|
+
inputs: [{ name: 'shareholderFlg' }],
|
|
237
225
|
},
|
|
238
226
|
{
|
|
239
|
-
inputs: [{
|
|
227
|
+
inputs: [{ name: 'legalEntityName' }],
|
|
240
228
|
},
|
|
241
229
|
{
|
|
242
|
-
inputs: [{
|
|
230
|
+
inputs: [{ name: 'creditInRshbCd' }],
|
|
243
231
|
},
|
|
244
232
|
];
|
|
245
233
|
export const COMMON_RETAIL_CONTENT: CreditCardSectionsProps[][] = [
|
|
@@ -255,10 +243,10 @@ export const DELIVERY_CREDIT_CONTENT: CreditCardSectionsProps[] = [
|
|
|
255
243
|
inputs: [],
|
|
256
244
|
},
|
|
257
245
|
{
|
|
258
|
-
inputs: [{
|
|
246
|
+
inputs: [{ name: 'regionRetail', required: true }],
|
|
259
247
|
},
|
|
260
248
|
{
|
|
261
|
-
inputs: [{
|
|
249
|
+
inputs: [{ name: 'addressRetail', required: true }],
|
|
262
250
|
},
|
|
263
251
|
{
|
|
264
252
|
title: 'Код представителя Банка',
|
|
@@ -268,14 +256,13 @@ export const DELIVERY_CREDIT_CONTENT: CreditCardSectionsProps[] = [
|
|
|
268
256
|
{
|
|
269
257
|
inputs: [
|
|
270
258
|
{
|
|
271
|
-
fieldType: 'common',
|
|
272
259
|
name: 'infoCard',
|
|
273
260
|
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
274
261
|
},
|
|
275
262
|
],
|
|
276
263
|
},
|
|
277
264
|
{
|
|
278
|
-
inputs: [{
|
|
265
|
+
inputs: [{ name: 'bankEmployeeCode' }],
|
|
279
266
|
},
|
|
280
267
|
];
|
|
281
268
|
export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
@@ -285,7 +272,7 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
285
272
|
inputs: [],
|
|
286
273
|
},
|
|
287
274
|
{
|
|
288
|
-
inputs: [{
|
|
275
|
+
inputs: [{ name: 'methodObtain' }],
|
|
289
276
|
},
|
|
290
277
|
{
|
|
291
278
|
title: 'Адрес',
|
|
@@ -295,7 +282,6 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
295
282
|
{
|
|
296
283
|
inputs: [
|
|
297
284
|
{
|
|
298
|
-
fieldType: 'common',
|
|
299
285
|
name: 'addressCourier',
|
|
300
286
|
dadata: true,
|
|
301
287
|
condition: {
|
|
@@ -305,7 +291,6 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
305
291
|
required: true,
|
|
306
292
|
},
|
|
307
293
|
{
|
|
308
|
-
fieldType: 'common',
|
|
309
294
|
name: 'deliveryDate',
|
|
310
295
|
condition: {
|
|
311
296
|
name: 'methodObtain',
|
|
@@ -314,7 +299,6 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
314
299
|
required: true,
|
|
315
300
|
},
|
|
316
301
|
{
|
|
317
|
-
fieldType: 'common',
|
|
318
302
|
name: 'comment',
|
|
319
303
|
condition: {
|
|
320
304
|
name: 'methodObtain',
|
|
@@ -326,7 +310,6 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
326
310
|
{
|
|
327
311
|
inputs: [
|
|
328
312
|
{
|
|
329
|
-
fieldType: 'common',
|
|
330
313
|
name: 'regionRetail',
|
|
331
314
|
required: true,
|
|
332
315
|
condition: {
|
|
@@ -335,7 +318,6 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
335
318
|
},
|
|
336
319
|
},
|
|
337
320
|
{
|
|
338
|
-
fieldType: 'common',
|
|
339
321
|
name: 'addressRetail',
|
|
340
322
|
required: true,
|
|
341
323
|
condition: {
|
|
@@ -348,7 +330,6 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
348
330
|
{
|
|
349
331
|
inputs: [
|
|
350
332
|
{
|
|
351
|
-
fieldType: 'common',
|
|
352
333
|
name: 'infoCard',
|
|
353
334
|
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
354
335
|
condition: {
|
|
@@ -357,7 +338,6 @@ export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
357
338
|
},
|
|
358
339
|
},
|
|
359
340
|
{
|
|
360
|
-
fieldType: 'common',
|
|
361
341
|
name: 'bankEmployeeCode',
|
|
362
342
|
condition: {
|
|
363
343
|
name: 'methodObtain',
|
|
@@ -375,10 +355,10 @@ export const CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
375
355
|
},
|
|
376
356
|
{
|
|
377
357
|
inputs: [
|
|
378
|
-
{
|
|
379
|
-
{
|
|
380
|
-
{
|
|
381
|
-
{
|
|
358
|
+
{ name: 'currency', required: true },
|
|
359
|
+
{ name: 'paymentSystem', required: true },
|
|
360
|
+
{ name: 'cardCategory', required: true },
|
|
361
|
+
{ name: 'codeWord', required: true },
|
|
382
362
|
],
|
|
383
363
|
},
|
|
384
364
|
];
|
|
@@ -387,7 +367,6 @@ export const CALCULATOR_CONTENT: CreditCardSectionsProps[] = [
|
|
|
387
367
|
columns: 1,
|
|
388
368
|
inputs: [
|
|
389
369
|
{
|
|
390
|
-
fieldType: 'common',
|
|
391
370
|
name: 'calculator',
|
|
392
371
|
},
|
|
393
372
|
],
|
|
@@ -24,7 +24,7 @@ export type FilledByEsiaProps = {
|
|
|
24
24
|
filledByEsia?: boolean;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export type
|
|
27
|
+
export type FieldRetailDef = Required &
|
|
28
28
|
TextProps &
|
|
29
29
|
LabelProps &
|
|
30
30
|
ConditionFieldProps &
|
|
@@ -32,13 +32,3 @@ export type FieldDefaultDef = Required &
|
|
|
32
32
|
name?: NameFieldDef;
|
|
33
33
|
dadata?: boolean;
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @title Поле ввода
|
|
38
|
-
* @default { "fieldType": "common" }
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
export type FieldRetailDef = FieldDefaultDef &
|
|
42
|
-
TextProps & {
|
|
43
|
-
fieldType: 'common';
|
|
44
|
-
};
|