@redneckz/wildless-cms-uni-blocks 0.14.734 → 0.14.736
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 -87
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/bundle/services/retail/inputs.d.ts +1 -1
- 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/services/retail/content.js +51 -72
- package/dist/services/retail/content.js.map +1 -1
- package/dist/services/retail/inputs.d.ts +1 -1
- package/dist/services/retail/inputs.js +1 -1
- package/dist/services/retail/inputs.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/services/retail/content.js +51 -72
- package/lib/services/retail/content.js.map +1 -1
- package/lib/services/retail/inputs.d.ts +1 -1
- package/lib/services/retail/inputs.js +1 -1
- package/lib/services/retail/inputs.js.map +1 -1
- package/lib/services/retail/model/RetailFormContent.d.ts +1 -8
- package/mobile/bundle/bundle.umd.js +66 -87
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -28
- package/mobile/bundle/services/retail/inputs.d.ts +1 -1
- 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/services/retail/content.js +51 -72
- package/mobile/dist/services/retail/content.js.map +1 -1
- package/mobile/dist/services/retail/inputs.d.ts +1 -1
- package/mobile/dist/services/retail/inputs.js +1 -1
- package/mobile/dist/services/retail/inputs.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/services/retail/content.js +51 -72
- package/mobile/lib/services/retail/content.js.map +1 -1
- package/mobile/lib/services/retail/inputs.d.ts +1 -1
- package/mobile/lib/services/retail/inputs.js +1 -1
- package/mobile/lib/services/retail/inputs.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/services/retail/content.tsx +51 -72
- package/mobile/src/services/retail/inputs.tsx +1 -1
- 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/icons/IconName.ts +4 -4
- package/src/services/retail/content.tsx +51 -72
- package/src/services/retail/inputs.tsx +1 -1
- package/src/services/retail/model/RetailFormContent.ts +1 -11
|
@@ -34,9 +34,9 @@ export default {
|
|
|
34
34
|
sections={[
|
|
35
35
|
{
|
|
36
36
|
inputs: [
|
|
37
|
-
{
|
|
38
|
-
{
|
|
39
|
-
{
|
|
37
|
+
{ name: 'surname', required: true },
|
|
38
|
+
{ name: 'middleName' },
|
|
39
|
+
{ name: 'consentDataProcessing', required: true },
|
|
40
40
|
],
|
|
41
41
|
},
|
|
42
42
|
]}
|
|
@@ -59,8 +59,8 @@ export default {
|
|
|
59
59
|
title: 'Вид эквайринга и регион',
|
|
60
60
|
columns: 2,
|
|
61
61
|
inputs: [
|
|
62
|
-
{
|
|
63
|
-
{
|
|
62
|
+
{ name: 'acquiringType', required: true },
|
|
63
|
+
{ name: 'region', required: true },
|
|
64
64
|
],
|
|
65
65
|
},
|
|
66
66
|
{
|
|
@@ -68,18 +68,17 @@ export default {
|
|
|
68
68
|
columns: 2,
|
|
69
69
|
inputs: [
|
|
70
70
|
{
|
|
71
|
-
fieldType: 'common',
|
|
72
71
|
name: 'fullName',
|
|
73
72
|
required: true,
|
|
74
73
|
label: 'Наименование организации',
|
|
75
74
|
},
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
75
|
+
{ name: 'inn', required: true },
|
|
76
|
+
{ name: 'name', required: true, label: 'Контактное лицо' },
|
|
77
|
+
{ name: 'phone', required: true },
|
|
79
78
|
],
|
|
80
79
|
},
|
|
81
|
-
{ inputs: [{
|
|
82
|
-
{ inputs: [{
|
|
80
|
+
{ inputs: [{ name: 'onlineCheckout' }] },
|
|
81
|
+
{ inputs: [{ name: 'posTerminal' }] },
|
|
83
82
|
]}
|
|
84
83
|
button={button}
|
|
85
84
|
link={linkCorp}
|
|
@@ -103,10 +102,10 @@ export default {
|
|
|
103
102
|
},
|
|
104
103
|
{
|
|
105
104
|
inputs: [
|
|
106
|
-
{
|
|
107
|
-
{
|
|
108
|
-
{
|
|
109
|
-
{
|
|
105
|
+
{ name: 'name', required: true },
|
|
106
|
+
{ name: 'email', required: true },
|
|
107
|
+
{ name: 'consentToReceiveMaterials' },
|
|
108
|
+
{ name: 'consentDataProcessing', required: true },
|
|
110
109
|
],
|
|
111
110
|
},
|
|
112
111
|
]}
|
|
@@ -127,19 +126,18 @@ export default {
|
|
|
127
126
|
sections={[
|
|
128
127
|
{
|
|
129
128
|
inputs: [
|
|
130
|
-
{
|
|
131
|
-
{
|
|
132
|
-
{
|
|
133
|
-
{
|
|
129
|
+
{ name: 'surname', required: true },
|
|
130
|
+
{ name: 'name', required: true },
|
|
131
|
+
{ name: 'middleName' },
|
|
132
|
+
{ name: 'phone', required: true },
|
|
134
133
|
{
|
|
135
|
-
fieldType: 'common',
|
|
136
134
|
name: 'email',
|
|
137
135
|
label: 'Электронная почта (для уведомлений от Банка по Вашему сообщению)',
|
|
138
136
|
},
|
|
139
|
-
{
|
|
140
|
-
{
|
|
141
|
-
{
|
|
142
|
-
{
|
|
137
|
+
{ name: 'birthday', required: true },
|
|
138
|
+
{ name: 'isClient' },
|
|
139
|
+
{ name: 'comment', required: true },
|
|
140
|
+
{ name: 'consentDataProcessing', required: true },
|
|
143
141
|
],
|
|
144
142
|
},
|
|
145
143
|
]}
|
|
@@ -162,21 +160,17 @@ export default {
|
|
|
162
160
|
columns: 2,
|
|
163
161
|
inputs: [
|
|
164
162
|
{
|
|
165
|
-
fieldType: 'common',
|
|
166
163
|
name: 'fullName',
|
|
167
164
|
required: true,
|
|
168
165
|
label: 'Наименование организации',
|
|
169
166
|
},
|
|
170
|
-
{
|
|
171
|
-
{
|
|
172
|
-
{
|
|
167
|
+
{ name: 'inn', required: true },
|
|
168
|
+
{ name: 'name', required: true },
|
|
169
|
+
{ name: 'phone', required: true },
|
|
173
170
|
],
|
|
174
171
|
},
|
|
175
172
|
{
|
|
176
|
-
inputs: [
|
|
177
|
-
{ fieldType: 'common', name: 'partnerComments', label: 'Комментарий' },
|
|
178
|
-
{ fieldType: 'common', name: 'isClient' },
|
|
179
|
-
],
|
|
173
|
+
inputs: [{ name: 'partnerComments', label: 'Комментарий' }, { name: 'isClient' }],
|
|
180
174
|
},
|
|
181
175
|
]}
|
|
182
176
|
button={button}
|
|
@@ -200,10 +194,10 @@ export default {
|
|
|
200
194
|
sections={[
|
|
201
195
|
{
|
|
202
196
|
inputs: [
|
|
203
|
-
{
|
|
204
|
-
{
|
|
205
|
-
{
|
|
206
|
-
{
|
|
197
|
+
{ name: 'name', required: true, label: 'ФИО' },
|
|
198
|
+
{ name: 'phone', required: true },
|
|
199
|
+
{ name: 'isClient' },
|
|
200
|
+
{ name: 'consentDataProcessing', required: true },
|
|
207
201
|
],
|
|
208
202
|
},
|
|
209
203
|
]}
|
|
@@ -223,15 +217,15 @@ export default {
|
|
|
223
217
|
endpoint="sendcorporatelead"
|
|
224
218
|
sections={[
|
|
225
219
|
{
|
|
226
|
-
inputs: [{
|
|
220
|
+
inputs: [{ name: 'region', required: true }],
|
|
227
221
|
},
|
|
228
222
|
{
|
|
229
223
|
columns: 2,
|
|
230
224
|
inputs: [
|
|
231
|
-
{
|
|
232
|
-
{
|
|
233
|
-
{
|
|
234
|
-
{
|
|
225
|
+
{ name: 'name', required: true },
|
|
226
|
+
{ name: 'phone', required: true },
|
|
227
|
+
{ name: 'inn', required: true },
|
|
228
|
+
{ name: 'email', required: true },
|
|
235
229
|
],
|
|
236
230
|
},
|
|
237
231
|
]}
|
|
@@ -253,7 +247,6 @@ export default {
|
|
|
253
247
|
{
|
|
254
248
|
inputs: [
|
|
255
249
|
{
|
|
256
|
-
fieldType: 'common',
|
|
257
250
|
name: 'fullName',
|
|
258
251
|
required: true,
|
|
259
252
|
label: 'Наименование организации',
|
|
@@ -263,15 +256,14 @@ export default {
|
|
|
263
256
|
{
|
|
264
257
|
columns: 2,
|
|
265
258
|
inputs: [
|
|
266
|
-
{
|
|
259
|
+
{ name: 'region', required: true },
|
|
267
260
|
{
|
|
268
|
-
fieldType: 'common',
|
|
269
261
|
name: 'collectionCount',
|
|
270
262
|
required: true,
|
|
271
263
|
label: 'Количество объектов инкассации',
|
|
272
264
|
},
|
|
273
|
-
{
|
|
274
|
-
{
|
|
265
|
+
{ name: 'phone', required: true },
|
|
266
|
+
{ name: 'email' },
|
|
275
267
|
],
|
|
276
268
|
},
|
|
277
269
|
]}
|
|
@@ -293,34 +285,30 @@ export default {
|
|
|
293
285
|
{
|
|
294
286
|
title: 'Параметры кредита',
|
|
295
287
|
columns: 2,
|
|
296
|
-
inputs: [
|
|
297
|
-
{ fieldType: 'common', name: 'amount' },
|
|
298
|
-
{ fieldType: 'common', name: 'term' },
|
|
299
|
-
],
|
|
288
|
+
inputs: [{ name: 'amount' }, { name: 'term' }],
|
|
300
289
|
},
|
|
301
290
|
{
|
|
302
291
|
title: 'Данные организации',
|
|
303
292
|
columns: 2,
|
|
304
293
|
inputs: [
|
|
305
294
|
{
|
|
306
|
-
fieldType: 'common',
|
|
307
295
|
name: 'fullName',
|
|
308
296
|
required: true,
|
|
309
297
|
label: 'Наименование организации',
|
|
310
298
|
},
|
|
311
|
-
{
|
|
312
|
-
{
|
|
313
|
-
{
|
|
314
|
-
{
|
|
315
|
-
{
|
|
299
|
+
{ name: 'annualRevenue', required: true },
|
|
300
|
+
{ name: 'inn', required: true },
|
|
301
|
+
{ name: 'name', required: true, label: 'Контактное лицо' },
|
|
302
|
+
{ name: 'phone', required: true },
|
|
303
|
+
{ name: 'email', required: true },
|
|
316
304
|
],
|
|
317
305
|
},
|
|
318
306
|
{
|
|
319
307
|
title: 'Офис банка',
|
|
320
308
|
columns: 2,
|
|
321
309
|
inputs: [
|
|
322
|
-
{
|
|
323
|
-
{
|
|
310
|
+
{ name: 'region', required: true },
|
|
311
|
+
{ name: 'addressBranch', required: true },
|
|
324
312
|
],
|
|
325
313
|
},
|
|
326
314
|
]}
|
|
@@ -341,14 +329,14 @@ export default {
|
|
|
341
329
|
sections={[
|
|
342
330
|
{
|
|
343
331
|
inputs: [
|
|
344
|
-
{
|
|
345
|
-
{
|
|
346
|
-
{
|
|
347
|
-
{
|
|
348
|
-
{
|
|
349
|
-
{
|
|
350
|
-
{
|
|
351
|
-
{
|
|
332
|
+
{ name: 'surname', required: true },
|
|
333
|
+
{ name: 'name', required: true },
|
|
334
|
+
{ name: 'middleName' },
|
|
335
|
+
{ name: 'phone', required: true },
|
|
336
|
+
{ name: 'region', required: true },
|
|
337
|
+
{ name: 'email' },
|
|
338
|
+
{ name: 'comment', required: true },
|
|
339
|
+
{ name: 'consentDataProcessing', required: true },
|
|
352
340
|
],
|
|
353
341
|
},
|
|
354
342
|
]}
|
|
@@ -370,9 +358,9 @@ export default {
|
|
|
370
358
|
{
|
|
371
359
|
title: 'Оставьте заявку и мы ответим на любые вопросы по депозитам',
|
|
372
360
|
inputs: [
|
|
373
|
-
{
|
|
374
|
-
{
|
|
375
|
-
{
|
|
361
|
+
{ name: 'name', required: true },
|
|
362
|
+
{ name: 'phone', required: true },
|
|
363
|
+
{ name: 'consentDataProcessing', required: true },
|
|
376
364
|
],
|
|
377
365
|
},
|
|
378
366
|
]}
|
|
@@ -394,20 +382,19 @@ export default {
|
|
|
394
382
|
sections={[
|
|
395
383
|
{
|
|
396
384
|
inputs: [
|
|
397
|
-
{
|
|
398
|
-
{
|
|
399
|
-
{
|
|
400
|
-
{
|
|
385
|
+
{ name: 'region', required: true },
|
|
386
|
+
{ name: 'surname', required: true },
|
|
387
|
+
{ name: 'name', required: true },
|
|
388
|
+
{ name: 'middleName' },
|
|
401
389
|
{
|
|
402
|
-
fieldType: 'common',
|
|
403
390
|
name: 'birthday',
|
|
404
391
|
required: true,
|
|
405
392
|
},
|
|
406
|
-
{
|
|
407
|
-
{
|
|
408
|
-
{
|
|
409
|
-
{
|
|
410
|
-
{
|
|
393
|
+
{ name: 'feedbackMethod', required: true },
|
|
394
|
+
{ name: 'phone', required: true },
|
|
395
|
+
{ name: 'email', required: true },
|
|
396
|
+
{ name: 'comment', required: true },
|
|
397
|
+
{ name: 'consentDataProcessing', required: true },
|
|
411
398
|
],
|
|
412
399
|
},
|
|
413
400
|
]}
|
|
@@ -429,14 +416,13 @@ export default {
|
|
|
429
416
|
sections={[
|
|
430
417
|
{
|
|
431
418
|
inputs: [
|
|
432
|
-
{
|
|
433
|
-
{
|
|
434
|
-
{
|
|
435
|
-
{
|
|
436
|
-
{
|
|
437
|
-
{
|
|
419
|
+
{ name: 'serviceDirection' },
|
|
420
|
+
{ name: 'region', required: true },
|
|
421
|
+
{ name: 'addressBranch', required: true },
|
|
422
|
+
{ name: 'surname', required: true },
|
|
423
|
+
{ name: 'name', required: true },
|
|
424
|
+
{ name: 'middleName' },
|
|
438
425
|
{
|
|
439
|
-
fieldType: 'common',
|
|
440
426
|
name: 'inn',
|
|
441
427
|
required: true,
|
|
442
428
|
condition: {
|
|
@@ -445,7 +431,6 @@ export default {
|
|
|
445
431
|
},
|
|
446
432
|
},
|
|
447
433
|
{
|
|
448
|
-
fieldType: 'common',
|
|
449
434
|
name: 'fullName',
|
|
450
435
|
label: 'Наименование организации',
|
|
451
436
|
condition: {
|
|
@@ -453,14 +438,14 @@ export default {
|
|
|
453
438
|
values: ['Юридическое лицо / ИП'],
|
|
454
439
|
},
|
|
455
440
|
},
|
|
456
|
-
{
|
|
457
|
-
{
|
|
458
|
-
{
|
|
459
|
-
{
|
|
460
|
-
{
|
|
461
|
-
{
|
|
462
|
-
{
|
|
463
|
-
{
|
|
441
|
+
{ name: 'feedbackMethod', required: true },
|
|
442
|
+
{ name: 'phone', required: true },
|
|
443
|
+
{ name: 'secondaryPhone', required: true },
|
|
444
|
+
{ name: 'email', required: true },
|
|
445
|
+
{ name: 'bankEmpolee' },
|
|
446
|
+
{ name: 'applicationDate' },
|
|
447
|
+
{ name: 'comment', required: true },
|
|
448
|
+
{ name: 'consentDataProcessing', required: true },
|
|
464
449
|
],
|
|
465
450
|
},
|
|
466
451
|
]}
|
|
@@ -483,13 +468,13 @@ export default {
|
|
|
483
468
|
{
|
|
484
469
|
columns: 2,
|
|
485
470
|
inputs: [
|
|
486
|
-
{
|
|
487
|
-
{
|
|
488
|
-
{
|
|
489
|
-
{
|
|
490
|
-
{
|
|
491
|
-
{
|
|
492
|
-
{
|
|
471
|
+
{ name: 'surname', required: true },
|
|
472
|
+
{ name: 'name', required: true },
|
|
473
|
+
{ name: 'middleName' },
|
|
474
|
+
{ name: 'birthday', required: true },
|
|
475
|
+
{ name: 'phone', required: true },
|
|
476
|
+
{ name: 'email', required: true },
|
|
477
|
+
{ name: 'consentDataProcessing', required: true },
|
|
493
478
|
],
|
|
494
479
|
},
|
|
495
480
|
]}
|
|
@@ -515,10 +500,10 @@ export default {
|
|
|
515
500
|
sections={[
|
|
516
501
|
{
|
|
517
502
|
inputs: [
|
|
518
|
-
{
|
|
519
|
-
{
|
|
520
|
-
{
|
|
521
|
-
{
|
|
503
|
+
{ name: 'name', required: true, label: 'ФИО' },
|
|
504
|
+
{ name: 'region', required: true },
|
|
505
|
+
{ name: 'phone', required: true },
|
|
506
|
+
{ name: 'consentDataProcessing', required: true },
|
|
522
507
|
],
|
|
523
508
|
},
|
|
524
509
|
]}
|
|
@@ -541,24 +526,24 @@ export default {
|
|
|
541
526
|
title: 'Ваши данные',
|
|
542
527
|
columns: 2,
|
|
543
528
|
inputs: [
|
|
544
|
-
{
|
|
545
|
-
{
|
|
546
|
-
{
|
|
547
|
-
{
|
|
548
|
-
{
|
|
549
|
-
{
|
|
529
|
+
{ name: 'surname', required: true },
|
|
530
|
+
{ name: 'name', required: true },
|
|
531
|
+
{ name: 'middleName' },
|
|
532
|
+
{ name: 'phone', required: true },
|
|
533
|
+
{ name: 'email' },
|
|
534
|
+
{ name: 'serviceType', required: true },
|
|
550
535
|
],
|
|
551
536
|
},
|
|
552
537
|
{
|
|
553
538
|
title: 'Офис банка',
|
|
554
539
|
columns: 2,
|
|
555
540
|
inputs: [
|
|
556
|
-
{
|
|
557
|
-
{
|
|
541
|
+
{ name: 'region', required: true },
|
|
542
|
+
{ name: 'addressBranch', required: true },
|
|
558
543
|
],
|
|
559
544
|
},
|
|
560
|
-
{ inputs: [{
|
|
561
|
-
{ inputs: [{
|
|
545
|
+
{ inputs: [{ name: 'comment' }] },
|
|
546
|
+
{ inputs: [{ name: 'consentDataProcessing', required: true }] },
|
|
562
547
|
]}
|
|
563
548
|
button={button}
|
|
564
549
|
link={link}
|
|
@@ -578,8 +563,8 @@ export default {
|
|
|
578
563
|
{
|
|
579
564
|
inputs: [
|
|
580
565
|
{
|
|
581
|
-
fieldType: 'ved',
|
|
582
566
|
name: 'vedTypes',
|
|
567
|
+
required: true,
|
|
583
568
|
defaultValue: 'currencyControl',
|
|
584
569
|
},
|
|
585
570
|
],
|
|
@@ -588,10 +573,9 @@ export default {
|
|
|
588
573
|
{
|
|
589
574
|
inputs: [
|
|
590
575
|
{
|
|
591
|
-
fieldType: 'common',
|
|
592
576
|
name: 'region',
|
|
593
577
|
required: true,
|
|
594
|
-
condition: {
|
|
578
|
+
condition: { name: 'vedTypes', values: ['currencyControl'] },
|
|
595
579
|
},
|
|
596
580
|
],
|
|
597
581
|
},
|
|
@@ -599,7 +583,6 @@ export default {
|
|
|
599
583
|
columns: 2,
|
|
600
584
|
inputs: [
|
|
601
585
|
{
|
|
602
|
-
fieldType: 'common',
|
|
603
586
|
name: 'inn',
|
|
604
587
|
required: true,
|
|
605
588
|
condition: {
|
|
@@ -608,15 +591,13 @@ export default {
|
|
|
608
591
|
},
|
|
609
592
|
},
|
|
610
593
|
{
|
|
611
|
-
fieldType: 'common',
|
|
612
594
|
name: 'fullName',
|
|
613
595
|
required: true,
|
|
614
596
|
label: 'Наименование организации',
|
|
615
597
|
},
|
|
616
|
-
{
|
|
617
|
-
{
|
|
598
|
+
{ name: 'name', required: true, label: 'ФИО' },
|
|
599
|
+
{ name: 'phone', required: true },
|
|
618
600
|
{
|
|
619
|
-
fieldType: 'common',
|
|
620
601
|
name: 'email',
|
|
621
602
|
required: true,
|
|
622
603
|
condition: {
|
|
@@ -627,9 +608,7 @@ export default {
|
|
|
627
608
|
],
|
|
628
609
|
},
|
|
629
610
|
{
|
|
630
|
-
inputs: [
|
|
631
|
-
{ fieldType: 'common', name: 'partnerComments', label: 'Обращение', required: true },
|
|
632
|
-
],
|
|
611
|
+
inputs: [{ name: 'partnerComments', label: 'Обращение', required: true }],
|
|
633
612
|
},
|
|
634
613
|
]}
|
|
635
614
|
button={button}
|
|
@@ -650,22 +629,22 @@ export default {
|
|
|
650
629
|
sections={[
|
|
651
630
|
{
|
|
652
631
|
inputs: [
|
|
653
|
-
{
|
|
654
|
-
{
|
|
655
|
-
{
|
|
656
|
-
{
|
|
632
|
+
{ name: 'product', required: true },
|
|
633
|
+
{ name: 'region', required: true },
|
|
634
|
+
{ name: 'localities', required: true },
|
|
635
|
+
{ name: 'fullName', required: true },
|
|
657
636
|
],
|
|
658
637
|
},
|
|
659
638
|
{
|
|
660
639
|
columns: 2,
|
|
661
640
|
inputs: [
|
|
662
|
-
{
|
|
663
|
-
{
|
|
664
|
-
{
|
|
665
|
-
{
|
|
641
|
+
{ name: 'birthday', required: true },
|
|
642
|
+
{ name: 'phone', required: true },
|
|
643
|
+
{ name: 'email' },
|
|
644
|
+
{ name: 'desiredMeetingDate' },
|
|
666
645
|
],
|
|
667
646
|
},
|
|
668
|
-
{ inputs: [{
|
|
647
|
+
{ inputs: [{ name: 'consentDataProcessing', required: true }] },
|
|
669
648
|
]}
|
|
670
649
|
button={button}
|
|
671
650
|
link={link}
|
|
@@ -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
|
];
|