hl-core 0.0.7 → 0.0.8
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/.prettierrc +2 -1
- package/api/index.ts +580 -0
- package/api/interceptors.ts +38 -0
- package/components/Button/Btn.vue +57 -0
- package/components/Button/BtnIcon.vue +47 -0
- package/components/Button/ScrollButtons.vue +6 -0
- package/components/Button/SortArrow.vue +21 -0
- package/components/Complex/Content.vue +5 -0
- package/components/Complex/ContentBlock.vue +5 -0
- package/components/Complex/Page.vue +43 -0
- package/components/Dialog/Dialog.vue +76 -0
- package/components/Dialog/FamilyDialog.vue +39 -0
- package/components/Form/FormBlock.vue +114 -0
- package/components/Form/FormSection.vue +18 -0
- package/components/Form/FormTextSection.vue +20 -0
- package/components/Form/FormToggle.vue +52 -0
- package/components/Form/ProductConditionsBlock.vue +68 -0
- package/components/Input/EmptyFormField.vue +5 -0
- package/components/Input/FileInput.vue +71 -0
- package/components/Input/FormInput.vue +171 -0
- package/components/Input/PanelInput.vue +133 -0
- package/components/Input/RoundedInput.vue +143 -0
- package/components/Layout/Drawer.vue +44 -0
- package/components/Layout/Header.vue +48 -0
- package/components/Layout/Loader.vue +35 -0
- package/components/Layout/SettingsPanel.vue +48 -0
- package/components/List/ListEmpty.vue +22 -0
- package/components/Menu/MenuNav.vue +108 -0
- package/components/Menu/MenuNavItem.vue +37 -0
- package/components/Pages/Anketa.vue +333 -0
- package/components/Pages/Auth.vue +91 -0
- package/components/Pages/Documents.vue +108 -0
- package/components/Pages/MemberForm.vue +1138 -0
- package/components/Pages/ProductAgreement.vue +18 -0
- package/components/Pages/ProductConditions.vue +349 -0
- package/components/Panel/PanelItem.vue +5 -0
- package/components/Panel/PanelSelectItem.vue +20 -0
- package/components/Transitions/FadeTransition.vue +5 -0
- package/composables/axios.ts +11 -0
- package/composables/classes.ts +1129 -0
- package/composables/constants.ts +65 -0
- package/composables/index.ts +168 -2
- package/composables/styles.ts +41 -8
- package/layouts/clear.vue +3 -0
- package/layouts/default.vue +75 -0
- package/layouts/full.vue +6 -0
- package/nuxt.config.ts +27 -5
- package/package.json +23 -11
- package/pages/500.vue +85 -0
- package/plugins/helperFunctionsPlugins.ts +14 -2
- package/plugins/storePlugin.ts +6 -7
- package/plugins/vuetifyPlugin.ts +10 -0
- package/store/data.store.js +2460 -6
- package/store/form.store.ts +8 -0
- package/store/member.store.ts +291 -0
- package/store/messages.ts +156 -37
- package/store/rules.js +26 -28
- package/tailwind.config.js +10 -0
- package/types/index.ts +250 -0
- package/app.vue +0 -3
- package/components/Button/GreenBtn.vue +0 -33
- package/store/app.store.js +0 -12
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { defineStore } from 'pinia';
|
|
2
|
+
import { useDataStore } from './data.store';
|
|
3
|
+
import { useFormStore } from './form.store';
|
|
4
|
+
import { ErrorHandler } from '../composables';
|
|
5
|
+
import { AxiosError } from 'axios';
|
|
6
|
+
import { Member } from '../composables/classes';
|
|
7
|
+
|
|
8
|
+
export const useMemberStore = defineStore('members', {
|
|
9
|
+
state: () => ({
|
|
10
|
+
router: useRouter(),
|
|
11
|
+
dataStore: useDataStore(),
|
|
12
|
+
formStore: useFormStore(),
|
|
13
|
+
}),
|
|
14
|
+
actions: {
|
|
15
|
+
isStatementEditible(whichForm: string, showToaster: boolean = false) {
|
|
16
|
+
if (this.formStore.isDisabled[whichForm as keyof typeof this.formStore.isDisabled] === true) {
|
|
17
|
+
if (showToaster) this.dataStore.showToaster('error', this.dataStore.t('toaster.viewErrorText'), 2000);
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
},
|
|
22
|
+
validateInitiator(showToaster: boolean = true) {
|
|
23
|
+
if (!this.dataStore.isInitiator()) {
|
|
24
|
+
if (showToaster) this.dataStore.showToaster('error', this.dataStore.t('toaster.viewErrorText'));
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
return true;
|
|
28
|
+
},
|
|
29
|
+
hasMemberData(whichForm: MemberKeys, whichIndex?: number, key: string = 'id', emptyValue: any = 0) {
|
|
30
|
+
if (!this.validateInitiator(false)) return false;
|
|
31
|
+
if (!this.isStatementEditible(whichForm)) return false;
|
|
32
|
+
return typeof whichIndex === 'number' ? this.formStore[whichForm][whichIndex][key] != emptyValue : this.formStore[whichForm][key] != emptyValue;
|
|
33
|
+
},
|
|
34
|
+
canMemberDeleted(whichForm: MemberKeys, whichIndex?: number) {
|
|
35
|
+
if (!whichForm) return false;
|
|
36
|
+
if (!this.isStatementEditible(whichForm)) return false;
|
|
37
|
+
if (!this.validateInitiator(false)) return false;
|
|
38
|
+
if (typeof whichIndex === 'number' && whichIndex > 0) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
if (this.dataStore.isTask() && this.dataStore.isProcessEditable(this.formStore.applicationData.statusCode)) {
|
|
42
|
+
if (whichForm !== this.formStore.policyholderFormKey) {
|
|
43
|
+
return this.hasMemberData(whichForm, whichIndex);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
},
|
|
48
|
+
getMemberFromStore(whichForm: MemberKeys, whichIndex?: number): Member | null {
|
|
49
|
+
switch (whichForm) {
|
|
50
|
+
case this.formStore.policyholderFormKey:
|
|
51
|
+
return this.formStore.policyholderForm;
|
|
52
|
+
case this.formStore.policyholdersRepresentativeFormKey:
|
|
53
|
+
return this.formStore.policyholdersRepresentativeForm;
|
|
54
|
+
case this.formStore.insuredFormKey:
|
|
55
|
+
return this.formStore.insuredForm[whichIndex!];
|
|
56
|
+
case this.formStore.beneficiaryFormKey:
|
|
57
|
+
return this.formStore.beneficiaryForm[whichIndex!];
|
|
58
|
+
case this.formStore.beneficialOwnerFormKey:
|
|
59
|
+
return this.formStore.beneficialOwnerForm[whichIndex!];
|
|
60
|
+
default:
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
getMemberFromApplication(whichForm: MemberKeys, whichIndex?: number) {
|
|
65
|
+
const id = typeof whichIndex === 'number' ? this.formStore[whichForm][whichIndex].id : this.formStore[whichForm].id;
|
|
66
|
+
switch (whichForm) {
|
|
67
|
+
case this.formStore.policyholderFormKey:
|
|
68
|
+
return this.formStore.applicationData.clientApp;
|
|
69
|
+
case this.formStore.policyholdersRepresentativeFormKey:
|
|
70
|
+
return this.formStore.applicationData.spokesmanApp;
|
|
71
|
+
case this.formStore.insuredFormKey: {
|
|
72
|
+
const inStore = this.formStore.applicationData.insuredApp.find((member: any) => member.insisId === id);
|
|
73
|
+
return !!inStore ? inStore : false;
|
|
74
|
+
}
|
|
75
|
+
case this.formStore.beneficiaryFormKey: {
|
|
76
|
+
const inStore = this.formStore.applicationData.beneficiaryApp.find((member: any) => member.insisId === id);
|
|
77
|
+
return !!inStore ? inStore : false;
|
|
78
|
+
}
|
|
79
|
+
case this.formStore.beneficialOwnerFormKey: {
|
|
80
|
+
const inStore = this.formStore.applicationData.beneficialOwnerApp.find((member: any) => member.insisId === id);
|
|
81
|
+
return !!inStore ? inStore : false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
getMemberClass(whichForm: MemberKeys) {
|
|
86
|
+
if (!whichForm) return false;
|
|
87
|
+
switch (whichForm) {
|
|
88
|
+
case this.formStore.policyholderFormKey:
|
|
89
|
+
return new PolicyholderForm();
|
|
90
|
+
case this.formStore.insuredFormKey:
|
|
91
|
+
return new InsuredForm();
|
|
92
|
+
case this.formStore.beneficiaryFormKey:
|
|
93
|
+
return new BeneficiaryForm();
|
|
94
|
+
case this.formStore.beneficialOwnerFormKey:
|
|
95
|
+
return new BeneficialOwnerForm();
|
|
96
|
+
case this.formStore.policyholdersRepresentativeFormKey:
|
|
97
|
+
return new PolicyholdersRepresentativeForm();
|
|
98
|
+
default:
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
getMemberCode(whichForm: MemberKeys) {
|
|
103
|
+
switch (whichForm) {
|
|
104
|
+
case this.formStore.policyholderFormKey:
|
|
105
|
+
return 'Client';
|
|
106
|
+
case this.formStore.insuredFormKey:
|
|
107
|
+
return 'Insured';
|
|
108
|
+
case this.formStore.beneficiaryFormKey:
|
|
109
|
+
return 'Beneficiary';
|
|
110
|
+
case this.formStore.beneficialOwnerFormKey:
|
|
111
|
+
return 'BeneficialOwner';
|
|
112
|
+
case this.formStore.policyholdersRepresentativeFormKey:
|
|
113
|
+
return 'Spokesman';
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
clearMember(whichForm: MemberKeys, whichIndex?: number) {
|
|
117
|
+
if (!whichForm) return false;
|
|
118
|
+
if (!this.isStatementEditible(whichForm)) return false;
|
|
119
|
+
if (!this.validateInitiator()) return false;
|
|
120
|
+
if (whichForm === this.formStore.policyholderFormKey || whichForm === this.formStore.policyholdersRepresentativeFormKey) {
|
|
121
|
+
this.formStore[whichForm].resetMember();
|
|
122
|
+
}
|
|
123
|
+
if (typeof whichIndex === 'number') {
|
|
124
|
+
if (this.formStore[whichForm].length === 1) {
|
|
125
|
+
this.formStore[whichForm][whichIndex].resetMember();
|
|
126
|
+
} else {
|
|
127
|
+
this.formStore[whichForm].splice(whichIndex, 1);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
},
|
|
132
|
+
async deleteMember(taskId: string, whichForm: MemberKeys, whichIndex?: number) {
|
|
133
|
+
if (!whichForm) return false;
|
|
134
|
+
if (!this.isStatementEditible(whichForm)) return false;
|
|
135
|
+
if (!this.validateInitiator()) return false;
|
|
136
|
+
try {
|
|
137
|
+
const memberCode = this.getMemberCode(whichForm);
|
|
138
|
+
const memberData = this.getMemberFromApplication(whichForm, whichIndex);
|
|
139
|
+
if (!memberCode) return false;
|
|
140
|
+
if (typeof whichIndex !== 'number') {
|
|
141
|
+
if (whichForm === this.formStore.policyholdersRepresentativeFormKey) {
|
|
142
|
+
await this.dataStore.api.deleteMember(memberCode, this.formStore.applicationData.processInstanceId);
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
if (memberData) await this.dataStore.api.deleteMember(memberCode, memberData.id as number);
|
|
146
|
+
}
|
|
147
|
+
if (memberData) await this.dataStore.getApplicationData(taskId, true, true, true, false);
|
|
148
|
+
return this.clearMember(whichForm, whichIndex);
|
|
149
|
+
} catch (err) {
|
|
150
|
+
console.log(err);
|
|
151
|
+
return ErrorHandler(err);
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
addMember(whichForm: MemberKeys) {
|
|
155
|
+
if (!whichForm) return false;
|
|
156
|
+
if (!this.isStatementEditible(whichForm)) return false;
|
|
157
|
+
if (!this.validateInitiator()) return false;
|
|
158
|
+
this.formStore[whichForm].push(this.getMemberClass(whichForm));
|
|
159
|
+
},
|
|
160
|
+
async getOtpStatus(iin: string, phone: string, processInstanceId: string | number | null = null) {
|
|
161
|
+
try {
|
|
162
|
+
const otpData = {
|
|
163
|
+
iin: iin.replace(/-/g, ''),
|
|
164
|
+
phoneNumber: formatPhone(phone),
|
|
165
|
+
type: 'AgreementOtp',
|
|
166
|
+
};
|
|
167
|
+
return await this.dataStore.api.getOtpStatus(
|
|
168
|
+
processInstanceId !== null && processInstanceId !== 0
|
|
169
|
+
? {
|
|
170
|
+
...otpData,
|
|
171
|
+
processInstanceId: processInstanceId,
|
|
172
|
+
}
|
|
173
|
+
: otpData,
|
|
174
|
+
);
|
|
175
|
+
} catch (err) {
|
|
176
|
+
return ErrorHandler(err);
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
async checkOtp(member: Member) {
|
|
180
|
+
if (!member.otpTokenId || !member.otpCode || !member.phoneNumber) {
|
|
181
|
+
this.dataStore.showToaster('error', this.dataStore.t('error.noOtpCode'));
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
try {
|
|
185
|
+
this.dataStore.isLoading = true;
|
|
186
|
+
const otpData = {
|
|
187
|
+
tokenId: member.otpTokenId,
|
|
188
|
+
phoneNumber: formatPhone(member.phoneNumber),
|
|
189
|
+
code: member.otpCode.replace(/\s/g, ''),
|
|
190
|
+
};
|
|
191
|
+
const otpResponse = await this.dataStore.api.checkOtp(otpData);
|
|
192
|
+
if (otpResponse !== null) {
|
|
193
|
+
if ('errMessage' in otpResponse && otpResponse.errMessage !== null) {
|
|
194
|
+
this.dataStore.showToaster('error', otpResponse.errMessage, 3000);
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
if ('status' in otpResponse && !!otpResponse.status) {
|
|
198
|
+
// TODO Доработать и менять значение hasAgreement.value => true
|
|
199
|
+
this.dataStore.showToaster(otpResponse.status !== 2 ? 'error' : 'success', otpResponse.statusName, 3000);
|
|
200
|
+
if (otpResponse.status === 2) {
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return false;
|
|
206
|
+
} catch (err) {
|
|
207
|
+
ErrorHandler(err);
|
|
208
|
+
} finally {
|
|
209
|
+
this.dataStore.isLoading = false;
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
},
|
|
213
|
+
async sendOtp(member: Member, processInstanceId: string | number | null = null, onInit: boolean = false) {
|
|
214
|
+
if (!this.validateInitiator()) return null;
|
|
215
|
+
this.dataStore.isLoading = true;
|
|
216
|
+
let otpStatus: boolean = false;
|
|
217
|
+
let otpResponse: SendOtpResponse = {};
|
|
218
|
+
try {
|
|
219
|
+
if (member.iin && member.phoneNumber && member.iin.length === useMask().iin.length && member.phoneNumber.length === useMask().phone.length) {
|
|
220
|
+
const status = await this.getOtpStatus(member.iin, member.phoneNumber, processInstanceId);
|
|
221
|
+
if (status === true) {
|
|
222
|
+
this.dataStore.showToaster('success', this.dataStore.t('toaster.hasSuccessOtp'), 3000);
|
|
223
|
+
otpStatus = true;
|
|
224
|
+
this.dataStore.isLoading = false;
|
|
225
|
+
return { otpStatus, otpResponse };
|
|
226
|
+
} else if (status === false && onInit === false) {
|
|
227
|
+
const otpData = {
|
|
228
|
+
iin: member.iin.replace(/-/g, ''),
|
|
229
|
+
phoneNumber: formatPhone(member.phoneNumber),
|
|
230
|
+
type: 'AgreementOtp',
|
|
231
|
+
};
|
|
232
|
+
otpResponse = await this.dataStore.api.sendOtp(
|
|
233
|
+
processInstanceId !== null && processInstanceId !== 0
|
|
234
|
+
? {
|
|
235
|
+
...otpData,
|
|
236
|
+
processInstanceId: processInstanceId,
|
|
237
|
+
}
|
|
238
|
+
: otpData,
|
|
239
|
+
);
|
|
240
|
+
this.dataStore.isLoading = false;
|
|
241
|
+
if (!!otpResponse) {
|
|
242
|
+
if ('errMessage' in otpResponse && otpResponse.errMessage !== null) {
|
|
243
|
+
this.dataStore.showToaster('error', otpResponse.errMessage, 3000);
|
|
244
|
+
return { otpStatus };
|
|
245
|
+
}
|
|
246
|
+
if ('result' in otpResponse && otpResponse.result === null) {
|
|
247
|
+
if ('statusName' in otpResponse && !!otpResponse.statusName) {
|
|
248
|
+
this.dataStore.showToaster('error', otpResponse.statusName, 3000);
|
|
249
|
+
return { otpStatus };
|
|
250
|
+
}
|
|
251
|
+
if ('status' in otpResponse && !!otpResponse.status) {
|
|
252
|
+
this.dataStore.showToaster('error', otpResponse.status, 3000);
|
|
253
|
+
return { otpStatus };
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if ('tokenId' in otpResponse && otpResponse.tokenId) {
|
|
257
|
+
member.otpTokenId = otpResponse.tokenId;
|
|
258
|
+
this.dataStore.showToaster('success', this.dataStore.t('toaster.successOtp'), 3000);
|
|
259
|
+
}
|
|
260
|
+
} else {
|
|
261
|
+
this.dataStore.showToaster('error', this.dataStore.t('error.noOtpResponse'), 3000);
|
|
262
|
+
return { otpStatus };
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
} else {
|
|
266
|
+
if (onInit === false) {
|
|
267
|
+
this.dataStore.showToaster('error', this.dataStore.t('toaster.errorFormField').replace('{text}', 'Номер телефона, ИИН'));
|
|
268
|
+
this.dataStore.isLoading = false;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return { otpStatus, otpResponse };
|
|
272
|
+
} catch (err) {
|
|
273
|
+
this.dataStore.isLoading = false;
|
|
274
|
+
if (err instanceof AxiosError)
|
|
275
|
+
if ('response' in err && err.response && err.response.data) {
|
|
276
|
+
if ('statusName' in err.response.data && !!err.response.data.statusName) {
|
|
277
|
+
this.dataStore.showToaster('error', this.dataStore.t('toaster.phoneNotFoundInBMG'), 3000);
|
|
278
|
+
return { otpStatus };
|
|
279
|
+
}
|
|
280
|
+
if ('status' in err.response.data && !!err.response.data.status) {
|
|
281
|
+
this.dataStore.showToaster('error', err.response.data.status, 3000);
|
|
282
|
+
return { otpStatus };
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
} finally {
|
|
286
|
+
this.dataStore.isLoading = false;
|
|
287
|
+
}
|
|
288
|
+
return { otpStatus, otpResponse };
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
});
|
package/store/messages.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export const t = (whichText: string) => {
|
|
1
|
+
export const t = (whichText: string): string => {
|
|
2
2
|
const keys = whichText.includes('.') ? whichText.split('.') : whichText;
|
|
3
3
|
if (typeof keys === typeof []) {
|
|
4
4
|
const firstKey = keys[0];
|
|
5
5
|
const secondKey = keys[1];
|
|
6
6
|
const firstObject = messages.ru[firstKey as keyof typeof messages.ru];
|
|
7
|
-
return firstObject[secondKey as keyof typeof firstObject];
|
|
7
|
+
return firstObject[secondKey as keyof typeof firstObject] as string;
|
|
8
8
|
} else {
|
|
9
|
-
return messages.ru[keys as keyof typeof messages.ru];
|
|
9
|
+
return messages.ru[keys as keyof typeof messages.ru] as string;
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -28,16 +28,22 @@ export const messages = {
|
|
|
28
28
|
rejectCause: 'Причина отказа',
|
|
29
29
|
returnCause: 'Причина возврата на доработку',
|
|
30
30
|
},
|
|
31
|
+
error: {
|
|
32
|
+
title: 'Ошибка 404',
|
|
33
|
+
description: 'Страница, которую вы запрашиваете, не существует либо устарела.',
|
|
34
|
+
connectionLost: 'Нет подключения к Интернету',
|
|
35
|
+
checkConnection: 'Проверьте ваше подключение',
|
|
36
|
+
noOtpResponse: 'Отсутствует ответ при отправке OTP кода',
|
|
37
|
+
noOtpCode: 'Заполните поля: ИИН, Номер телефона, Код подтверждения',
|
|
38
|
+
},
|
|
31
39
|
toaster: {
|
|
40
|
+
noIinOrPhone: 'Отсутствуют данные для отправки СМС',
|
|
32
41
|
ESBDErrorMessage: 'Введены не корректные данные по этому ИИН',
|
|
33
|
-
phoneNotFoundInBMG:
|
|
34
|
-
|
|
35
|
-
errorSumOrPercentage:
|
|
36
|
-
'Процент от суммы выплат не может быть меньше или больше 100',
|
|
42
|
+
phoneNotFoundInBMG: 'Введите номер зарегистрированный в БМГ или зарегистрируйте клиента в БМГ',
|
|
43
|
+
errorSumOrPercentage: 'Процент от суммы выплат не может быть меньше или больше 100',
|
|
37
44
|
fileWasDeleted: 'Файл успешно удален',
|
|
38
45
|
attachManagerError: 'Прикрепите заявку менеджеру',
|
|
39
|
-
viewErrorText:
|
|
40
|
-
'Вы сейчас находитесь в режиме просмотра или у вас нет доступа',
|
|
46
|
+
viewErrorText: 'Вы сейчас находитесь в режиме просмотра или у вас нет доступа',
|
|
41
47
|
editModeText: 'Вы перешли в режим редактирования',
|
|
42
48
|
viewModeText: 'Вы перешли в режим просмотра',
|
|
43
49
|
noEditText: 'У вас нет доступа на редактирование',
|
|
@@ -51,8 +57,7 @@ export const messages = {
|
|
|
51
57
|
undefinedError: 'Что-то произошло не так',
|
|
52
58
|
noProductPermission: 'У вас нет доступа к данному продукту',
|
|
53
59
|
noStatementPermission: 'У вас нет доступа к данной заявке',
|
|
54
|
-
formFieldEmptyWarning:
|
|
55
|
-
'Вам нужно заполнить некоторые поля и сохранить участника',
|
|
60
|
+
formFieldEmptyWarning: 'Вам нужно заполнить некоторые поля и сохранить участника',
|
|
56
61
|
needToRunStatement: 'Нужно создать заявку',
|
|
57
62
|
shouldBeOneInsured: 'Нельзя удалить единственного застрахованного',
|
|
58
63
|
readyStatementMembers: 'Данные всех участников успешно сохранены',
|
|
@@ -71,11 +76,10 @@ export const messages = {
|
|
|
71
76
|
incorrectInput: 'Значение введено некорректно',
|
|
72
77
|
error: 'Произошла ошибка ',
|
|
73
78
|
applicationDeleted: 'Заявка удалена',
|
|
74
|
-
emptyProductConditions:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
emptyCriticalAnketa:
|
|
78
|
-
'Не заполнены данные анкеты по критическому заболеванию застрахованного',
|
|
79
|
+
emptyProductConditions: 'Не заполнены данные условия продуктов и расчетов',
|
|
80
|
+
emptyHealthAnketa: 'Не заполнены данные анкеты по здоровью Застрахованного',
|
|
81
|
+
emptyHealthAnketaPolicyholder: 'Не заполнены данные анкеты по здоровью Страхователя',
|
|
82
|
+
emptyCriticalAnketa: 'Не заполнены данные анкеты по критическому заболеванию Застрахованного',
|
|
79
83
|
successOperation: 'Операция прошла успешно',
|
|
80
84
|
noAssignee: 'Нужно взять задачу в работу',
|
|
81
85
|
canDoOnlyAssignee: 'Задача в работе и у вас нету доступа',
|
|
@@ -83,22 +87,28 @@ export const messages = {
|
|
|
83
87
|
noTasksForYou: 'Список, назначенных задач на вашу роль, пустой',
|
|
84
88
|
youCanNotStartApplication: 'У вас нет доступа на запуск заявки',
|
|
85
89
|
hasNewApplicationState: 'Неактуальная заявка',
|
|
86
|
-
reloadEverySeconds: 'Обновление можно делать каждые {
|
|
90
|
+
reloadEverySeconds: 'Обновление можно делать каждые {text} секунд',
|
|
87
91
|
successReload: 'Обновлено',
|
|
88
|
-
sendEverySeconds: 'СМС можно отправлять каждые {
|
|
92
|
+
sendEverySeconds: 'СМС можно отправлять каждые {text} секунд ',
|
|
89
93
|
waitForClient: 'Ожидайте подтверждения клиента',
|
|
90
94
|
noSuchProduct: 'Ошибка при переходе: неправильная ссылка',
|
|
91
|
-
affiliationDocumentNotUploaded:
|
|
92
|
-
'Не прикреплен файл в решении андеррайтингового совета',
|
|
95
|
+
affiliationDocumentNotUploaded: 'Не прикреплен файл в решении андеррайтингового совета',
|
|
93
96
|
documentNumberWasNotFilled: 'Номер документа и дата не были заполнены',
|
|
94
|
-
valueShouldBeHigher: `Значение должно быть больше {
|
|
97
|
+
valueShouldBeHigher: `Значение должно быть больше {text} процентов`,
|
|
95
98
|
valueShouldBeBetween: `Значение должно быть в промежутке от { floor } до { ceil } процентов`,
|
|
96
99
|
needAgreement: 'Нужно получить согласие клиента',
|
|
97
100
|
successOtp: 'Код подтверждения отправлен успешно',
|
|
98
101
|
hasSuccessOtp: 'По клиенту уже имеется согласие',
|
|
99
102
|
tokenExpire: 'Истекло время ожидания',
|
|
103
|
+
requiredBeneficiary: 'Необходимо указать данные выгодоприобретателя',
|
|
104
|
+
requiredInsured: 'Необходимо указать данные застрахованного',
|
|
105
|
+
needToRecalculate: 'Необходимо пересчитать условия продукта',
|
|
106
|
+
noUrl: 'Отсутствует ссылка',
|
|
107
|
+
pickFamilyMember: 'Выберите члена семьи',
|
|
100
108
|
},
|
|
101
109
|
buttons: {
|
|
110
|
+
createStatement: 'Создать заявку',
|
|
111
|
+
add: 'Добавить',
|
|
102
112
|
userLogin: 'Логин',
|
|
103
113
|
password: 'Пароль',
|
|
104
114
|
login: 'Вход в систему',
|
|
@@ -111,6 +121,7 @@ export const messages = {
|
|
|
111
121
|
create: 'Создать',
|
|
112
122
|
becomeAgent: 'Стать агентом',
|
|
113
123
|
close: 'Закрыть',
|
|
124
|
+
reload: 'Обновить',
|
|
114
125
|
makeIssueInvoice: 'Создать Счет на оплату',
|
|
115
126
|
open: 'Открыть',
|
|
116
127
|
edit: 'Редактировать',
|
|
@@ -133,45 +144,113 @@ export const messages = {
|
|
|
133
144
|
createInvoice: 'Создать Счет на оплату',
|
|
134
145
|
fromInsis: 'Информационная система INSIS',
|
|
135
146
|
fromGBDFL: 'Государственная база данных физических лиц',
|
|
147
|
+
fromGKB: 'Государственное кредитное бюро',
|
|
136
148
|
sendSMS: 'Отправить СМС',
|
|
137
149
|
toPayment: 'Перейти к оплате',
|
|
138
150
|
calcSum: 'Рассчитать сумму',
|
|
139
151
|
calcPremium: 'Рассчитать премию',
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
title: 'Ошибка 404',
|
|
143
|
-
description:
|
|
144
|
-
'Страница, которую вы запрашиваете, не существует либо устарела.',
|
|
145
|
-
connectionLost: 'Нет подключения к Интернету',
|
|
146
|
-
checkConnection: 'Проверьте ваше подключение',
|
|
152
|
+
accept: 'Одобрить',
|
|
153
|
+
reject: 'Отказать',
|
|
147
154
|
},
|
|
148
155
|
dialog: {
|
|
149
156
|
title: 'Подтверждение',
|
|
150
157
|
exit: 'Вы действительно хотите выйти?',
|
|
151
158
|
exitApp: 'Вы действительно хотите выйти? Данные будут очищены.',
|
|
159
|
+
dataWillClear: 'Данные будут очищены',
|
|
152
160
|
cancel: 'Вы действительно хотите отменить заявку?',
|
|
153
161
|
clear: 'Вы действительно хотите очистить данные участника?',
|
|
154
162
|
delete: 'Вы действительно хотите удалить участника?',
|
|
155
163
|
sent: 'Ссылка была отправлена',
|
|
156
|
-
sentText:
|
|
157
|
-
'Ссылка была отправлена на номер {phoneNumber}. Повторно можно отправить через {minutes}:{seconds} сек`',
|
|
164
|
+
sentText: 'Ссылка была отправлена на номер {phoneNumber}. Повторно можно отправить через {minutes}:{seconds} сек`',
|
|
158
165
|
sentSMS: 'СМС был отправлен',
|
|
159
|
-
sentTextSMS:
|
|
160
|
-
'СМС был отправлен на номер {phoneNumber}. Повторно можно отправить через {minutes}:{seconds} сек`',
|
|
166
|
+
sentTextSMS: 'СМС был отправлен на номер {phoneNumber}. Повторно можно отправить через {minutes}:{seconds} сек`',
|
|
161
167
|
deleteFile: 'Вы уверены что хотите удалить файл',
|
|
162
168
|
continue: 'Продолжить',
|
|
163
169
|
correctSum: 'Корректна ли сумма страховой премии?',
|
|
170
|
+
familyMember: 'Выберите члена семьи',
|
|
171
|
+
},
|
|
172
|
+
sign: {
|
|
173
|
+
chooseDoc: 'Выберите документы для подписание',
|
|
174
|
+
signed: 'Подписано ЭЦП',
|
|
175
|
+
chooseMethod: 'Выберите способ подписания',
|
|
176
|
+
downloadDoc: 'Скачать документ для подписи',
|
|
177
|
+
downloadSignedDoc: 'Загрузить Подписанный Документ',
|
|
178
|
+
signPaper: 'Подписать на бумажном носителе',
|
|
179
|
+
recipientNumber: 'Номер получателя ссылки',
|
|
180
|
+
signCloud: 'Подписать через облачную ЭЦП',
|
|
181
|
+
copyCloud: 'Скопировать ссылку на подпись через облачную ЭЦП',
|
|
182
|
+
codeSendNumber: 'Код отправлен на номер:',
|
|
183
|
+
codeFromSMS: 'Код из СМС',
|
|
184
|
+
signEgov: 'Подписать с помощью eGov mobile',
|
|
185
|
+
showQR: 'Показать QR-код',
|
|
186
|
+
timer: 'Вы создали счет на оплату, через 00:59 сек счет станет не активным',
|
|
164
187
|
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
188
|
+
questionnaireType: {
|
|
189
|
+
byHealth: 'Анкета по здоровью застрахованного',
|
|
190
|
+
byCritical: 'Анкета по критической болезни Застрахованного',
|
|
191
|
+
answerAllNo: 'Ответить везде "Нет"',
|
|
192
|
+
pleaseAnswer: 'Пожалуйста ответьте на {text} вопросов',
|
|
168
193
|
},
|
|
194
|
+
questionnaireHealth: 'Анкета по здоровью Застрахованного',
|
|
195
|
+
chooseAll: 'Выбрать все',
|
|
196
|
+
statement: 'Заявление',
|
|
197
|
+
policyholderForm: 'Страхователь',
|
|
198
|
+
policyholderAndInsured: 'Застрахованный / Страхователь',
|
|
199
|
+
policyholderAndInsuredSame: 'Застрахованный / Страхователь является одним лицом',
|
|
200
|
+
insuredForm: 'Застрахованный',
|
|
201
|
+
beneficiaryForm: 'Выгодоприобретатель',
|
|
202
|
+
beneficialOwnerForm: 'Бенефициарный собственник',
|
|
203
|
+
policyholdersRepresentativeForm: 'Представитель страхователя',
|
|
204
|
+
productConditions: 'Условия продукта и расчеты',
|
|
205
|
+
underwriterDecision: 'Решение андеррайтингового совета',
|
|
206
|
+
recalculationInfo: 'Данные для перерасчета',
|
|
207
|
+
generalConditions: 'Основные условия страхования',
|
|
208
|
+
isPolicyholderInsured: 'Является ли страхователь застрахованным?',
|
|
209
|
+
isPolicyholderIPDL: 'Принадлежит ли и/или причастен ли Застрахованный / Страхователь или его члены семьи и близкие родственники к иностранному публичному должностному лицу?',
|
|
210
|
+
isMemberIPDL: 'Отметка о принадлежности и/или причастности к публичному должностному лицу, его супруге (супругу) и близким родственникам?',
|
|
211
|
+
isPolicyholderBeneficiary: 'Является ли страхователь выгодоприобретателем?',
|
|
212
|
+
hasRepresentative: 'Подписантом договора выступает представитель? ',
|
|
213
|
+
isActOwnBehalf: ' Клиент действует от своего имени и в своих интересах?',
|
|
214
|
+
coverPeriod: 'Срок',
|
|
215
|
+
requestedSumInsured: 'Запрашиваемая сумма',
|
|
216
|
+
insurancePremiumPerMonth: 'Премия в месяц',
|
|
217
|
+
noStatementCalculator: 'Калькулятор стоимости без ввода данных',
|
|
169
218
|
agreement: 'Согласие',
|
|
219
|
+
clientsStatement: 'Заявление клиента',
|
|
220
|
+
document: 'Документ',
|
|
221
|
+
documents: 'Документы',
|
|
222
|
+
statementAndSurvey: 'Заявление и анкета',
|
|
223
|
+
underwriterDecisionDocument: '',
|
|
170
224
|
clientsCard: 'Карта клиента',
|
|
171
225
|
insuranceProduct: 'Страховой продукт',
|
|
172
226
|
historyStatementsAndStatuses: 'История заявок и статусы',
|
|
173
227
|
applicationNumber: 'Номер заявки: ',
|
|
174
228
|
operationList: 'Список операций',
|
|
229
|
+
payCalendar: 'Календарь платежей',
|
|
230
|
+
signedDoc: 'Подписанный докум (проект Байтерек)',
|
|
231
|
+
percent: 'Процент ',
|
|
232
|
+
chooseSource: 'Выберите источник данных',
|
|
233
|
+
sumAndPremium: `Сумма страховой премии {paymentPeriod}: {insurancePremiumPerMonth}₸\nЗапрашиваемая страховая сумма: {requestedSumInsured}₸`,
|
|
234
|
+
recalculation: 'Перерасчет',
|
|
235
|
+
survey: 'Анкета',
|
|
236
|
+
productConditionsForm: {
|
|
237
|
+
coverPeriod: 'Срок страхования',
|
|
238
|
+
payPeriod: 'Период оплаты страховой премии',
|
|
239
|
+
processIndexRate: 'Запрашиваемый размер коэффициента индексации (от 3% до 7%)',
|
|
240
|
+
processPaymentPeriod: 'Периодичность оплаты страховой премии:',
|
|
241
|
+
requestedSumInsured: 'Страховая сумма',
|
|
242
|
+
sumInsured: 'Страховая сумма',
|
|
243
|
+
insurancePremiumPerMonth: 'Страховая премия',
|
|
244
|
+
hint: 'Сумма рассчитывается автоматически',
|
|
245
|
+
additional: 'Дополнительные условия страхования',
|
|
246
|
+
possibilityToChange: 'Возможность изменения страховой суммы и страховых взносов (индексация)',
|
|
247
|
+
conditions: 'Условия оплаты страховой премии',
|
|
248
|
+
processTariff: 'Тариф',
|
|
249
|
+
riskGroup: 'Группа риска',
|
|
250
|
+
requestedProductConditions: 'Запрашиваемые условия страхования',
|
|
251
|
+
coverPeriodFrom3to20: 'Срок страхования (от 3-х до 20 лет)',
|
|
252
|
+
insurancePremiumAmount: 'Размер Страховой премии (страховой взнос)',
|
|
253
|
+
},
|
|
175
254
|
history: {
|
|
176
255
|
addRegNumber: 'Номер',
|
|
177
256
|
number: 'Номер заявки',
|
|
@@ -182,6 +261,10 @@ export const messages = {
|
|
|
182
261
|
assignee: 'Исполнитель',
|
|
183
262
|
initiator: 'Инициатор',
|
|
184
263
|
reason: 'Причина',
|
|
264
|
+
dateCreated: 'Дата начала',
|
|
265
|
+
factEndDate: 'Дата завершения',
|
|
266
|
+
decision: 'Статус',
|
|
267
|
+
userFullName: 'Исполнитель',
|
|
185
268
|
},
|
|
186
269
|
labels: {
|
|
187
270
|
search: 'Поиск',
|
|
@@ -197,6 +280,11 @@ export const messages = {
|
|
|
197
280
|
userFullName: 'ФИО',
|
|
198
281
|
userRoles: 'Роли',
|
|
199
282
|
noUserRoles: 'Нет ролей',
|
|
283
|
+
welcome: 'Добро пожаловать',
|
|
284
|
+
information: 'Дополнительные данные',
|
|
285
|
+
policyNumber: 'Номер полиса',
|
|
286
|
+
statusCode: 'Статус заявки',
|
|
287
|
+
initiator: 'Инициатор',
|
|
200
288
|
},
|
|
201
289
|
placeholders: {
|
|
202
290
|
login: 'Логин',
|
|
@@ -221,13 +309,42 @@ export const messages = {
|
|
|
221
309
|
requestedSumInsuredMycar: 'Максимальная сумма не должна превышать 60 млн',
|
|
222
310
|
ageMycar: 'Пороговое значение по возрасту с 21 по 65',
|
|
223
311
|
noResident: 'Нерезидентам отказано',
|
|
312
|
+
policyholderAgeLimit: 'Возраст Застрахованного должен быть не менее 18-ти лет',
|
|
313
|
+
beneficiaryAgeLimit: 'На дату подписания полиса возраст Выгодоприобретателя должен быть не более 15 лет',
|
|
224
314
|
},
|
|
225
|
-
code: '
|
|
315
|
+
code: 'КЭС',
|
|
226
316
|
fontSize: 'Размер шрифта',
|
|
317
|
+
policyholdersRepresentative: {
|
|
318
|
+
name: 'ФИО',
|
|
319
|
+
PowerOfAttorney: 'Доверенность',
|
|
320
|
+
NameParentCase: 'ФИО представителя в родительском падеже',
|
|
321
|
+
basisDocKz: 'Действует на основании документа (каз)',
|
|
322
|
+
basisDocRu: 'Действует на основании документа (рус)',
|
|
323
|
+
basisDocRuParentCase: 'Действует на основании документа в родительском падеже (рус)',
|
|
324
|
+
numberDoc: 'Номер документа подтверждающий полномочия',
|
|
325
|
+
numberVisa: 'Номер миграционный карточки',
|
|
326
|
+
numberLicense: 'Номер лицензии',
|
|
327
|
+
confirmAuthority: 'Лицо, подписавшего документ, подтверждающий полномочия, -Нотариус?',
|
|
328
|
+
documentIssuers: 'Наименование органа, выдавшего документ',
|
|
329
|
+
},
|
|
227
330
|
payment: {
|
|
228
331
|
method: 'Способ оплаты',
|
|
332
|
+
chooseMethod: 'Выберите способ оплаты',
|
|
333
|
+
payConditions: 'Условия оплаты',
|
|
334
|
+
issueInvoice: 'Выставить счет на оплату',
|
|
335
|
+
copyBill: 'Скопировать счет на оплату',
|
|
336
|
+
sendBill: 'Отправить счет на оплату через СМС',
|
|
337
|
+
anyCard: 'Онлайн картой любого банка',
|
|
338
|
+
terminalHalyk: 'Через терминал Halyk Bank',
|
|
339
|
+
homebankContractNumber: 'Через номер договора в Homebank',
|
|
340
|
+
homebankIIN: 'Через ИИН в Homebank',
|
|
341
|
+
accountingDepartment: 'Через бухгалтерию организации',
|
|
342
|
+
kaspi: 'Через Kaspi.kz',
|
|
343
|
+
recipientNumber: 'Номер получателя СМС',
|
|
229
344
|
},
|
|
230
345
|
form: {
|
|
346
|
+
migrationCard: '',
|
|
347
|
+
postIndex: 'Почтовый индекс',
|
|
231
348
|
name: 'Наименование',
|
|
232
349
|
bin: 'БИН',
|
|
233
350
|
fullName: 'ФИО',
|
|
@@ -238,6 +355,7 @@ export const messages = {
|
|
|
238
355
|
firstName: 'Имя',
|
|
239
356
|
middleName: 'Отчество',
|
|
240
357
|
birthDate: 'Дата рождения',
|
|
358
|
+
signDate: 'Дата расчета',
|
|
241
359
|
age: 'Возраст',
|
|
242
360
|
gender: 'Пол',
|
|
243
361
|
familyStatus: 'Семейное положение',
|
|
@@ -272,6 +390,7 @@ export const messages = {
|
|
|
272
390
|
signOfIPDL: 'Признак ИПДЛ',
|
|
273
391
|
countryOfCitizenship: 'Страна гражданства',
|
|
274
392
|
countryOfTaxResidency: 'Страна налогового резиденства',
|
|
393
|
+
addTaxResidency: 'Указать если налоговое резиденство выбрано другое',
|
|
275
394
|
economySectorCode: 'Код сектора экономики',
|
|
276
395
|
contactsData: 'Контакты',
|
|
277
396
|
phoneNumber: 'Номер телефона',
|
|
@@ -281,7 +400,7 @@ export const messages = {
|
|
|
281
400
|
},
|
|
282
401
|
agreementBlock: {
|
|
283
402
|
title: 'Согласие на сбор и обработку пресональных данных',
|
|
284
|
-
text: `Я,
|
|
403
|
+
text: `Я, предоставляю АО «Халык-Life» (БИН 051140004354) и (или) организациям,
|
|
285
404
|
входящими в состав финансовой Группы «Халык» (Акционеру АО «Халык-Life» (БИН 940140000385) и его дочерним организациям),
|
|
286
405
|
перестраховочным организациям, организации по формированию и ведению базы данных по страхованию (БИН 120940011577), юридическому лицу,
|
|
287
406
|
осуществляющему деятельность по привлечению пенсионных взносов и пенсионным выплатам (БИН 971240002115), юридическому лицу,
|