@redneckz/wildless-cms-uni-blocks 0.14.702 → 0.14.703
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/bundle/bundle.umd.js +114 -104
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +2 -1
- package/bundle/ui-kit/FormField/getPremium.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/ui-kit/FormField/CustomFieldProps.d.ts +2 -1
- package/dist/ui-kit/FormField/Fields/AddressBranchField.js +3 -1
- package/dist/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +108 -99
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/getPremium.d.ts +2 -0
- package/dist/ui-kit/FormField/getPremium.js +5 -0
- package/dist/ui-kit/FormField/getPremium.js.map +1 -0
- package/dist/ui-kit/FormField/validators.js +1 -1
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/ui-kit/FormField/CustomFieldProps.d.ts +2 -1
- package/lib/ui-kit/FormField/Fields/AddressBranchField.js +3 -1
- package/lib/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +108 -99
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/getPremium.d.ts +2 -0
- package/lib/ui-kit/FormField/getPremium.js +2 -0
- package/lib/ui-kit/FormField/getPremium.js.map +1 -0
- package/lib/ui-kit/FormField/validators.js +1 -1
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +114 -104
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +2 -1
- package/mobile/bundle/ui-kit/FormField/getPremium.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressBranchField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +108 -99
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getPremium.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/getPremium.js +5 -0
- package/mobile/dist/ui-kit/FormField/getPremium.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/validators.js +1 -1
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressBranchField.js +3 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +108 -99
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getPremium.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/getPremium.js +2 -0
- package/mobile/lib/ui-kit/FormField/getPremium.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/validators.js +1 -1
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
- package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +5 -1
- package/mobile/src/ui-kit/FormField/Fields/AddressBranchField.tsx +5 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +126 -107
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getPremium.tsx +4 -0
- package/mobile/src/ui-kit/FormField/validators.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
- package/src/ui-kit/FormField/CustomFieldProps.ts +5 -1
- package/src/ui-kit/FormField/Fields/AddressBranchField.tsx +5 -1
- package/src/ui-kit/FormField/getField.tsx +126 -107
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/src/ui-kit/FormField/getPremium.tsx +4 -0
- package/src/ui-kit/FormField/validators.ts +1 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
/* eslint-disable max-lines-per-function */
|
|
3
3
|
//TODO: Убрать обращение к компонентам т.к. ApplicationForm
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
type FieldDef,
|
|
6
|
+
type TypeFormFieldDef,
|
|
7
|
+
} from '../../components/ApplicationForm/ApplicationFormContent';
|
|
5
8
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
6
9
|
import { InputControl } from '../Input/InputControl';
|
|
10
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
7
11
|
import { AcquiringField } from './Fields/AcquiringField';
|
|
8
12
|
import { AddressBranchField } from './Fields/AddressBranchField';
|
|
9
13
|
import { AddressFactField } from './Fields/AddressFactField';
|
|
@@ -92,123 +96,138 @@ import { TotalIncomeField } from './Fields/TotalIncomeField';
|
|
|
92
96
|
import { UltraPremiumField } from './Fields/UltraPremiumField';
|
|
93
97
|
import { VedField } from './Fields/VedField';
|
|
94
98
|
import { WagesField } from './Fields/WagesField';
|
|
99
|
+
import { getPremium } from './getPremium';
|
|
95
100
|
import { isRenderField } from './isRenderField';
|
|
96
101
|
|
|
97
102
|
const PRODUCT_REF = {
|
|
98
103
|
$ref: '/wcms-resources/outservice-productlist.json',
|
|
99
104
|
};
|
|
100
105
|
|
|
106
|
+
const InputsMap = {
|
|
107
|
+
fullName: (props: CustomFieldProps) => <FullNameField {...props} />,
|
|
108
|
+
addressBranch: (props: CustomFieldProps) => <AddressBranchField {...props} />,
|
|
109
|
+
desiredMeetingDate: (props: CustomFieldProps) => <DesiredMeetingDateField {...props} />,
|
|
110
|
+
product: (props: CustomFieldProps) => <ProductField {...props} source={PRODUCT_REF} />,
|
|
111
|
+
localities: (props: CustomFieldProps) => <LocalitiesField {...props} />,
|
|
112
|
+
isClient: (props: CustomFieldProps) => <IsClientField {...props} />,
|
|
113
|
+
partnerComments: (props: CustomFieldProps) => <PartnerCommentsField {...props} />,
|
|
114
|
+
collectionCount: (props: CustomFieldProps) => <CollectionCountField {...props} />,
|
|
115
|
+
acquiringType: (props: CustomFieldProps) => <AcquiringField {...props} />,
|
|
116
|
+
onlineCheckout: (props: CustomFieldProps) => <OnlineCheckoutField {...props} />,
|
|
117
|
+
posTerminal: (props: CustomFieldProps) => <PosTerminalField {...props} />,
|
|
118
|
+
serviceType: (props: CustomFieldProps) => <UltraPremiumField {...props} />,
|
|
119
|
+
term: (props: CustomFieldProps) => <TermField {...props} />,
|
|
120
|
+
amount: (props: CustomFieldProps) => <AmountField {...props} />,
|
|
121
|
+
annualRevenue: (props: CustomFieldProps) => <AnnualRevenueField {...props} />,
|
|
122
|
+
vedTypes: (props: CustomFieldProps) => <VedField {...props} />,
|
|
123
|
+
feedbackMethod: (props: CustomFieldProps) => <FeedbackMethodField {...props} />,
|
|
124
|
+
serviceDirection: (props: CustomFieldProps) => <ServiceDirectionField {...props} />,
|
|
125
|
+
bankEmpolee: (props: CustomFieldProps) => <BankEmpoleeField {...props} />,
|
|
126
|
+
secondaryPhone: (props: CustomFieldProps) => <SecondaryPhoneField {...props} />,
|
|
127
|
+
applicationDate: (props: CustomFieldProps) => (
|
|
128
|
+
<InputControl label="Дата и время обращения в Банк" {...props} />
|
|
129
|
+
),
|
|
130
|
+
region: (props: CustomFieldProps) =>
|
|
131
|
+
getPremium(props?.params?.typeForm as TypeFormFieldDef) ? (
|
|
132
|
+
<RegionPremiumField {...props} />
|
|
133
|
+
) : (
|
|
134
|
+
<RegionField {...props} />
|
|
135
|
+
),
|
|
136
|
+
consentToReceiveMaterials: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
137
|
+
|
|
138
|
+
surname: (props: CustomFieldProps) => <SurnameField {...props} />,
|
|
139
|
+
name: (props: CustomFieldProps) => <NameField {...props} />,
|
|
140
|
+
middleName: (props: CustomFieldProps) => <MiddleNameField {...props} />,
|
|
141
|
+
birthday: (props: CustomFieldProps) => <BirthdayField {...props} />,
|
|
142
|
+
phone: (props: CustomFieldProps) => <PhoneField {...props} />,
|
|
143
|
+
email: (props: CustomFieldProps) => <EmailField {...props} />,
|
|
144
|
+
inn: (props: CustomFieldProps) => <InnField {...props} />,
|
|
145
|
+
comment: (props: CustomFieldProps) => <CommentField {...props} />,
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const InputsRetailMap = {
|
|
149
|
+
processPersonalDataFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
150
|
+
consentProviderFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
151
|
+
consentOthersFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
152
|
+
consentInformFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
153
|
+
consentPfrFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
154
|
+
organizationPhone: (props: CustomFieldProps) => <PhoneField {...props} />,
|
|
155
|
+
legalForm: (props: CustomFieldProps) => <LegalFormField {...props} />,
|
|
156
|
+
organizationName: (props: CustomFieldProps) => <OrganizationNameField {...props} />,
|
|
157
|
+
generalSeniority: (props: CustomFieldProps) => <GeneralSeniorityField {...props} />,
|
|
158
|
+
lastJobExperience: (props: CustomFieldProps) => <LastJobExperienceField {...props} />,
|
|
159
|
+
experience5Years: (props: CustomFieldProps) => <Experience5YearsField {...props} />,
|
|
160
|
+
jobsNumber: (props: CustomFieldProps) => <JobsNumberField {...props} />,
|
|
161
|
+
beginDate: (props: CustomFieldProps) => <BeginDateField {...props} />,
|
|
162
|
+
addressFact: (props: CustomFieldProps) => <AddressFactField {...props} />,
|
|
163
|
+
organizationAddress: (props: CustomFieldProps) => <AddressField {...props} />,
|
|
164
|
+
sex: (props: CustomFieldProps) => <SexField {...props} />,
|
|
165
|
+
limitedBirthday: (props: CustomFieldProps) => <LimitedBirthdayField {...props} />,
|
|
166
|
+
birthPlace: (props: CustomFieldProps) => <BirthPlaceField {...props} />,
|
|
167
|
+
education: (props: CustomFieldProps) => <EducationField {...props} />,
|
|
168
|
+
housing: (props: CustomFieldProps) => <HousingField {...props} />,
|
|
169
|
+
employment: (props: CustomFieldProps) => <EmploymentField {...props} />,
|
|
170
|
+
organization: (props: CustomFieldProps) => <OrganizationField {...props} />,
|
|
171
|
+
amountWorkers: (props: CustomFieldProps) => <AmountWorkersField {...props} />,
|
|
172
|
+
employerActivities: (props: CustomFieldProps) => <EmployerActivitiesField {...props} />,
|
|
173
|
+
employerOrganization: (props: CustomFieldProps) => <EmployerOrganizationField {...props} />,
|
|
174
|
+
positionOrganization: (props: CustomFieldProps) => <PositionOrganizationField {...props} />,
|
|
175
|
+
familyStatus: (props: CustomFieldProps) => <FamilyStatusField {...props} />,
|
|
176
|
+
children: (props: CustomFieldProps) => <ChildrenField {...props} />,
|
|
177
|
+
familyMembers: (props: CustomFieldProps) => <FamilyMembersField {...props} />,
|
|
178
|
+
dependents: (props: CustomFieldProps) => <DependentsField {...props} />,
|
|
179
|
+
totalIncome: (props: CustomFieldProps) => <TotalIncomeField {...props} />,
|
|
180
|
+
expenses: (props: CustomFieldProps) => <ExpensesField {...props} />,
|
|
181
|
+
snils: (props: CustomFieldProps) => <SnilsField {...props} />,
|
|
182
|
+
conscription: (props: CustomFieldProps) => <ConscriptionField {...props} />,
|
|
183
|
+
armyIdFlg: (props: CustomFieldProps) => <ArmyIdFlgField {...props} />,
|
|
184
|
+
dulSerie: (props: CustomFieldProps) => <DulSerieField {...props} />,
|
|
185
|
+
dulNumber: (props: CustomFieldProps) => <DulNumberField {...props} />,
|
|
186
|
+
dulIssueDateField: (props: CustomFieldProps) => <DulIssueDateField {...props} />,
|
|
187
|
+
dulSubdivisionCode: (props: CustomFieldProps) => <DulSubdivisionCodeField {...props} />,
|
|
188
|
+
dulIssuedBy: (props: CustomFieldProps) => <DulIssuedByField {...props} />,
|
|
189
|
+
addressRegistration: (props: CustomFieldProps) => <AddressField {...props} />,
|
|
190
|
+
addressCourier: (props: CustomFieldProps) => <AddressField {...props} />,
|
|
191
|
+
participantDateRegistration: (props: CustomFieldProps) => (
|
|
192
|
+
<ParticipantDateRegistrationField {...props} />
|
|
193
|
+
),
|
|
194
|
+
retirementIncome: (props: CustomFieldProps) => <RetirementIncomeField {...props} />,
|
|
195
|
+
otherIncome: (props: CustomFieldProps) => <OtherIncomeField {...props} />,
|
|
196
|
+
wages: (props: CustomFieldProps) => <WagesField {...props} />,
|
|
197
|
+
mandatoryPayments: (props: CustomFieldProps) => <MandatoryPaymentsField {...props} />,
|
|
198
|
+
disablePeopleFlg: (props: CustomFieldProps) => <DisablePeopleFlgField {...props} />,
|
|
199
|
+
bankruptcyFlg: (props: CustomFieldProps) => <BankruptcyFlgField {...props} />,
|
|
200
|
+
shareholderFlg: (props: CustomFieldProps) => <ShareholderFlgField {...props} />,
|
|
201
|
+
legalEntityName: (props: CustomFieldProps) => <LegalEntityNameField {...props} />,
|
|
202
|
+
creditInRshbCd: (props: CustomFieldProps) => <CreditInRshbCdField {...props} />,
|
|
203
|
+
bankEmployeeCode: (props: CustomFieldProps) => <BankEmpoleeCodeField {...props} />,
|
|
204
|
+
partInBusiness: (props: CustomFieldProps) => <PartInBusinessField {...props} />,
|
|
205
|
+
regionRetail: (props: CustomFieldProps) => <RegionRetailField {...props} />,
|
|
206
|
+
addressRetail: (props: CustomFieldProps) => <AddressRetailField {...props} />,
|
|
207
|
+
addressMatch: (props: CustomFieldProps) => <AddressMatchField {...props} />,
|
|
208
|
+
calculator: (props: CustomFieldProps) => <CreditCalcField {...props} />,
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const InputRetailCardMap = {
|
|
212
|
+
paymentSystem: (props: CustomFieldProps) => <PaymentSystemField {...props} />,
|
|
213
|
+
currency: (props: CustomFieldProps) => <CurrencyField {...props} />,
|
|
214
|
+
cardCategory: (props: CustomFieldProps) => <CardCategoryField {...props} />,
|
|
215
|
+
codeWord: (props: CustomFieldProps) => <CodeWordField {...props} />,
|
|
216
|
+
confirmationIncome: (props: CustomFieldProps) => <ConfirmationIncomeField {...props} />,
|
|
217
|
+
methodObtain: (props: CustomFieldProps) => <MethodObtainField {...props} />,
|
|
218
|
+
deliveryDate: (props: CustomFieldProps) => <DeliveryDateFiels {...props} />,
|
|
219
|
+
};
|
|
220
|
+
|
|
101
221
|
export const getField =
|
|
102
222
|
(field: FormFieldRegisterer<any>, params?: Record<string, any>) =>
|
|
103
223
|
(input: FieldDef, i: number) => {
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
name: <NameField field={field} input={input} />,
|
|
109
|
-
middleName: <MiddleNameField field={field} input={input} />,
|
|
110
|
-
phone: <PhoneField field={field} input={input} />,
|
|
111
|
-
organizationPhone: <PhoneField field={field} input={input} />,
|
|
112
|
-
email: <EmailField field={field} input={input} />,
|
|
113
|
-
fullName: <FullNameField field={field} input={input} />,
|
|
114
|
-
inn: <InnField field={field} input={input} />,
|
|
115
|
-
legalForm: <LegalFormField field={field} input={input} />,
|
|
116
|
-
organizationName: <OrganizationNameField field={field} input={input} />,
|
|
117
|
-
generalSeniority: <GeneralSeniorityField field={field} input={input} />,
|
|
118
|
-
lastJobExperience: <LastJobExperienceField field={field} input={input} />,
|
|
119
|
-
experience5Years: <Experience5YearsField field={field} input={input} />,
|
|
120
|
-
jobsNumber: <JobsNumberField field={field} input={input} />,
|
|
121
|
-
beginDate: <BeginDateField field={field} input={input} />,
|
|
122
|
-
addressFact: <AddressFactField field={field} input={input} />,
|
|
123
|
-
organizationAddress: <AddressField field={field} input={input} />,
|
|
124
|
-
comment: <CommentField field={field} input={input} />,
|
|
125
|
-
addressBranch: <AddressBranchField field={field} input={input} isPremium={isPremium} />,
|
|
126
|
-
sex: <SexField field={field} input={input} />,
|
|
127
|
-
birthday: <BirthdayField field={field} input={input} />,
|
|
128
|
-
limitedBirthday: <LimitedBirthdayField field={field} input={input} />,
|
|
129
|
-
birthPlace: <BirthPlaceField field={field} input={input} />,
|
|
130
|
-
desiredMeetingDate: <DesiredMeetingDateField field={field} input={input} />,
|
|
131
|
-
product: <ProductField field={field} source={PRODUCT_REF} />,
|
|
132
|
-
localities: <LocalitiesField field={field} input={input} />,
|
|
133
|
-
isClient: <IsClientField field={field} />,
|
|
134
|
-
partnerComments: <PartnerCommentsField field={field} input={input} />,
|
|
135
|
-
collectionCount: <CollectionCountField field={field} input={input} />,
|
|
136
|
-
acquiringType: <AcquiringField field={field} input={input} />,
|
|
137
|
-
onlineCheckout: <OnlineCheckoutField field={field} />,
|
|
138
|
-
posTerminal: <PosTerminalField field={field} />,
|
|
139
|
-
serviceType: <UltraPremiumField field={field} input={input} />,
|
|
140
|
-
term: <TermField field={field} />,
|
|
141
|
-
amount: <AmountField field={field} />,
|
|
142
|
-
annualRevenue: <AnnualRevenueField field={field} input={input} />,
|
|
143
|
-
vedTypes: <VedField field={field} />,
|
|
144
|
-
feedbackMethod: <FeedbackMethodField field={field} input={input} />,
|
|
145
|
-
serviceDirection: <ServiceDirectionField field={field} input={input} />,
|
|
146
|
-
bankEmpolee: <BankEmpoleeField field={field} />,
|
|
147
|
-
secondaryPhone: <SecondaryPhoneField field={field} />,
|
|
148
|
-
consentToReceiveMaterials: <ConsentField field={field} input={input} />,
|
|
149
|
-
processPersonalDataFlg: <ConsentField field={field} input={input} />,
|
|
150
|
-
consentProviderFlg: <ConsentField field={field} input={input} />,
|
|
151
|
-
consentOthersFlg: <ConsentField field={field} input={input} />,
|
|
152
|
-
consentInformFlg: <ConsentField field={field} input={input} />,
|
|
153
|
-
consentPfrFlg: <ConsentField field={field} input={input} />,
|
|
154
|
-
applicationDate: (
|
|
155
|
-
<InputControl label="Дата и время обращения в Банк" {...field('applicationDate')} />
|
|
156
|
-
),
|
|
157
|
-
region: isPremium ? (
|
|
158
|
-
<RegionPremiumField field={field} />
|
|
159
|
-
) : (
|
|
160
|
-
<RegionField field={field} input={input} params={params} />
|
|
161
|
-
),
|
|
162
|
-
education: <EducationField field={field} input={input} />,
|
|
163
|
-
housing: <HousingField field={field} input={input} />,
|
|
164
|
-
employment: <EmploymentField field={field} input={input} />,
|
|
165
|
-
organization: <OrganizationField field={field} input={input} />,
|
|
166
|
-
amountWorkers: <AmountWorkersField field={field} input={input} />,
|
|
167
|
-
employerActivities: <EmployerActivitiesField field={field} input={input} />,
|
|
168
|
-
employerOrganization: <EmployerOrganizationField field={field} input={input} />,
|
|
169
|
-
positionOrganization: <PositionOrganizationField field={field} input={input} />,
|
|
170
|
-
familyStatus: <FamilyStatusField field={field} input={input} />,
|
|
171
|
-
children: <ChildrenField field={field} input={input} />,
|
|
172
|
-
familyMembers: <FamilyMembersField field={field} input={input} />,
|
|
173
|
-
dependents: <DependentsField field={field} input={input} />,
|
|
174
|
-
totalIncome: <TotalIncomeField field={field} input={input} />,
|
|
175
|
-
expenses: <ExpensesField field={field} input={input} />,
|
|
176
|
-
snils: <SnilsField field={field} input={input} />,
|
|
177
|
-
conscription: <ConscriptionField field={field} input={input} />,
|
|
178
|
-
armyIdFlg: <ArmyIdFlgField field={field} input={input} />,
|
|
179
|
-
dulSerie: <DulSerieField field={field} input={input} />,
|
|
180
|
-
dulNumber: <DulNumberField field={field} input={input} />,
|
|
181
|
-
dulIssueDateField: <DulIssueDateField field={field} input={input} />,
|
|
182
|
-
dulSubdivisionCode: <DulSubdivisionCodeField field={field} input={input} />,
|
|
183
|
-
dulIssuedBy: <DulIssuedByField field={field} input={input} />,
|
|
184
|
-
addressRegistration: <AddressField field={field} input={input} />,
|
|
185
|
-
addressCourier: <AddressField field={field} input={input} />,
|
|
186
|
-
participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
|
|
187
|
-
retirementIncome: <RetirementIncomeField field={field} input={input} />,
|
|
188
|
-
otherIncome: <OtherIncomeField field={field} input={input} />,
|
|
189
|
-
wages: <WagesField field={field} input={input} />,
|
|
190
|
-
mandatoryPayments: <MandatoryPaymentsField field={field} input={input} />,
|
|
191
|
-
disablePeopleFlg: <DisablePeopleFlgField field={field} input={input} />,
|
|
192
|
-
bankruptcyFlg: <BankruptcyFlgField field={field} input={input} />,
|
|
193
|
-
shareholderFlg: <ShareholderFlgField field={field} input={input} />,
|
|
194
|
-
legalEntityName: <LegalEntityNameField field={field} input={input} />,
|
|
195
|
-
creditInRshbCd: <CreditInRshbCdField field={field} input={input} />,
|
|
196
|
-
bankEmployeeCode: <BankEmpoleeCodeField field={field} input={input} />,
|
|
197
|
-
partInBusiness: <PartInBusinessField field={field} input={input} />,
|
|
198
|
-
regionRetail: <RegionRetailField field={field} input={input} />,
|
|
199
|
-
addressRetail: <AddressRetailField field={field} input={input} />,
|
|
200
|
-
addressMatch: <AddressMatchField field={field} input={input} />,
|
|
201
|
-
paymentSystem: <PaymentSystemField field={field} input={input} />,
|
|
202
|
-
currency: <CurrencyField field={field} input={input} />,
|
|
203
|
-
cardCategory: <CardCategoryField field={field} input={input} />,
|
|
204
|
-
codeWord: <CodeWordField field={field} input={input} />,
|
|
205
|
-
confirmationIncome: <ConfirmationIncomeField field={field} input={input} />,
|
|
206
|
-
methodObtain: <MethodObtainField field={field} input={input} />,
|
|
207
|
-
deliveryDate: <DeliveryDateFiels field={field} input={input} />,
|
|
208
|
-
calculator: <CreditCalcField field={field} params={params} />,
|
|
224
|
+
const resultInputsMap = {
|
|
225
|
+
...InputsMap,
|
|
226
|
+
...InputsRetailMap,
|
|
227
|
+
...InputRetailCardMap,
|
|
209
228
|
};
|
|
210
229
|
|
|
211
230
|
return isRenderField({ input, field }) ? (
|
|
212
|
-
<div key={String(i)}>{
|
|
231
|
+
<div key={String(i)}>{resultInputsMap[input?.name || '']?.({ field, input, params })}</div>
|
|
213
232
|
) : null;
|
|
214
233
|
};
|
|
@@ -47,7 +47,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
47
47
|
dulSubdivisionCode: numberValidator('Укажите код подразделения'),
|
|
48
48
|
dulIssuedBy: defaultValidator('Укажите организацию, выдавшую паспорт'),
|
|
49
49
|
email: emailValidator('Укажите электронную почту'),
|
|
50
|
-
fullName:
|
|
50
|
+
fullName: defaultValidator(),
|
|
51
51
|
inn: innValidator('Укажите ИНН'),
|
|
52
52
|
legalForm: defaultValidator('Укажите ОПФ'),
|
|
53
53
|
organizationName: defaultValidator('Укажите наименование организации'),
|
|
@@ -89,7 +89,7 @@ export const codeWordValidator = (errorMsg?: string) =>
|
|
|
89
89
|
errorMsg ?? ERROR_MESSAGE,
|
|
90
90
|
);
|
|
91
91
|
|
|
92
|
-
const cyrillicPattern = /^[\u0400-\u04FF\d]+$/u;
|
|
92
|
+
const cyrillicPattern = /^[\u0400-\u04FF\d\s]+$/u;
|
|
93
93
|
|
|
94
94
|
const isCyrillic = (_ = '') => cyrillicPattern.test(_);
|
|
95
95
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
type FieldDef,
|
|
3
|
+
type TypeFormFieldDef,
|
|
4
|
+
} from '../../components/ApplicationForm/ApplicationFormContent';
|
|
2
5
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
6
|
|
|
4
7
|
export interface CustomFieldProps {
|
|
@@ -6,4 +9,5 @@ export interface CustomFieldProps {
|
|
|
6
9
|
input?: FieldDef;
|
|
7
10
|
url?: string;
|
|
8
11
|
params?: Record<string, any>;
|
|
12
|
+
typeForm?: TypeFormFieldDef;
|
|
9
13
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type TypeFormFieldDef } from '../../../components/ApplicationForm/ApplicationFormContent';
|
|
3
4
|
import { useBranches } from '../../../hooks/useBranches';
|
|
4
5
|
import { useBranchesByRegions } from '../../../hooks/useBranchesByRegions';
|
|
5
6
|
import { SelectControl } from '../../Select/SelectControl';
|
|
6
7
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
7
8
|
import { validatorObj } from '../getObjectValidator';
|
|
9
|
+
import { getPremium } from '../getPremium';
|
|
8
10
|
import { getValidation } from '../getValidation';
|
|
9
11
|
|
|
10
12
|
interface RegionFieldProps extends CustomFieldProps {
|
|
11
13
|
isPremium?: boolean;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
export const AddressBranchField = JSX<RegionFieldProps>(({ field, input,
|
|
16
|
+
export const AddressBranchField = JSX<RegionFieldProps>(({ field, input, params }) => {
|
|
17
|
+
const isPremium = getPremium(params?.typeForm as TypeFormFieldDef);
|
|
18
|
+
|
|
15
19
|
const fieldRegion = field('region');
|
|
16
20
|
const regionKey = fieldRegion?.value?.key as string;
|
|
17
21
|
const regionText = fieldRegion?.value?.text as string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
/* eslint-disable max-lines-per-function */
|
|
3
3
|
//TODO: Убрать обращение к компонентам т.к. ApplicationForm
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
type FieldDef,
|
|
6
|
+
type TypeFormFieldDef,
|
|
7
|
+
} from '../../components/ApplicationForm/ApplicationFormContent';
|
|
5
8
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
6
9
|
import { InputControl } from '../Input/InputControl';
|
|
10
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
7
11
|
import { AcquiringField } from './Fields/AcquiringField';
|
|
8
12
|
import { AddressBranchField } from './Fields/AddressBranchField';
|
|
9
13
|
import { AddressFactField } from './Fields/AddressFactField';
|
|
@@ -92,123 +96,138 @@ import { TotalIncomeField } from './Fields/TotalIncomeField';
|
|
|
92
96
|
import { UltraPremiumField } from './Fields/UltraPremiumField';
|
|
93
97
|
import { VedField } from './Fields/VedField';
|
|
94
98
|
import { WagesField } from './Fields/WagesField';
|
|
99
|
+
import { getPremium } from './getPremium';
|
|
95
100
|
import { isRenderField } from './isRenderField';
|
|
96
101
|
|
|
97
102
|
const PRODUCT_REF = {
|
|
98
103
|
$ref: '/wcms-resources/outservice-productlist.json',
|
|
99
104
|
};
|
|
100
105
|
|
|
106
|
+
const InputsMap = {
|
|
107
|
+
fullName: (props: CustomFieldProps) => <FullNameField {...props} />,
|
|
108
|
+
addressBranch: (props: CustomFieldProps) => <AddressBranchField {...props} />,
|
|
109
|
+
desiredMeetingDate: (props: CustomFieldProps) => <DesiredMeetingDateField {...props} />,
|
|
110
|
+
product: (props: CustomFieldProps) => <ProductField {...props} source={PRODUCT_REF} />,
|
|
111
|
+
localities: (props: CustomFieldProps) => <LocalitiesField {...props} />,
|
|
112
|
+
isClient: (props: CustomFieldProps) => <IsClientField {...props} />,
|
|
113
|
+
partnerComments: (props: CustomFieldProps) => <PartnerCommentsField {...props} />,
|
|
114
|
+
collectionCount: (props: CustomFieldProps) => <CollectionCountField {...props} />,
|
|
115
|
+
acquiringType: (props: CustomFieldProps) => <AcquiringField {...props} />,
|
|
116
|
+
onlineCheckout: (props: CustomFieldProps) => <OnlineCheckoutField {...props} />,
|
|
117
|
+
posTerminal: (props: CustomFieldProps) => <PosTerminalField {...props} />,
|
|
118
|
+
serviceType: (props: CustomFieldProps) => <UltraPremiumField {...props} />,
|
|
119
|
+
term: (props: CustomFieldProps) => <TermField {...props} />,
|
|
120
|
+
amount: (props: CustomFieldProps) => <AmountField {...props} />,
|
|
121
|
+
annualRevenue: (props: CustomFieldProps) => <AnnualRevenueField {...props} />,
|
|
122
|
+
vedTypes: (props: CustomFieldProps) => <VedField {...props} />,
|
|
123
|
+
feedbackMethod: (props: CustomFieldProps) => <FeedbackMethodField {...props} />,
|
|
124
|
+
serviceDirection: (props: CustomFieldProps) => <ServiceDirectionField {...props} />,
|
|
125
|
+
bankEmpolee: (props: CustomFieldProps) => <BankEmpoleeField {...props} />,
|
|
126
|
+
secondaryPhone: (props: CustomFieldProps) => <SecondaryPhoneField {...props} />,
|
|
127
|
+
applicationDate: (props: CustomFieldProps) => (
|
|
128
|
+
<InputControl label="Дата и время обращения в Банк" {...props} />
|
|
129
|
+
),
|
|
130
|
+
region: (props: CustomFieldProps) =>
|
|
131
|
+
getPremium(props?.params?.typeForm as TypeFormFieldDef) ? (
|
|
132
|
+
<RegionPremiumField {...props} />
|
|
133
|
+
) : (
|
|
134
|
+
<RegionField {...props} />
|
|
135
|
+
),
|
|
136
|
+
consentToReceiveMaterials: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
137
|
+
|
|
138
|
+
surname: (props: CustomFieldProps) => <SurnameField {...props} />,
|
|
139
|
+
name: (props: CustomFieldProps) => <NameField {...props} />,
|
|
140
|
+
middleName: (props: CustomFieldProps) => <MiddleNameField {...props} />,
|
|
141
|
+
birthday: (props: CustomFieldProps) => <BirthdayField {...props} />,
|
|
142
|
+
phone: (props: CustomFieldProps) => <PhoneField {...props} />,
|
|
143
|
+
email: (props: CustomFieldProps) => <EmailField {...props} />,
|
|
144
|
+
inn: (props: CustomFieldProps) => <InnField {...props} />,
|
|
145
|
+
comment: (props: CustomFieldProps) => <CommentField {...props} />,
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const InputsRetailMap = {
|
|
149
|
+
processPersonalDataFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
150
|
+
consentProviderFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
151
|
+
consentOthersFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
152
|
+
consentInformFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
153
|
+
consentPfrFlg: (props: CustomFieldProps) => <ConsentField {...props} />,
|
|
154
|
+
organizationPhone: (props: CustomFieldProps) => <PhoneField {...props} />,
|
|
155
|
+
legalForm: (props: CustomFieldProps) => <LegalFormField {...props} />,
|
|
156
|
+
organizationName: (props: CustomFieldProps) => <OrganizationNameField {...props} />,
|
|
157
|
+
generalSeniority: (props: CustomFieldProps) => <GeneralSeniorityField {...props} />,
|
|
158
|
+
lastJobExperience: (props: CustomFieldProps) => <LastJobExperienceField {...props} />,
|
|
159
|
+
experience5Years: (props: CustomFieldProps) => <Experience5YearsField {...props} />,
|
|
160
|
+
jobsNumber: (props: CustomFieldProps) => <JobsNumberField {...props} />,
|
|
161
|
+
beginDate: (props: CustomFieldProps) => <BeginDateField {...props} />,
|
|
162
|
+
addressFact: (props: CustomFieldProps) => <AddressFactField {...props} />,
|
|
163
|
+
organizationAddress: (props: CustomFieldProps) => <AddressField {...props} />,
|
|
164
|
+
sex: (props: CustomFieldProps) => <SexField {...props} />,
|
|
165
|
+
limitedBirthday: (props: CustomFieldProps) => <LimitedBirthdayField {...props} />,
|
|
166
|
+
birthPlace: (props: CustomFieldProps) => <BirthPlaceField {...props} />,
|
|
167
|
+
education: (props: CustomFieldProps) => <EducationField {...props} />,
|
|
168
|
+
housing: (props: CustomFieldProps) => <HousingField {...props} />,
|
|
169
|
+
employment: (props: CustomFieldProps) => <EmploymentField {...props} />,
|
|
170
|
+
organization: (props: CustomFieldProps) => <OrganizationField {...props} />,
|
|
171
|
+
amountWorkers: (props: CustomFieldProps) => <AmountWorkersField {...props} />,
|
|
172
|
+
employerActivities: (props: CustomFieldProps) => <EmployerActivitiesField {...props} />,
|
|
173
|
+
employerOrganization: (props: CustomFieldProps) => <EmployerOrganizationField {...props} />,
|
|
174
|
+
positionOrganization: (props: CustomFieldProps) => <PositionOrganizationField {...props} />,
|
|
175
|
+
familyStatus: (props: CustomFieldProps) => <FamilyStatusField {...props} />,
|
|
176
|
+
children: (props: CustomFieldProps) => <ChildrenField {...props} />,
|
|
177
|
+
familyMembers: (props: CustomFieldProps) => <FamilyMembersField {...props} />,
|
|
178
|
+
dependents: (props: CustomFieldProps) => <DependentsField {...props} />,
|
|
179
|
+
totalIncome: (props: CustomFieldProps) => <TotalIncomeField {...props} />,
|
|
180
|
+
expenses: (props: CustomFieldProps) => <ExpensesField {...props} />,
|
|
181
|
+
snils: (props: CustomFieldProps) => <SnilsField {...props} />,
|
|
182
|
+
conscription: (props: CustomFieldProps) => <ConscriptionField {...props} />,
|
|
183
|
+
armyIdFlg: (props: CustomFieldProps) => <ArmyIdFlgField {...props} />,
|
|
184
|
+
dulSerie: (props: CustomFieldProps) => <DulSerieField {...props} />,
|
|
185
|
+
dulNumber: (props: CustomFieldProps) => <DulNumberField {...props} />,
|
|
186
|
+
dulIssueDateField: (props: CustomFieldProps) => <DulIssueDateField {...props} />,
|
|
187
|
+
dulSubdivisionCode: (props: CustomFieldProps) => <DulSubdivisionCodeField {...props} />,
|
|
188
|
+
dulIssuedBy: (props: CustomFieldProps) => <DulIssuedByField {...props} />,
|
|
189
|
+
addressRegistration: (props: CustomFieldProps) => <AddressField {...props} />,
|
|
190
|
+
addressCourier: (props: CustomFieldProps) => <AddressField {...props} />,
|
|
191
|
+
participantDateRegistration: (props: CustomFieldProps) => (
|
|
192
|
+
<ParticipantDateRegistrationField {...props} />
|
|
193
|
+
),
|
|
194
|
+
retirementIncome: (props: CustomFieldProps) => <RetirementIncomeField {...props} />,
|
|
195
|
+
otherIncome: (props: CustomFieldProps) => <OtherIncomeField {...props} />,
|
|
196
|
+
wages: (props: CustomFieldProps) => <WagesField {...props} />,
|
|
197
|
+
mandatoryPayments: (props: CustomFieldProps) => <MandatoryPaymentsField {...props} />,
|
|
198
|
+
disablePeopleFlg: (props: CustomFieldProps) => <DisablePeopleFlgField {...props} />,
|
|
199
|
+
bankruptcyFlg: (props: CustomFieldProps) => <BankruptcyFlgField {...props} />,
|
|
200
|
+
shareholderFlg: (props: CustomFieldProps) => <ShareholderFlgField {...props} />,
|
|
201
|
+
legalEntityName: (props: CustomFieldProps) => <LegalEntityNameField {...props} />,
|
|
202
|
+
creditInRshbCd: (props: CustomFieldProps) => <CreditInRshbCdField {...props} />,
|
|
203
|
+
bankEmployeeCode: (props: CustomFieldProps) => <BankEmpoleeCodeField {...props} />,
|
|
204
|
+
partInBusiness: (props: CustomFieldProps) => <PartInBusinessField {...props} />,
|
|
205
|
+
regionRetail: (props: CustomFieldProps) => <RegionRetailField {...props} />,
|
|
206
|
+
addressRetail: (props: CustomFieldProps) => <AddressRetailField {...props} />,
|
|
207
|
+
addressMatch: (props: CustomFieldProps) => <AddressMatchField {...props} />,
|
|
208
|
+
calculator: (props: CustomFieldProps) => <CreditCalcField {...props} />,
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const InputRetailCardMap = {
|
|
212
|
+
paymentSystem: (props: CustomFieldProps) => <PaymentSystemField {...props} />,
|
|
213
|
+
currency: (props: CustomFieldProps) => <CurrencyField {...props} />,
|
|
214
|
+
cardCategory: (props: CustomFieldProps) => <CardCategoryField {...props} />,
|
|
215
|
+
codeWord: (props: CustomFieldProps) => <CodeWordField {...props} />,
|
|
216
|
+
confirmationIncome: (props: CustomFieldProps) => <ConfirmationIncomeField {...props} />,
|
|
217
|
+
methodObtain: (props: CustomFieldProps) => <MethodObtainField {...props} />,
|
|
218
|
+
deliveryDate: (props: CustomFieldProps) => <DeliveryDateFiels {...props} />,
|
|
219
|
+
};
|
|
220
|
+
|
|
101
221
|
export const getField =
|
|
102
222
|
(field: FormFieldRegisterer<any>, params?: Record<string, any>) =>
|
|
103
223
|
(input: FieldDef, i: number) => {
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
name: <NameField field={field} input={input} />,
|
|
109
|
-
middleName: <MiddleNameField field={field} input={input} />,
|
|
110
|
-
phone: <PhoneField field={field} input={input} />,
|
|
111
|
-
organizationPhone: <PhoneField field={field} input={input} />,
|
|
112
|
-
email: <EmailField field={field} input={input} />,
|
|
113
|
-
fullName: <FullNameField field={field} input={input} />,
|
|
114
|
-
inn: <InnField field={field} input={input} />,
|
|
115
|
-
legalForm: <LegalFormField field={field} input={input} />,
|
|
116
|
-
organizationName: <OrganizationNameField field={field} input={input} />,
|
|
117
|
-
generalSeniority: <GeneralSeniorityField field={field} input={input} />,
|
|
118
|
-
lastJobExperience: <LastJobExperienceField field={field} input={input} />,
|
|
119
|
-
experience5Years: <Experience5YearsField field={field} input={input} />,
|
|
120
|
-
jobsNumber: <JobsNumberField field={field} input={input} />,
|
|
121
|
-
beginDate: <BeginDateField field={field} input={input} />,
|
|
122
|
-
addressFact: <AddressFactField field={field} input={input} />,
|
|
123
|
-
organizationAddress: <AddressField field={field} input={input} />,
|
|
124
|
-
comment: <CommentField field={field} input={input} />,
|
|
125
|
-
addressBranch: <AddressBranchField field={field} input={input} isPremium={isPremium} />,
|
|
126
|
-
sex: <SexField field={field} input={input} />,
|
|
127
|
-
birthday: <BirthdayField field={field} input={input} />,
|
|
128
|
-
limitedBirthday: <LimitedBirthdayField field={field} input={input} />,
|
|
129
|
-
birthPlace: <BirthPlaceField field={field} input={input} />,
|
|
130
|
-
desiredMeetingDate: <DesiredMeetingDateField field={field} input={input} />,
|
|
131
|
-
product: <ProductField field={field} source={PRODUCT_REF} />,
|
|
132
|
-
localities: <LocalitiesField field={field} input={input} />,
|
|
133
|
-
isClient: <IsClientField field={field} />,
|
|
134
|
-
partnerComments: <PartnerCommentsField field={field} input={input} />,
|
|
135
|
-
collectionCount: <CollectionCountField field={field} input={input} />,
|
|
136
|
-
acquiringType: <AcquiringField field={field} input={input} />,
|
|
137
|
-
onlineCheckout: <OnlineCheckoutField field={field} />,
|
|
138
|
-
posTerminal: <PosTerminalField field={field} />,
|
|
139
|
-
serviceType: <UltraPremiumField field={field} input={input} />,
|
|
140
|
-
term: <TermField field={field} />,
|
|
141
|
-
amount: <AmountField field={field} />,
|
|
142
|
-
annualRevenue: <AnnualRevenueField field={field} input={input} />,
|
|
143
|
-
vedTypes: <VedField field={field} />,
|
|
144
|
-
feedbackMethod: <FeedbackMethodField field={field} input={input} />,
|
|
145
|
-
serviceDirection: <ServiceDirectionField field={field} input={input} />,
|
|
146
|
-
bankEmpolee: <BankEmpoleeField field={field} />,
|
|
147
|
-
secondaryPhone: <SecondaryPhoneField field={field} />,
|
|
148
|
-
consentToReceiveMaterials: <ConsentField field={field} input={input} />,
|
|
149
|
-
processPersonalDataFlg: <ConsentField field={field} input={input} />,
|
|
150
|
-
consentProviderFlg: <ConsentField field={field} input={input} />,
|
|
151
|
-
consentOthersFlg: <ConsentField field={field} input={input} />,
|
|
152
|
-
consentInformFlg: <ConsentField field={field} input={input} />,
|
|
153
|
-
consentPfrFlg: <ConsentField field={field} input={input} />,
|
|
154
|
-
applicationDate: (
|
|
155
|
-
<InputControl label="Дата и время обращения в Банк" {...field('applicationDate')} />
|
|
156
|
-
),
|
|
157
|
-
region: isPremium ? (
|
|
158
|
-
<RegionPremiumField field={field} />
|
|
159
|
-
) : (
|
|
160
|
-
<RegionField field={field} input={input} params={params} />
|
|
161
|
-
),
|
|
162
|
-
education: <EducationField field={field} input={input} />,
|
|
163
|
-
housing: <HousingField field={field} input={input} />,
|
|
164
|
-
employment: <EmploymentField field={field} input={input} />,
|
|
165
|
-
organization: <OrganizationField field={field} input={input} />,
|
|
166
|
-
amountWorkers: <AmountWorkersField field={field} input={input} />,
|
|
167
|
-
employerActivities: <EmployerActivitiesField field={field} input={input} />,
|
|
168
|
-
employerOrganization: <EmployerOrganizationField field={field} input={input} />,
|
|
169
|
-
positionOrganization: <PositionOrganizationField field={field} input={input} />,
|
|
170
|
-
familyStatus: <FamilyStatusField field={field} input={input} />,
|
|
171
|
-
children: <ChildrenField field={field} input={input} />,
|
|
172
|
-
familyMembers: <FamilyMembersField field={field} input={input} />,
|
|
173
|
-
dependents: <DependentsField field={field} input={input} />,
|
|
174
|
-
totalIncome: <TotalIncomeField field={field} input={input} />,
|
|
175
|
-
expenses: <ExpensesField field={field} input={input} />,
|
|
176
|
-
snils: <SnilsField field={field} input={input} />,
|
|
177
|
-
conscription: <ConscriptionField field={field} input={input} />,
|
|
178
|
-
armyIdFlg: <ArmyIdFlgField field={field} input={input} />,
|
|
179
|
-
dulSerie: <DulSerieField field={field} input={input} />,
|
|
180
|
-
dulNumber: <DulNumberField field={field} input={input} />,
|
|
181
|
-
dulIssueDateField: <DulIssueDateField field={field} input={input} />,
|
|
182
|
-
dulSubdivisionCode: <DulSubdivisionCodeField field={field} input={input} />,
|
|
183
|
-
dulIssuedBy: <DulIssuedByField field={field} input={input} />,
|
|
184
|
-
addressRegistration: <AddressField field={field} input={input} />,
|
|
185
|
-
addressCourier: <AddressField field={field} input={input} />,
|
|
186
|
-
participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
|
|
187
|
-
retirementIncome: <RetirementIncomeField field={field} input={input} />,
|
|
188
|
-
otherIncome: <OtherIncomeField field={field} input={input} />,
|
|
189
|
-
wages: <WagesField field={field} input={input} />,
|
|
190
|
-
mandatoryPayments: <MandatoryPaymentsField field={field} input={input} />,
|
|
191
|
-
disablePeopleFlg: <DisablePeopleFlgField field={field} input={input} />,
|
|
192
|
-
bankruptcyFlg: <BankruptcyFlgField field={field} input={input} />,
|
|
193
|
-
shareholderFlg: <ShareholderFlgField field={field} input={input} />,
|
|
194
|
-
legalEntityName: <LegalEntityNameField field={field} input={input} />,
|
|
195
|
-
creditInRshbCd: <CreditInRshbCdField field={field} input={input} />,
|
|
196
|
-
bankEmployeeCode: <BankEmpoleeCodeField field={field} input={input} />,
|
|
197
|
-
partInBusiness: <PartInBusinessField field={field} input={input} />,
|
|
198
|
-
regionRetail: <RegionRetailField field={field} input={input} />,
|
|
199
|
-
addressRetail: <AddressRetailField field={field} input={input} />,
|
|
200
|
-
addressMatch: <AddressMatchField field={field} input={input} />,
|
|
201
|
-
paymentSystem: <PaymentSystemField field={field} input={input} />,
|
|
202
|
-
currency: <CurrencyField field={field} input={input} />,
|
|
203
|
-
cardCategory: <CardCategoryField field={field} input={input} />,
|
|
204
|
-
codeWord: <CodeWordField field={field} input={input} />,
|
|
205
|
-
confirmationIncome: <ConfirmationIncomeField field={field} input={input} />,
|
|
206
|
-
methodObtain: <MethodObtainField field={field} input={input} />,
|
|
207
|
-
deliveryDate: <DeliveryDateFiels field={field} input={input} />,
|
|
208
|
-
calculator: <CreditCalcField field={field} params={params} />,
|
|
224
|
+
const resultInputsMap = {
|
|
225
|
+
...InputsMap,
|
|
226
|
+
...InputsRetailMap,
|
|
227
|
+
...InputRetailCardMap,
|
|
209
228
|
};
|
|
210
229
|
|
|
211
230
|
return isRenderField({ input, field }) ? (
|
|
212
|
-
<div key={String(i)}>{
|
|
231
|
+
<div key={String(i)}>{resultInputsMap[input?.name || '']?.({ field, input, params })}</div>
|
|
213
232
|
) : null;
|
|
214
233
|
};
|
|
@@ -47,7 +47,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
47
47
|
dulSubdivisionCode: numberValidator('Укажите код подразделения'),
|
|
48
48
|
dulIssuedBy: defaultValidator('Укажите организацию, выдавшую паспорт'),
|
|
49
49
|
email: emailValidator('Укажите электронную почту'),
|
|
50
|
-
fullName:
|
|
50
|
+
fullName: defaultValidator(),
|
|
51
51
|
inn: innValidator('Укажите ИНН'),
|
|
52
52
|
legalForm: defaultValidator('Укажите ОПФ'),
|
|
53
53
|
organizationName: defaultValidator('Укажите наименование организации'),
|
|
@@ -89,7 +89,7 @@ export const codeWordValidator = (errorMsg?: string) =>
|
|
|
89
89
|
errorMsg ?? ERROR_MESSAGE,
|
|
90
90
|
);
|
|
91
91
|
|
|
92
|
-
const cyrillicPattern = /^[\u0400-\u04FF\d]+$/u;
|
|
92
|
+
const cyrillicPattern = /^[\u0400-\u04FF\d\s]+$/u;
|
|
93
93
|
|
|
94
94
|
const isCyrillic = (_ = '') => cyrillicPattern.test(_);
|
|
95
95
|
|