hl-core 0.0.8 → 0.0.9-beta.10
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/api/index.ts +202 -161
- package/api/interceptors.ts +23 -17
- package/components/Button/Btn.vue +4 -4
- package/components/Button/ScrollButtons.vue +2 -2
- package/components/Complex/ContentBlock.vue +1 -1
- package/components/Complex/MessageBlock.vue +26 -0
- package/components/Complex/Page.vue +8 -2
- package/components/Complex/WhiteBlock.vue +7 -0
- package/components/Dialog/Dialog.vue +9 -39
- package/components/Dialog/FamilyDialog.vue +10 -7
- package/components/Form/FormBlock.vue +91 -45
- package/components/Form/FormSection.vue +5 -2
- package/components/Form/FormTextSection.vue +3 -3
- package/components/Form/FormToggle.vue +4 -5
- package/components/Form/ManagerAttachment.vue +210 -0
- package/components/Form/ProductConditionsBlock.vue +70 -16
- package/components/Input/Datepicker.vue +45 -0
- package/components/Input/EmptyFormField.vue +1 -1
- package/components/Input/FileInput.vue +2 -3
- package/components/Input/FormInput.vue +31 -7
- package/components/Input/PanelInput.vue +7 -2
- package/components/Input/RoundedEmptyField.vue +5 -0
- package/components/Input/RoundedInput.vue +2 -2
- package/components/Input/RoundedSelect.vue +150 -0
- package/components/Layout/Drawer.vue +5 -2
- package/components/Layout/Header.vue +41 -5
- package/components/Layout/Loader.vue +1 -1
- package/components/Layout/SettingsPanel.vue +47 -13
- package/components/List/ListEmpty.vue +1 -1
- package/components/Menu/MenuHover.vue +30 -0
- package/components/Menu/MenuNav.vue +30 -14
- package/components/Menu/MenuNavItem.vue +10 -7
- package/components/Pages/Anketa.vue +68 -47
- package/components/Pages/Auth.vue +139 -46
- package/components/Pages/ContragentForm.vue +505 -0
- package/components/Pages/Documents.vue +11 -11
- package/components/Pages/InvoiceInfo.vue +30 -0
- package/components/Pages/MemberForm.vue +574 -316
- package/components/Pages/ProductAgreement.vue +2 -2
- package/components/Pages/ProductConditions.vue +671 -78
- package/components/Panel/PanelHandler.vue +309 -0
- package/components/Panel/PanelSelectItem.vue +3 -3
- package/components/Transitions/SlideTransition.vue +5 -0
- package/components/Utilities/Chip.vue +27 -0
- package/components/Utilities/IconBorder.vue +17 -0
- package/components/Utilities/JsonViewer.vue +27 -0
- package/composables/axios.ts +2 -2
- package/composables/classes.ts +227 -107
- package/composables/constants.ts +31 -51
- package/composables/index.ts +106 -2
- package/composables/styles.ts +33 -11
- package/configs/i18n.ts +15 -0
- package/layouts/default.vue +11 -8
- package/layouts/full.vue +1 -1
- package/locales/ru.json +647 -0
- package/nuxt.config.ts +14 -2
- package/package.json +35 -12
- package/pages/500.vue +4 -4
- package/pages/Token.vue +52 -0
- package/plugins/helperFunctionsPlugins.ts +11 -6
- package/plugins/storePlugin.ts +0 -1
- package/plugins/vuetifyPlugin.ts +8 -1
- package/store/data.store.ts +2666 -0
- package/store/form.store.ts +1 -1
- package/store/member.store.ts +164 -52
- package/store/rules.ts +193 -0
- package/types/enum.ts +83 -0
- package/types/env.d.ts +10 -0
- package/types/index.ts +279 -8
- package/components/Button/BtnIcon.vue +0 -47
- package/store/data.store.js +0 -2482
- package/store/messages.ts +0 -429
- package/store/rules.js +0 -153
package/types/index.ts
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
|
+
import { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
|
|
2
|
+
|
|
1
3
|
export {};
|
|
2
4
|
|
|
3
5
|
declare global {
|
|
6
|
+
type EnvModes = 'development' | 'test' | 'vercel' | 'production';
|
|
7
|
+
type Projects =
|
|
8
|
+
| 'aml'
|
|
9
|
+
| 'baiterek'
|
|
10
|
+
| 'bolashak'
|
|
11
|
+
| 'calculator'
|
|
12
|
+
| 'efo'
|
|
13
|
+
| 'gons'
|
|
14
|
+
| 'halykkazyna'
|
|
15
|
+
| 'lifebusiness'
|
|
16
|
+
| 'liferenta'
|
|
17
|
+
| 'lifetrip'
|
|
18
|
+
| 'lka'
|
|
19
|
+
| 'mycar'
|
|
20
|
+
| 'checkcontract'
|
|
21
|
+
| 'checkcontragent';
|
|
4
22
|
type MemberKeys = keyof ReturnType<typeof useFormStore>;
|
|
5
23
|
type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
|
|
24
|
+
type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
|
|
25
|
+
type MultipleMember = 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm';
|
|
6
26
|
type PanelTypes = 'settings' | 'panel';
|
|
7
27
|
type FileActions = 'view' | 'download';
|
|
28
|
+
type RouteType = RouteLocationNormalizedLoaded | RouteLocationNormalized;
|
|
8
29
|
type InputVariants = 'solo' | 'filled' | 'outlined' | 'plain' | 'underlined';
|
|
9
30
|
type InputTypes =
|
|
10
31
|
| 'button'
|
|
@@ -29,7 +50,7 @@ declare global {
|
|
|
29
50
|
| 'time'
|
|
30
51
|
| 'url'
|
|
31
52
|
| 'week';
|
|
32
|
-
|
|
53
|
+
interface TaskListItem {
|
|
33
54
|
addRegNumber: string | number;
|
|
34
55
|
applicationTaskId: string;
|
|
35
56
|
dateCreated: string;
|
|
@@ -47,7 +68,7 @@ declare global {
|
|
|
47
68
|
status: string;
|
|
48
69
|
userId: string;
|
|
49
70
|
userName: string;
|
|
50
|
-
}
|
|
71
|
+
}
|
|
51
72
|
type TaskHistory = {
|
|
52
73
|
appointmentDate: string | null;
|
|
53
74
|
comment: string | null;
|
|
@@ -130,9 +151,9 @@ declare global {
|
|
|
130
151
|
definedAnswers: DefinedAnswers;
|
|
131
152
|
defaultAnswer: string;
|
|
132
153
|
questOrder: number;
|
|
133
|
-
answerId:
|
|
154
|
+
answerId: string | null;
|
|
134
155
|
answerName: AnswerName | null;
|
|
135
|
-
answerText:
|
|
156
|
+
answerText: string | null;
|
|
136
157
|
};
|
|
137
158
|
|
|
138
159
|
enum AnswerName {
|
|
@@ -220,10 +241,10 @@ declare global {
|
|
|
220
241
|
gender: number;
|
|
221
242
|
amount: number | null;
|
|
222
243
|
premium: number | null;
|
|
223
|
-
coverPeriod:
|
|
224
|
-
payPeriod:
|
|
225
|
-
indexRateId
|
|
226
|
-
paymentPeriodId
|
|
244
|
+
coverPeriod: number;
|
|
245
|
+
payPeriod: number;
|
|
246
|
+
indexRateId?: string | number | null;
|
|
247
|
+
paymentPeriodId?: string;
|
|
227
248
|
addCovers: AddCover[];
|
|
228
249
|
};
|
|
229
250
|
|
|
@@ -232,6 +253,9 @@ declare global {
|
|
|
232
253
|
premium: number;
|
|
233
254
|
mainCoverPremium: number;
|
|
234
255
|
addCovers: AddCover[];
|
|
256
|
+
amountInCurrency: number;
|
|
257
|
+
premiumInCurrency: number;
|
|
258
|
+
annuityMonthPay: string | number | null;
|
|
235
259
|
};
|
|
236
260
|
|
|
237
261
|
type AddCover = {
|
|
@@ -247,4 +271,251 @@ declare global {
|
|
|
247
271
|
premium: number;
|
|
248
272
|
isMigrate: boolean;
|
|
249
273
|
};
|
|
274
|
+
|
|
275
|
+
type SignUrlType = {
|
|
276
|
+
uri: string;
|
|
277
|
+
shortUri: string;
|
|
278
|
+
iin: string | null;
|
|
279
|
+
longName: string | null;
|
|
280
|
+
phoneNumber: string | null;
|
|
281
|
+
signed: boolean;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
type SignDataType = {
|
|
285
|
+
processInstanceId: string;
|
|
286
|
+
name: 'Statement' | 'Agreement' | 'Contract';
|
|
287
|
+
format: 'pdf';
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
type SmsDataType = {
|
|
291
|
+
processInstanceId: string;
|
|
292
|
+
iin: string;
|
|
293
|
+
phoneNumber: string;
|
|
294
|
+
type: 'SignUrl' | 'PayUrl';
|
|
295
|
+
text: string;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
type RegNumberDataType = { processInstanceId: string; regNumber: string; date: string };
|
|
299
|
+
|
|
300
|
+
type EpayShortResponse = {
|
|
301
|
+
id: string;
|
|
302
|
+
link: string;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
type EpayResponse = {
|
|
306
|
+
id: string;
|
|
307
|
+
processInstanceId: string;
|
|
308
|
+
createDate: string;
|
|
309
|
+
number: number;
|
|
310
|
+
phoneNumber: string;
|
|
311
|
+
amount: number;
|
|
312
|
+
currency: string;
|
|
313
|
+
dueDate: string;
|
|
314
|
+
transactionId: string;
|
|
315
|
+
transactionDate: string;
|
|
316
|
+
status: number;
|
|
317
|
+
statusName: string;
|
|
318
|
+
description: string;
|
|
319
|
+
epayHtml: string | null;
|
|
320
|
+
epayResponse: string | null;
|
|
321
|
+
paymentLink: string;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
type SendTask = {
|
|
325
|
+
decision: keyof typeof constants.actions;
|
|
326
|
+
taskId: string;
|
|
327
|
+
comment?: string;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
type AgentData = {
|
|
331
|
+
agentId?: number | null;
|
|
332
|
+
manId?: number;
|
|
333
|
+
fullName?: string;
|
|
334
|
+
officeId?: number | null;
|
|
335
|
+
officeCode?: string | null;
|
|
336
|
+
saleChannel?: string;
|
|
337
|
+
staffId?: number;
|
|
338
|
+
managerName?: string;
|
|
339
|
+
mainAgentId?: string | null;
|
|
340
|
+
agentNo?: string;
|
|
341
|
+
iin?: string | null;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
type ChipComponent = {
|
|
345
|
+
title: string;
|
|
346
|
+
description?: string;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
type GetContragentRequest = {
|
|
350
|
+
firstName: string;
|
|
351
|
+
lastName: string;
|
|
352
|
+
middleName: string;
|
|
353
|
+
iin: string;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
type GetContragentResponse = {
|
|
357
|
+
totalItems: number;
|
|
358
|
+
items: ContragentType[];
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
type ContragentType = {
|
|
362
|
+
id: number;
|
|
363
|
+
type: number;
|
|
364
|
+
iin: string;
|
|
365
|
+
longName: string;
|
|
366
|
+
lastName: string;
|
|
367
|
+
firstName: string;
|
|
368
|
+
middleName: string | null;
|
|
369
|
+
birthDate: string;
|
|
370
|
+
gender: number;
|
|
371
|
+
genderName: string;
|
|
372
|
+
birthPlace: string;
|
|
373
|
+
age: number;
|
|
374
|
+
registrationDate: string;
|
|
375
|
+
verifyType: string;
|
|
376
|
+
verifyDate: string;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
type ContragentQuestionaries = {
|
|
380
|
+
id: number;
|
|
381
|
+
contragentId: number;
|
|
382
|
+
questId: string;
|
|
383
|
+
questName: string;
|
|
384
|
+
questAnswer: string | number | null;
|
|
385
|
+
questAnswerName: string | null;
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
type ContragentDocuments = {
|
|
389
|
+
id: number;
|
|
390
|
+
contragentId: number;
|
|
391
|
+
type?: string;
|
|
392
|
+
typeName: string | null;
|
|
393
|
+
serial: string | null;
|
|
394
|
+
number: string | null;
|
|
395
|
+
issueDate: string;
|
|
396
|
+
expireDate: string;
|
|
397
|
+
issuerId: number;
|
|
398
|
+
issuerName: string | null;
|
|
399
|
+
issuerNameRu: string | null;
|
|
400
|
+
description: string | null;
|
|
401
|
+
note: string | null;
|
|
402
|
+
verifyType: string;
|
|
403
|
+
verifyDate: string;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
type ContragentAddress = {
|
|
407
|
+
id: number;
|
|
408
|
+
contragentId: number;
|
|
409
|
+
type?: string;
|
|
410
|
+
address?: string;
|
|
411
|
+
countryCode?: string | number;
|
|
412
|
+
countryName?: string;
|
|
413
|
+
stateCode?: string | number;
|
|
414
|
+
stateName?: string;
|
|
415
|
+
cityCode?: string | number;
|
|
416
|
+
cityName?: string;
|
|
417
|
+
regionCode?: string | number |null;
|
|
418
|
+
regionName?: string | null;
|
|
419
|
+
streetName?: string;
|
|
420
|
+
blockNumber?: string;
|
|
421
|
+
apartmentNumber?: string;
|
|
422
|
+
cityTypeId?: number | null;
|
|
423
|
+
cityTypeName?: string;
|
|
424
|
+
microRaion?: string | null;
|
|
425
|
+
kvartal?: string | null;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
type ContragentContacts = {
|
|
429
|
+
id: number;
|
|
430
|
+
contragentId: number;
|
|
431
|
+
type: string;
|
|
432
|
+
typeName: string;
|
|
433
|
+
value: string | null;
|
|
434
|
+
note: string | null;
|
|
435
|
+
primaryFlag: string;
|
|
436
|
+
newValue: string | null;
|
|
437
|
+
verifyType?: string | null;
|
|
438
|
+
verifyDate?: string | null;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
type AddCoverAnswer = {
|
|
442
|
+
id: string;
|
|
443
|
+
code: string;
|
|
444
|
+
calculatorValue: number;
|
|
445
|
+
nameKz: string;
|
|
446
|
+
nameRu: string;
|
|
447
|
+
isDefault: boolean;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
type PolicyAppDto = {
|
|
451
|
+
id?: string;
|
|
452
|
+
processInstanceId?: string;
|
|
453
|
+
policyId?: number | null;
|
|
454
|
+
policyNumber?: string | null;
|
|
455
|
+
contractDate?: string;
|
|
456
|
+
contractEndDate?: string;
|
|
457
|
+
amount?: number | null;
|
|
458
|
+
premium?: number | null;
|
|
459
|
+
mainCoverPremium?: number;
|
|
460
|
+
currency?: string;
|
|
461
|
+
isSpokesman?: boolean;
|
|
462
|
+
coverPeriod?: number | null;
|
|
463
|
+
payPeriod?: number | null;
|
|
464
|
+
indexRateId?: string | number;
|
|
465
|
+
indexRateCode?: string;
|
|
466
|
+
indexRateName?: string;
|
|
467
|
+
paymentPeriodId?: string | number;
|
|
468
|
+
paymentPeriodName?: string;
|
|
469
|
+
lifeMultiply?: number;
|
|
470
|
+
lifeAdditive?: number;
|
|
471
|
+
adbMultiply?: number;
|
|
472
|
+
adbAdditive?: number;
|
|
473
|
+
disabilityMultiply?: number;
|
|
474
|
+
disabilityAdditive?: number;
|
|
475
|
+
documentSignTypeId?: string;
|
|
476
|
+
documentSignTypeCode?: string;
|
|
477
|
+
documentSignTypeName?: string;
|
|
478
|
+
isDocumentsSigned?: boolean;
|
|
479
|
+
paymentTypeId?: string;
|
|
480
|
+
paymentTypeName?: string;
|
|
481
|
+
isPayed?: boolean;
|
|
482
|
+
underwritingType?: number;
|
|
483
|
+
annualIncome?: number | null;
|
|
484
|
+
calcDirect?: number;
|
|
485
|
+
tariffId?: string;
|
|
486
|
+
tariffName?: string;
|
|
487
|
+
riskGroup?: number;
|
|
488
|
+
riskGroup2?: number;
|
|
489
|
+
lifeMultiplyClient?: number;
|
|
490
|
+
lifeAdditiveClient?: number;
|
|
491
|
+
annuityTypeId?: string;
|
|
492
|
+
annuityTypeName?: string;
|
|
493
|
+
annuityPaymentPeriodId?: string;
|
|
494
|
+
annuityPaymentPeriodName?: string;
|
|
495
|
+
guaranteedPaymentPeriod?: number | null;
|
|
496
|
+
paymentPeriod?: number;
|
|
497
|
+
annuityMonthPay?: number;
|
|
498
|
+
annuityPaymentBeginDate?: string;
|
|
499
|
+
annuityPaymentEndDate?: string;
|
|
500
|
+
amountInCurrency?: number | null;
|
|
501
|
+
premiumInCurrency?: number | null;
|
|
502
|
+
currencyExchangeRate?: number | null;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
type InsisWorkDataApp = {
|
|
506
|
+
id?: string;
|
|
507
|
+
processInstanceId?: string;
|
|
508
|
+
agentId?: number;
|
|
509
|
+
agentName?: string;
|
|
510
|
+
salesChannel?: string;
|
|
511
|
+
salesChannelName?: string;
|
|
512
|
+
insrType?: number;
|
|
513
|
+
saleChanellPolicy?: string;
|
|
514
|
+
saleChanellPolicyName?: string;
|
|
515
|
+
regionPolicy?: string;
|
|
516
|
+
regionPolicyName?: string;
|
|
517
|
+
managerPolicy?: string;
|
|
518
|
+
managerPolicyName?: string;
|
|
519
|
+
insuranceProgramType?: string;
|
|
520
|
+
};
|
|
250
521
|
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<button
|
|
3
|
-
type="button"
|
|
4
|
-
class="transition-all"
|
|
5
|
-
@click="$emit('clicked')"
|
|
6
|
-
:disabled="disabled"
|
|
7
|
-
:class="[
|
|
8
|
-
disabled ? 'disabled' : '',
|
|
9
|
-
classes,
|
|
10
|
-
btn,
|
|
11
|
-
$libStyles[`btnH${$capitalize(size)}` as keyof typeof $libStyles],
|
|
12
|
-
]"
|
|
13
|
-
>
|
|
14
|
-
<i class="mdi" :class="icon"></i>
|
|
15
|
-
</button>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script lang="ts">
|
|
19
|
-
export default defineComponent({
|
|
20
|
-
name: 'BaseBtnIcon',
|
|
21
|
-
props: {
|
|
22
|
-
icon: { type: String, default: 'mdi-arrow-right-variant' },
|
|
23
|
-
size: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: 'md',
|
|
26
|
-
},
|
|
27
|
-
classes: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: '',
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: false,
|
|
34
|
-
},
|
|
35
|
-
btn: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: new Styles().blueBtn,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style scoped>
|
|
44
|
-
.disabled {
|
|
45
|
-
opacity: 0.3;
|
|
46
|
-
}
|
|
47
|
-
</style>
|