hl-core 0.0.10-beta.3 → 0.0.10-beta.31
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/README.md +0 -2
- package/api/base.api.ts +300 -190
- package/api/interceptors.ts +3 -5
- package/components/Complex/TextBlock.vue +2 -0
- package/components/Dialog/Dialog.vue +7 -1
- package/components/Dialog/FamilyDialog.vue +2 -0
- package/components/Form/DigitalDocument.vue +52 -0
- package/components/Form/DynamicForm.vue +1 -0
- package/components/Form/FormData.vue +1 -0
- package/components/Form/ManagerAttachment.vue +17 -8
- package/components/Form/ProductConditionsBlock.vue +12 -6
- package/components/Input/Datepicker.vue +5 -0
- package/components/Input/DynamicInput.vue +2 -0
- package/components/Input/FormInput.vue +7 -0
- package/components/Input/OtpInput.vue +25 -0
- package/components/Input/PanelInput.vue +1 -0
- package/components/Input/RoundedInput.vue +4 -0
- package/components/Input/RoundedSelect.vue +4 -0
- package/components/Input/SwitchInput.vue +2 -0
- package/components/Input/TextInput.vue +2 -0
- package/components/Layout/Drawer.vue +2 -0
- package/components/Pages/Anketa.vue +166 -167
- package/components/Pages/Auth.vue +2 -0
- package/components/Pages/ContragentForm.vue +2 -1
- package/components/Pages/Documents.vue +429 -59
- package/components/Pages/MemberForm.vue +327 -159
- package/components/Pages/ProductConditions.vue +681 -150
- package/components/Panel/PanelHandler.vue +261 -114
- package/components/Transitions/Animation.vue +2 -0
- package/components/Utilities/Chip.vue +3 -1
- package/components/Utilities/JsonViewer.vue +1 -2
- package/composables/classes.ts +133 -42
- package/composables/constants.ts +41 -0
- package/composables/fields.ts +6 -4
- package/composables/index.ts +246 -7
- package/composables/styles.ts +8 -24
- package/configs/pwa.ts +1 -7
- package/layouts/clear.vue +1 -1
- package/layouts/default.vue +1 -1
- package/layouts/full.vue +1 -1
- package/locales/ru.json +44 -14
- package/nuxt.config.ts +10 -13
- package/package.json +13 -12
- package/plugins/head.ts +2 -1
- package/store/data.store.ts +670 -480
- package/store/member.store.ts +18 -6
- package/store/rules.ts +21 -2
- package/tsconfig.json +3 -0
- package/types/enum.ts +20 -2
- package/types/env.d.ts +2 -2
- package/types/form.ts +71 -74
- package/types/index.ts +916 -873
package/composables/classes.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Statuses, StoreMembers, MemberAppCodes } from '../types/enum';
|
|
2
2
|
import { formatDate } from '.';
|
|
3
3
|
import type { RouteLocationNormalized, RouteLocationNormalizedLoaded } from 'vue-router';
|
|
4
|
+
import type * as Types from '../types';
|
|
4
5
|
|
|
5
6
|
type LinkType = Partial<RouteLocationNormalized> | Partial<RouteLocationNormalizedLoaded> | string | null | boolean;
|
|
6
7
|
|
|
@@ -17,7 +18,7 @@ class MenuItemConfig {
|
|
|
17
18
|
disabled?: ComputedRef;
|
|
18
19
|
color?: string;
|
|
19
20
|
show?: ComputedRef;
|
|
20
|
-
chip?: ChipComponent;
|
|
21
|
+
chip?: Types.ChipComponent;
|
|
21
22
|
|
|
22
23
|
constructor(
|
|
23
24
|
id: any = null,
|
|
@@ -32,7 +33,7 @@ class MenuItemConfig {
|
|
|
32
33
|
disabled?: ComputedRef,
|
|
33
34
|
color?: string,
|
|
34
35
|
show?: ComputedRef,
|
|
35
|
-
chip?: ChipComponent,
|
|
36
|
+
chip?: Types.ChipComponent,
|
|
36
37
|
) {
|
|
37
38
|
this.id = id;
|
|
38
39
|
this.title = title;
|
|
@@ -87,6 +88,7 @@ export class IDocument {
|
|
|
87
88
|
iin?: string;
|
|
88
89
|
fileTypeId?: string;
|
|
89
90
|
fileTypeName?: string;
|
|
91
|
+
fileTypeNameRu?: string;
|
|
90
92
|
fileId?: string;
|
|
91
93
|
page?: number;
|
|
92
94
|
fileName?: string;
|
|
@@ -95,6 +97,7 @@ export class IDocument {
|
|
|
95
97
|
signed?: boolean | null;
|
|
96
98
|
signId?: string | null;
|
|
97
99
|
certificateDate?: string | null;
|
|
100
|
+
signedType?: number;
|
|
98
101
|
|
|
99
102
|
constructor(
|
|
100
103
|
id?: string,
|
|
@@ -102,6 +105,7 @@ export class IDocument {
|
|
|
102
105
|
iin?: string,
|
|
103
106
|
fileTypeId?: string,
|
|
104
107
|
fileTypeName?: string,
|
|
108
|
+
fileTypeNameRu?: string,
|
|
105
109
|
fileId?: string,
|
|
106
110
|
page?: number,
|
|
107
111
|
fileName?: string,
|
|
@@ -110,12 +114,14 @@ export class IDocument {
|
|
|
110
114
|
signed?: boolean | null,
|
|
111
115
|
signId?: string | null,
|
|
112
116
|
certificateDate?: string | null,
|
|
117
|
+
signedType?: number,
|
|
113
118
|
) {
|
|
114
119
|
this.id = id;
|
|
115
120
|
this.processInstanceId = processInstanceId;
|
|
116
121
|
this.iin = iin;
|
|
117
122
|
this.fileTypeId = fileTypeId;
|
|
118
123
|
this.fileTypeName = fileTypeName;
|
|
124
|
+
this.fileTypeNameRu = fileTypeNameRu;
|
|
119
125
|
this.fileId = fileId;
|
|
120
126
|
this.page = page;
|
|
121
127
|
this.fileName = fileName;
|
|
@@ -124,14 +130,31 @@ export class IDocument {
|
|
|
124
130
|
this.signed = signed;
|
|
125
131
|
this.signId = signId;
|
|
126
132
|
this.certificateDate = certificateDate;
|
|
133
|
+
this.signedType = signedType;
|
|
127
134
|
}
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
export class DocumentItem extends IDocument {
|
|
131
138
|
constructor(
|
|
132
|
-
{
|
|
139
|
+
{
|
|
140
|
+
id,
|
|
141
|
+
processInstanceId,
|
|
142
|
+
iin,
|
|
143
|
+
fileTypeId,
|
|
144
|
+
fileTypeName,
|
|
145
|
+
fileTypeNameRu,
|
|
146
|
+
fileId,
|
|
147
|
+
page,
|
|
148
|
+
fileName,
|
|
149
|
+
fileTypeCode,
|
|
150
|
+
sharedId,
|
|
151
|
+
signed,
|
|
152
|
+
signId,
|
|
153
|
+
certificateDate,
|
|
154
|
+
signedType,
|
|
155
|
+
}: IDocument = new IDocument(),
|
|
133
156
|
) {
|
|
134
|
-
super(id, processInstanceId, iin, fileTypeId, fileTypeName, fileId, page, fileName, fileTypeCode, sharedId, signed, signId, certificateDate);
|
|
157
|
+
super(id, processInstanceId, iin, fileTypeId, fileTypeName, fileTypeNameRu, fileId, page, fileName, fileTypeCode, sharedId, signed, signId, certificateDate, signedType);
|
|
135
158
|
}
|
|
136
159
|
}
|
|
137
160
|
|
|
@@ -179,13 +202,25 @@ export class User {
|
|
|
179
202
|
roles: string[];
|
|
180
203
|
id: string | null;
|
|
181
204
|
fullName: string | null;
|
|
205
|
+
code: string;
|
|
206
|
+
branchCode: string;
|
|
182
207
|
|
|
183
|
-
constructor(
|
|
208
|
+
constructor(
|
|
209
|
+
login: string | null = null,
|
|
210
|
+
password: string | null = null,
|
|
211
|
+
roles: string[] = [],
|
|
212
|
+
id: string | null = null,
|
|
213
|
+
fullName: string | null = null,
|
|
214
|
+
code: string = '',
|
|
215
|
+
branchCode: string = '',
|
|
216
|
+
) {
|
|
184
217
|
this.login = login;
|
|
185
218
|
this.password = password;
|
|
186
219
|
this.roles = roles;
|
|
187
220
|
this.id = id;
|
|
188
221
|
this.fullName = fullName;
|
|
222
|
+
this.code = code;
|
|
223
|
+
this.branchCode = branchCode;
|
|
189
224
|
}
|
|
190
225
|
|
|
191
226
|
resetUser() {
|
|
@@ -194,6 +229,8 @@ export class User {
|
|
|
194
229
|
this.roles = [];
|
|
195
230
|
this.id = null;
|
|
196
231
|
this.fullName = null;
|
|
232
|
+
this.code = '';
|
|
233
|
+
this.branchCode = '';
|
|
197
234
|
}
|
|
198
235
|
}
|
|
199
236
|
|
|
@@ -383,11 +420,11 @@ export class Contragent extends Person {
|
|
|
383
420
|
|
|
384
421
|
export class Member extends Person {
|
|
385
422
|
response?: {
|
|
386
|
-
contragent?: ContragentType;
|
|
387
|
-
questionnaires?: ContragentQuestionaries[];
|
|
388
|
-
contacts?: ContragentContacts[];
|
|
389
|
-
documents?: ContragentDocuments[];
|
|
390
|
-
addresses?: ContragentAddress[];
|
|
423
|
+
contragent?: Types.ContragentType;
|
|
424
|
+
questionnaires?: Types.ContragentQuestionaries[];
|
|
425
|
+
contacts?: Types.ContragentContacts[];
|
|
426
|
+
documents?: Types.ContragentDocuments[];
|
|
427
|
+
addresses?: Types.ContragentAddress[];
|
|
391
428
|
};
|
|
392
429
|
verifyType: any;
|
|
393
430
|
verifyDate: any;
|
|
@@ -427,7 +464,7 @@ export class Member extends Person {
|
|
|
427
464
|
birthRegion: Value;
|
|
428
465
|
documentType: Value;
|
|
429
466
|
documentNumber: string | null;
|
|
430
|
-
documentIssuers:
|
|
467
|
+
documentIssuers: Types.Base.Document.IssuerOther;
|
|
431
468
|
documentDate: string | null;
|
|
432
469
|
documentExpire: string | null;
|
|
433
470
|
signOfResidency: Value;
|
|
@@ -451,15 +488,16 @@ export class Member extends Person {
|
|
|
451
488
|
_phonePattern: RegExp;
|
|
452
489
|
_emailPattern: RegExp;
|
|
453
490
|
gotFromInsis: boolean | null;
|
|
454
|
-
gosPersonData: Api.GBD.Person | null;
|
|
491
|
+
gosPersonData: Types.Api.GBD.Person | null;
|
|
455
492
|
parsedDocument: any;
|
|
456
493
|
hasAgreement: boolean | null;
|
|
457
494
|
otpTokenId: string | null;
|
|
458
|
-
otpCode: string
|
|
459
|
-
documentsList: ContragentDocuments[];
|
|
495
|
+
otpCode: string;
|
|
496
|
+
documentsList: Types.ContragentDocuments[];
|
|
460
497
|
isInsuredUnderage?: boolean = false;
|
|
461
498
|
bankInfo: BankInfoClass;
|
|
462
499
|
transferContractCompany: Value;
|
|
500
|
+
digitalDocument: IDocument | null;
|
|
463
501
|
identityDocument: {
|
|
464
502
|
documentType: Value;
|
|
465
503
|
documentNumber: string | null;
|
|
@@ -586,7 +624,7 @@ export class Member extends Person {
|
|
|
586
624
|
this.homePhone = homePhone;
|
|
587
625
|
this.email = email;
|
|
588
626
|
this.otpTokenId = null;
|
|
589
|
-
this.otpCode =
|
|
627
|
+
this.otpCode = '';
|
|
590
628
|
this.address = address;
|
|
591
629
|
this.familyStatus = familyStatus;
|
|
592
630
|
this.isTerror = isTerror;
|
|
@@ -604,6 +642,7 @@ export class Member extends Person {
|
|
|
604
642
|
this.hasAgreement = null;
|
|
605
643
|
this.bankInfo = new BankInfoClass();
|
|
606
644
|
this.transferContractCompany = new Value();
|
|
645
|
+
this.digitalDocument = null;
|
|
607
646
|
this.identityDocument = {
|
|
608
647
|
documentType: new Value(),
|
|
609
648
|
documentNumber: null,
|
|
@@ -790,6 +829,7 @@ export class ProductConditions {
|
|
|
790
829
|
fixInsSum: number | string | null;
|
|
791
830
|
calcDate: string | null;
|
|
792
831
|
contractEndDate: string | null;
|
|
832
|
+
currency: Value;
|
|
793
833
|
|
|
794
834
|
constructor(
|
|
795
835
|
insuranceCase = null,
|
|
@@ -838,6 +878,7 @@ export class ProductConditions {
|
|
|
838
878
|
fixInsSum = null,
|
|
839
879
|
calcDate = null,
|
|
840
880
|
contractEndDate = null,
|
|
881
|
+
currency = new Value(),
|
|
841
882
|
) {
|
|
842
883
|
this.requestedSumInsuredInDollar = null;
|
|
843
884
|
this.insurancePremiumPerMonthInDollar = null;
|
|
@@ -890,6 +931,13 @@ export class ProductConditions {
|
|
|
890
931
|
this.fixInsSum = fixInsSum;
|
|
891
932
|
this.calcDate = calcDate;
|
|
892
933
|
this.contractEndDate = contractEndDate;
|
|
934
|
+
this.currency = {
|
|
935
|
+
code: 'KZT',
|
|
936
|
+
id: '1',
|
|
937
|
+
nameKz: 'Тенге',
|
|
938
|
+
nameRu: 'Тенге',
|
|
939
|
+
ids: '',
|
|
940
|
+
};
|
|
893
941
|
}
|
|
894
942
|
|
|
895
943
|
getSingleTripDays() {
|
|
@@ -928,7 +976,7 @@ export class MemberSettings {
|
|
|
928
976
|
}
|
|
929
977
|
|
|
930
978
|
export class DataStoreClass {
|
|
931
|
-
projectConfig: Utils.ProjectConfig | null;
|
|
979
|
+
projectConfig: Types.Utils.ProjectConfig | null;
|
|
932
980
|
// IMP Контроллер фич
|
|
933
981
|
controls: {
|
|
934
982
|
// Cтавит значения по дефолту полям
|
|
@@ -973,7 +1021,7 @@ export class DataStoreClass {
|
|
|
973
1021
|
};
|
|
974
1022
|
iframeLoading: boolean;
|
|
975
1023
|
hasLayoutMargins: boolean;
|
|
976
|
-
readonly product: Projects | null;
|
|
1024
|
+
readonly product: Types.Projects | null;
|
|
977
1025
|
readonly parentProduct: 'efo' | 'auletti';
|
|
978
1026
|
showNav: boolean;
|
|
979
1027
|
showDisabledMessage: boolean;
|
|
@@ -1016,7 +1064,7 @@ export class DataStoreClass {
|
|
|
1016
1064
|
historyTotalItems: number;
|
|
1017
1065
|
isColumnAsc = { ...InitialColumns() };
|
|
1018
1066
|
idleKey: number;
|
|
1019
|
-
processList: Item[] | null;
|
|
1067
|
+
processList: Types.Item[] | null;
|
|
1020
1068
|
countries: Value[];
|
|
1021
1069
|
citizenshipCountries: Value[];
|
|
1022
1070
|
taxCountries: Value[];
|
|
@@ -1045,7 +1093,6 @@ export class DataStoreClass {
|
|
|
1045
1093
|
fontSize: number;
|
|
1046
1094
|
isFontChangerOpen: boolean = false;
|
|
1047
1095
|
isLoading: boolean = false;
|
|
1048
|
-
user: User;
|
|
1049
1096
|
accessToken: string | null = null;
|
|
1050
1097
|
refreshToken: string | null = null;
|
|
1051
1098
|
processIndexRate: Value[];
|
|
@@ -1053,18 +1100,18 @@ export class DataStoreClass {
|
|
|
1053
1100
|
processPaymentPeriod: Value[];
|
|
1054
1101
|
dicAnnuityTypeList: Value[];
|
|
1055
1102
|
processAnnuityPaymentPeriod: Value[];
|
|
1056
|
-
taskList: TaskListItem[];
|
|
1057
|
-
processHistory: TaskHistory[];
|
|
1058
|
-
contragentList: ContragentType[];
|
|
1103
|
+
taskList: Types.TaskListItem[];
|
|
1104
|
+
processHistory: Types.TaskHistory[];
|
|
1105
|
+
contragentList: Types.ContragentType[];
|
|
1059
1106
|
contragentFormKey: string;
|
|
1060
1107
|
processCode: number | null;
|
|
1061
1108
|
groupCode: string;
|
|
1062
|
-
userGroups: Item[];
|
|
1109
|
+
userGroups: Types.Item[];
|
|
1063
1110
|
onMainPage: boolean;
|
|
1064
1111
|
SaleChanellPolicy: Value[];
|
|
1065
1112
|
RegionPolicy: Value[];
|
|
1066
1113
|
ManagerPolicy: Value[];
|
|
1067
|
-
AgentData: AgentData[];
|
|
1114
|
+
AgentData: Types.AgentData[];
|
|
1068
1115
|
riskGroup: Value[];
|
|
1069
1116
|
DicCoverTypePeriod: Value[];
|
|
1070
1117
|
currencies: {
|
|
@@ -1148,7 +1195,7 @@ export class DataStoreClass {
|
|
|
1148
1195
|
this.ManagerPolicy = [];
|
|
1149
1196
|
this.AgentData = [];
|
|
1150
1197
|
this.DicCoverTypePeriod = [];
|
|
1151
|
-
this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Projects) : null;
|
|
1198
|
+
this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Types.Projects) : null;
|
|
1152
1199
|
this.parentProduct = import.meta.env.VITE_PARENT_PRODUCT ? import.meta.env.VITE_PARENT_PRODUCT : 'efo';
|
|
1153
1200
|
this.showNav = true;
|
|
1154
1201
|
this.showDisabledMessage = false;
|
|
@@ -1229,7 +1276,6 @@ export class DataStoreClass {
|
|
|
1229
1276
|
this.fontSize = 14;
|
|
1230
1277
|
this.isFontChangerOpen = false;
|
|
1231
1278
|
this.isLoading = false;
|
|
1232
|
-
this.user = new User();
|
|
1233
1279
|
this.accessToken = null;
|
|
1234
1280
|
this.refreshToken = null;
|
|
1235
1281
|
this.taskList = [];
|
|
@@ -1300,10 +1346,10 @@ export class FormStoreClass {
|
|
|
1300
1346
|
isUploadedSignedContract: boolean;
|
|
1301
1347
|
signedContractFormData: any;
|
|
1302
1348
|
lfb: {
|
|
1303
|
-
clients: ClientV2[];
|
|
1349
|
+
clients: Types.ClientV2[];
|
|
1304
1350
|
policyholder: PolicyholderClass;
|
|
1305
1351
|
hasAccidentIncidents: boolean;
|
|
1306
|
-
accidentIncidents: AccidentIncidents[];
|
|
1352
|
+
accidentIncidents: Types.AccidentIncidents[];
|
|
1307
1353
|
policyholderActivities: PolicyholderActivity[];
|
|
1308
1354
|
beneficialOwners: BeneficialOwner[];
|
|
1309
1355
|
beneficialOwnersIndex: number;
|
|
@@ -1311,12 +1357,14 @@ export class FormStoreClass {
|
|
|
1311
1357
|
clientId: string | null;
|
|
1312
1358
|
insuredFile: any;
|
|
1313
1359
|
isPanelInside: boolean;
|
|
1360
|
+
typeChange: string;
|
|
1361
|
+
add: boolean;
|
|
1314
1362
|
};
|
|
1315
|
-
additionalInsuranceTerms: AddCover[];
|
|
1316
|
-
additionalInsuranceTermsWithout: AddCover[];
|
|
1317
|
-
signUrls: SignUrlType[];
|
|
1363
|
+
additionalInsuranceTerms: Types.AddCover[];
|
|
1364
|
+
additionalInsuranceTermsWithout: Types.AddCover[];
|
|
1365
|
+
signUrls: Types.SignUrlType[];
|
|
1318
1366
|
epayLink: string | null;
|
|
1319
|
-
invoiceData: EpayResponse | null;
|
|
1367
|
+
invoiceData: Types.EpayResponse | null;
|
|
1320
1368
|
affilationResolution: {
|
|
1321
1369
|
id: string | number | null;
|
|
1322
1370
|
processInstanceId: string | number | null;
|
|
@@ -1329,19 +1377,20 @@ export class FormStoreClass {
|
|
|
1329
1377
|
date: string | null;
|
|
1330
1378
|
};
|
|
1331
1379
|
signedDocumentList: IDocument[];
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1380
|
+
signatories: any[];
|
|
1381
|
+
surveyByHealthBase: Types.AnketaFirst | null;
|
|
1382
|
+
surveyByHealthBasePolicyholder: Types.AnketaFirst | null;
|
|
1383
|
+
surveyByCriticalBase: Types.AnketaFirst | null;
|
|
1384
|
+
surveyByCriticalBasePolicyholder: Types.AnketaFirst | null;
|
|
1336
1385
|
definedAnswersId: {
|
|
1337
1386
|
surveyByHealthBase: any;
|
|
1338
1387
|
surveyByCriticalBase: any;
|
|
1339
1388
|
surveyByHealthBasePolicyholder: any;
|
|
1340
1389
|
surveyByCriticalBasePolicyholder: any;
|
|
1341
1390
|
};
|
|
1342
|
-
birthInfos: Api.GKB.BirthInfo[];
|
|
1391
|
+
birthInfos: Types.Api.GKB.BirthInfo[];
|
|
1343
1392
|
SaleChanellPolicy: Value;
|
|
1344
|
-
AgentData: AgentData;
|
|
1393
|
+
AgentData: Types.AgentData;
|
|
1345
1394
|
RegionPolicy: Value;
|
|
1346
1395
|
ManagerPolicy: Value;
|
|
1347
1396
|
isDisabled: {
|
|
@@ -1349,6 +1398,7 @@ export class FormStoreClass {
|
|
|
1349
1398
|
beneficiaryForm: boolean;
|
|
1350
1399
|
beneficialOwnerForm: boolean;
|
|
1351
1400
|
insuredForm: boolean;
|
|
1401
|
+
slaveInsuredForm: boolean;
|
|
1352
1402
|
policyholdersRepresentativeForm: boolean;
|
|
1353
1403
|
productConditionsForm: boolean;
|
|
1354
1404
|
calculatorForm: boolean;
|
|
@@ -1380,9 +1430,11 @@ export class FormStoreClass {
|
|
|
1380
1430
|
spokesmanApp?: any;
|
|
1381
1431
|
isTask?: boolean | null;
|
|
1382
1432
|
createDate?: string | null;
|
|
1383
|
-
policyAppDto?: PolicyAppDto;
|
|
1384
|
-
|
|
1385
|
-
|
|
1433
|
+
policyAppDto?: Types.PolicyAppDto;
|
|
1434
|
+
parentPolicyDto?: Types.ParentPolicyDto | null;
|
|
1435
|
+
insisWorkDataApp?: Types.InsisWorkDataApp;
|
|
1436
|
+
addCoverDto?: Types.AddCover[];
|
|
1437
|
+
slave?: any;
|
|
1386
1438
|
};
|
|
1387
1439
|
policyholderForm: Member;
|
|
1388
1440
|
policyholderFormKey: StoreMembers.policyholderForm;
|
|
@@ -1395,14 +1447,17 @@ export class FormStoreClass {
|
|
|
1395
1447
|
beneficialOwnerFormIndex: number;
|
|
1396
1448
|
beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
|
|
1397
1449
|
insuredForm: Member[];
|
|
1450
|
+
slaveInsuredForm: Member;
|
|
1398
1451
|
insuredFormKey: StoreMembers.insuredForm;
|
|
1399
1452
|
insuredFormIndex: number;
|
|
1400
1453
|
productConditionsForm: ProductConditions;
|
|
1401
1454
|
productConditionsFormKey: string;
|
|
1455
|
+
pensionApp: any;
|
|
1402
1456
|
questionnaireByHealth: any;
|
|
1403
1457
|
questionnaireByCritical: any[];
|
|
1404
1458
|
canBeClaimed: boolean | null;
|
|
1405
1459
|
applicationTaskId: string | null;
|
|
1460
|
+
requiredDocuments: RequiredDocument[];
|
|
1406
1461
|
|
|
1407
1462
|
constructor() {
|
|
1408
1463
|
this.regNumber = null;
|
|
@@ -1424,6 +1479,8 @@ export class FormStoreClass {
|
|
|
1424
1479
|
clientId: null,
|
|
1425
1480
|
insuredFile: null,
|
|
1426
1481
|
isPanelInside: false,
|
|
1482
|
+
typeChange: 'calculation',
|
|
1483
|
+
add: false,
|
|
1427
1484
|
};
|
|
1428
1485
|
this.additionalInsuranceTerms = [];
|
|
1429
1486
|
this.additionalInsuranceTermsWithout = [];
|
|
@@ -1442,6 +1499,7 @@ export class FormStoreClass {
|
|
|
1442
1499
|
date: null,
|
|
1443
1500
|
};
|
|
1444
1501
|
this.signedDocumentList = [];
|
|
1502
|
+
this.signatories = [];
|
|
1445
1503
|
this.surveyByHealthBase = null;
|
|
1446
1504
|
this.surveyByHealthBasePolicyholder = null;
|
|
1447
1505
|
this.surveyByCriticalBase = null;
|
|
@@ -1470,6 +1528,7 @@ export class FormStoreClass {
|
|
|
1470
1528
|
beneficiaryForm: true,
|
|
1471
1529
|
beneficialOwnerForm: true,
|
|
1472
1530
|
insuredForm: true,
|
|
1531
|
+
slaveInsuredForm: true,
|
|
1473
1532
|
policyholdersRepresentativeForm: true,
|
|
1474
1533
|
productConditionsForm: true,
|
|
1475
1534
|
calculatorForm: true,
|
|
@@ -1498,6 +1557,7 @@ export class FormStoreClass {
|
|
|
1498
1557
|
this.beneficialOwnerFormIndex = 0;
|
|
1499
1558
|
this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
|
|
1500
1559
|
this.insuredForm = [new Member()];
|
|
1560
|
+
this.slaveInsuredForm = new Member();
|
|
1501
1561
|
this.insuredFormKey = StoreMembers.insuredForm;
|
|
1502
1562
|
this.insuredFormIndex = 0;
|
|
1503
1563
|
this.productConditionsForm = new ProductConditions();
|
|
@@ -1506,6 +1566,7 @@ export class FormStoreClass {
|
|
|
1506
1566
|
this.questionnaireByCritical = [];
|
|
1507
1567
|
this.canBeClaimed = null;
|
|
1508
1568
|
this.applicationTaskId = null;
|
|
1569
|
+
this.requiredDocuments = [];
|
|
1509
1570
|
}
|
|
1510
1571
|
}
|
|
1511
1572
|
|
|
@@ -1649,7 +1710,7 @@ export class GroupMember extends PhysGroupClass {
|
|
|
1649
1710
|
activityTypes: { activityTypeName: string; empoloyeeCount: number }[];
|
|
1650
1711
|
beneficalOwnerQuest: { order: number; text: string; answer: boolean | null }[];
|
|
1651
1712
|
authoritedPerson: PhysGroupClass;
|
|
1652
|
-
insuredPolicyData: InsuredPolicyType;
|
|
1713
|
+
insuredPolicyData: Types.InsuredPolicyType;
|
|
1653
1714
|
|
|
1654
1715
|
constructor() {
|
|
1655
1716
|
super();
|
|
@@ -1734,3 +1795,33 @@ export class BeneficialOwner {
|
|
|
1734
1795
|
this.id = '';
|
|
1735
1796
|
}
|
|
1736
1797
|
}
|
|
1798
|
+
|
|
1799
|
+
export class TransferContract {
|
|
1800
|
+
id: string | null;
|
|
1801
|
+
transferContractIsOppv: boolean;
|
|
1802
|
+
transferContractFirstPaymentDate: string;
|
|
1803
|
+
transferContractAmount: number | string;
|
|
1804
|
+
transferContractDate: string;
|
|
1805
|
+
transferContractNumber: string;
|
|
1806
|
+
transferContractRegNumber: string;
|
|
1807
|
+
transferContract: boolean;
|
|
1808
|
+
transferContractCompany: Value;
|
|
1809
|
+
transferContractMonthCount: number | null;
|
|
1810
|
+
|
|
1811
|
+
constructor() {
|
|
1812
|
+
this.id = null;
|
|
1813
|
+
this.transferContractIsOppv = false;
|
|
1814
|
+
this.transferContractFirstPaymentDate = '';
|
|
1815
|
+
this.transferContractAmount = 0;
|
|
1816
|
+
this.transferContractDate = '';
|
|
1817
|
+
this.transferContractNumber = '';
|
|
1818
|
+
this.transferContract = false;
|
|
1819
|
+
this.transferContractRegNumber = '';
|
|
1820
|
+
this.transferContractCompany = new Value();
|
|
1821
|
+
this.transferContractMonthCount = null;
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
export class RequiredDocument extends Value {
|
|
1826
|
+
iin: string = '';
|
|
1827
|
+
}
|
package/composables/constants.ts
CHANGED
|
@@ -18,6 +18,11 @@ export const constants = Object.freeze({
|
|
|
18
18
|
gns: 16,
|
|
19
19
|
prepensionannuity: 18,
|
|
20
20
|
pensionannuitynew: 19,
|
|
21
|
+
halykkazynaap: 20,
|
|
22
|
+
balam: 21,
|
|
23
|
+
halykkazynaapsms: 23,
|
|
24
|
+
pensionannuityrefundnew: 24,
|
|
25
|
+
pensionannuityjointnew: 25,
|
|
21
26
|
},
|
|
22
27
|
amlProducts: {
|
|
23
28
|
checkcontragent: 1,
|
|
@@ -36,6 +41,7 @@ export const constants = Object.freeze({
|
|
|
36
41
|
returnStatementStatuses: [
|
|
37
42
|
Statuses.ApproveForm,
|
|
38
43
|
Statuses.ActuaryForm,
|
|
44
|
+
Statuses.JuristForm,
|
|
39
45
|
Statuses.DsoUsnsForm,
|
|
40
46
|
Statuses.AccountantForm,
|
|
41
47
|
Statuses.UnderwriterForm,
|
|
@@ -74,6 +80,20 @@ export const constants = Object.freeze({
|
|
|
74
80
|
kzt: '₸',
|
|
75
81
|
usd: '$',
|
|
76
82
|
},
|
|
83
|
+
pensionAge: {
|
|
84
|
+
man: 63,
|
|
85
|
+
woman: 61,
|
|
86
|
+
},
|
|
87
|
+
genderByIIN: {
|
|
88
|
+
'0': 'Ж',
|
|
89
|
+
'3': 'М',
|
|
90
|
+
'4': 'Ж',
|
|
91
|
+
'5': 'М',
|
|
92
|
+
'6': 'Ж',
|
|
93
|
+
'7': 'М',
|
|
94
|
+
'8': 'Ж',
|
|
95
|
+
'9': 'М',
|
|
96
|
+
},
|
|
77
97
|
documentTypes: {
|
|
78
98
|
statement: 5,
|
|
79
99
|
contract: 6,
|
|
@@ -87,6 +107,11 @@ export const constants = Object.freeze({
|
|
|
87
107
|
questionnaireInsured: 35,
|
|
88
108
|
invoicePayment: 36,
|
|
89
109
|
},
|
|
110
|
+
fileTypes: {
|
|
111
|
+
pdf: 'application/pdf',
|
|
112
|
+
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
113
|
+
doc: 'application/msword',
|
|
114
|
+
},
|
|
90
115
|
regex: {
|
|
91
116
|
isoDate: /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/,
|
|
92
117
|
},
|
|
@@ -162,4 +187,20 @@ export const constants = Object.freeze({
|
|
|
162
187
|
ids: '',
|
|
163
188
|
},
|
|
164
189
|
],
|
|
190
|
+
currencyList: [
|
|
191
|
+
{
|
|
192
|
+
code: 'KZT',
|
|
193
|
+
id: '1',
|
|
194
|
+
nameKz: 'Тенге',
|
|
195
|
+
nameRu: 'Тенге',
|
|
196
|
+
ids: '',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
code: 'USD',
|
|
200
|
+
id: '2',
|
|
201
|
+
nameKz: 'С индексацией на курс USD',
|
|
202
|
+
nameRu: 'С индексацией на курс USD',
|
|
203
|
+
ids: '',
|
|
204
|
+
},
|
|
205
|
+
],
|
|
165
206
|
});
|
package/composables/fields.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { i18n } from '../configs/i18n';
|
|
2
|
-
import { FieldTypes } from '../types/form';
|
|
2
|
+
import { FieldTypes, type InputBase, type InputType } from '../types/form';
|
|
3
3
|
import { type ComputedRefWithControl } from '@vueuse/core';
|
|
4
|
+
import type { Utils } from '../types';
|
|
5
|
+
import type * as Types from '../types/form';
|
|
4
6
|
|
|
5
7
|
const t = i18n.t;
|
|
6
8
|
|
|
@@ -37,14 +39,14 @@ export const FieldBase = ({
|
|
|
37
39
|
fetchFrom,
|
|
38
40
|
}) as InputBase;
|
|
39
41
|
|
|
40
|
-
export const TextInput = ({ ...rest }: Partial<TextInput>): TextInput => {
|
|
42
|
+
export const TextInput = ({ ...rest }: Partial<Types.TextInput>): Types.TextInput => {
|
|
41
43
|
return {
|
|
42
44
|
...FieldBase(rest),
|
|
43
45
|
type: FieldTypes.TEXT,
|
|
44
46
|
};
|
|
45
47
|
};
|
|
46
48
|
|
|
47
|
-
export const SwitchInput = ({ ...rest }: Partial<SwitchInput>): SwitchInput => {
|
|
49
|
+
export const SwitchInput = ({ ...rest }: Partial<Types.SwitchInput>): Types.SwitchInput => {
|
|
48
50
|
return {
|
|
49
51
|
...FieldBase(rest),
|
|
50
52
|
type: FieldTypes.SWITCH,
|
|
@@ -55,7 +57,7 @@ export const SwitchInput = ({ ...rest }: Partial<SwitchInput>): SwitchInput => {
|
|
|
55
57
|
};
|
|
56
58
|
};
|
|
57
59
|
|
|
58
|
-
export const NumberInput = ({ ...rest }: Partial<NumberInput>): NumberInput => {
|
|
60
|
+
export const NumberInput = ({ ...rest }: Partial<Types.NumberInput>): Types.NumberInput => {
|
|
59
61
|
return {
|
|
60
62
|
...FieldBase(rest),
|
|
61
63
|
type: FieldTypes.NUMBER,
|