hl-core 0.0.9-beta.16 → 0.0.9-beta.18
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/base.api.ts +62 -2
- package/api/index.ts +1 -2
- package/api/interceptors.ts +30 -0
- package/components/Form/ProductConditionsBlock.vue +59 -6
- package/components/Input/PanelInput.vue +5 -1
- package/components/Pages/MemberForm.vue +164 -23
- package/components/Pages/ProductConditions.vue +520 -108
- package/components/Panel/PanelHandler.vue +12 -0
- package/components/Panel/PanelSelectItem.vue +17 -2
- package/composables/classes.ts +253 -0
- package/composables/constants.ts +37 -0
- package/composables/index.ts +13 -3
- package/locales/ru.json +64 -11
- package/package.json +1 -1
- package/store/data.store.ts +395 -111
- package/store/form.store.ts +11 -1
- package/store/member.store.ts +1 -1
- package/store/rules.ts +25 -0
- package/types/index.ts +94 -5
- package/api/efo.api.ts +0 -27
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
>{{ `Запрашиваемая страховая сумма: ` }} <b>{{ `${requestedSumInsured}₸` }}</b>
|
|
18
18
|
</span>
|
|
19
19
|
</base-content-block>
|
|
20
|
+
<base-content-block v-if="$dataStore.isLifetrip" class="flex flex-col gap-3">
|
|
21
|
+
<span
|
|
22
|
+
>{{ `Стоимость на страховую сумму ${insuredAmount}:` }} <b>{{ `${price}₸` }}</b></span
|
|
23
|
+
>
|
|
24
|
+
</base-content-block>
|
|
20
25
|
<base-btn :text="$dataStore.t('confirm.yes')" @click="handleTask" />
|
|
21
26
|
<base-btn :btn="$styles.blueLightBtn" :text="$dataStore.t('confirm.no')" @click="closePanel" />
|
|
22
27
|
</div>
|
|
@@ -291,7 +296,12 @@ export default defineComponent({
|
|
|
291
296
|
const paymentPeriod = computed(() => formStore.productConditionsForm.paymentPeriod.nameRu);
|
|
292
297
|
const insurancePremiumPerMonth = computed(() => dataStore.getNumberWithSpaces(formStore.productConditionsForm.insurancePremiumPerMonth));
|
|
293
298
|
const requestedSumInsured = computed(() => dataStore.getNumberWithSpaces(formStore.productConditionsForm.requestedSumInsured));
|
|
299
|
+
const price = computed(() => dataStore.getNumberWithSpaces(formStore.productConditionsForm.calculatorForm.price));
|
|
300
|
+
const insuredAmount = computed(() => formStore.productConditionsForm.calculatorForm.amount!.nameRu! + dataStore.currency);
|
|
294
301
|
const hasConditionsInfo = computed(() => {
|
|
302
|
+
if (dataStore.isLifetrip) {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
295
305
|
if (dataStore.isFinCenter()) {
|
|
296
306
|
return false;
|
|
297
307
|
}
|
|
@@ -328,6 +338,8 @@ export default defineComponent({
|
|
|
328
338
|
requestedSumInsured,
|
|
329
339
|
affiliationDocument,
|
|
330
340
|
hasConditionsInfo,
|
|
341
|
+
price,
|
|
342
|
+
insuredAmount,
|
|
331
343
|
templateAction,
|
|
332
344
|
};
|
|
333
345
|
},
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="transition-all flex justify-between p-4 items-center cursor-pointer"
|
|
4
|
+
:class="[$styles.rounded, $styles.blueBgLight, $styles.blueBgLightHover, disabled ? $styles.disabled : '']"
|
|
5
|
+
>
|
|
3
6
|
<span :class="[$styles.textSimple]">{{ text }}</span>
|
|
4
|
-
<i class="mdi text-xl" :class="[selected ?
|
|
7
|
+
<i class="mdi text-xl" :class="[selected ? `${trueIcon} ${$styles.greenText}` : `${falseIcon} text-[#636363]`]"></i>
|
|
5
8
|
</div>
|
|
6
9
|
</template>
|
|
7
10
|
|
|
@@ -15,6 +18,18 @@ export default defineComponent({
|
|
|
15
18
|
type: Boolean,
|
|
16
19
|
default: false,
|
|
17
20
|
},
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false,
|
|
24
|
+
},
|
|
25
|
+
trueIcon: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: 'mdi-radiobox-marked',
|
|
28
|
+
},
|
|
29
|
+
falseIcon: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: 'mdi-radiobox-blank ',
|
|
32
|
+
},
|
|
18
33
|
},
|
|
19
34
|
});
|
|
20
35
|
</script>
|
package/composables/classes.ts
CHANGED
|
@@ -71,6 +71,13 @@ export class Value {
|
|
|
71
71
|
this.ids = ids;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
export class CountryValue extends Value {
|
|
75
|
+
countryTypeCode: string | number | null;
|
|
76
|
+
constructor(countryTypeCode = null, ...args: any) {
|
|
77
|
+
super(...args);
|
|
78
|
+
this.countryTypeCode = countryTypeCode;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
74
81
|
|
|
75
82
|
export class IDocument {
|
|
76
83
|
id?: string;
|
|
@@ -194,6 +201,8 @@ class Person {
|
|
|
194
201
|
longName: string | null;
|
|
195
202
|
lastName: string | null;
|
|
196
203
|
firstName: string | null;
|
|
204
|
+
firstNameLat?: string | null;
|
|
205
|
+
lastNameLat?: string | null;
|
|
197
206
|
middleName: string | null;
|
|
198
207
|
birthDate: string | null;
|
|
199
208
|
gender: Value;
|
|
@@ -442,6 +451,7 @@ export class Member extends Person {
|
|
|
442
451
|
otpTokenId: string | null;
|
|
443
452
|
otpCode: string | null;
|
|
444
453
|
documentsList: ContragentDocuments[];
|
|
454
|
+
isInsuredUnderage?: boolean = false;
|
|
445
455
|
constructor(
|
|
446
456
|
id = 0,
|
|
447
457
|
type = 1,
|
|
@@ -660,6 +670,43 @@ export class Member extends Person {
|
|
|
660
670
|
}
|
|
661
671
|
}
|
|
662
672
|
|
|
673
|
+
export class CalculatorForm {
|
|
674
|
+
country: Value;
|
|
675
|
+
countries: CountryValue[] | null;
|
|
676
|
+
purpose: Value;
|
|
677
|
+
workType: Value;
|
|
678
|
+
sportsType: Value;
|
|
679
|
+
type: Value;
|
|
680
|
+
days: string | number | null;
|
|
681
|
+
maxDays: Value;
|
|
682
|
+
age: string | null;
|
|
683
|
+
price: string | null;
|
|
684
|
+
professionType: Value;
|
|
685
|
+
amount: Value;
|
|
686
|
+
startDate: string | null;
|
|
687
|
+
endDate: string | null;
|
|
688
|
+
period: Value;
|
|
689
|
+
currency: string | null;
|
|
690
|
+
constructor() {
|
|
691
|
+
this.country = new Value();
|
|
692
|
+
this.countries = [];
|
|
693
|
+
this.purpose = new Value();
|
|
694
|
+
this.workType = new Value();
|
|
695
|
+
this.sportsType = new Value();
|
|
696
|
+
this.type = new Value();
|
|
697
|
+
this.days = null;
|
|
698
|
+
this.maxDays = new Value();
|
|
699
|
+
this.age = null;
|
|
700
|
+
this.price = null;
|
|
701
|
+
this.professionType = new Value();
|
|
702
|
+
this.amount = new Value();
|
|
703
|
+
this.startDate = null;
|
|
704
|
+
this.endDate = null;
|
|
705
|
+
this.period = new Value();
|
|
706
|
+
this.currency = null;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
663
710
|
export class ProductConditions {
|
|
664
711
|
signDate: string | null;
|
|
665
712
|
birthDate: string | null;
|
|
@@ -705,6 +752,7 @@ export class ProductConditions {
|
|
|
705
752
|
totalAmount7: number | string | null;
|
|
706
753
|
statePremium5: number | string | null;
|
|
707
754
|
statePremium7: number | string | null;
|
|
755
|
+
calculatorForm: CalculatorForm;
|
|
708
756
|
constructor(
|
|
709
757
|
insuranceCase = null,
|
|
710
758
|
coverPeriod = null,
|
|
@@ -745,6 +793,7 @@ export class ProductConditions {
|
|
|
745
793
|
totalAmount7 = null,
|
|
746
794
|
statePremium5 = null,
|
|
747
795
|
statePremium7 = null,
|
|
796
|
+
calculatorForm = new CalculatorForm(),
|
|
748
797
|
) {
|
|
749
798
|
this.requestedSumInsuredInDollar = null;
|
|
750
799
|
this.insurancePremiumPerMonthInDollar = null;
|
|
@@ -790,6 +839,20 @@ export class ProductConditions {
|
|
|
790
839
|
this.totalAmount7 = totalAmount7;
|
|
791
840
|
this.statePremium5 = statePremium5;
|
|
792
841
|
this.statePremium7 = statePremium7;
|
|
842
|
+
this.calculatorForm = calculatorForm;
|
|
843
|
+
}
|
|
844
|
+
getSingleTripDays() {
|
|
845
|
+
if (this.calculatorForm.startDate && this.calculatorForm.endDate) {
|
|
846
|
+
const date1 = formatDate(this.calculatorForm.startDate);
|
|
847
|
+
const date2 = formatDate(this.calculatorForm.endDate);
|
|
848
|
+
if (date1 && date2) {
|
|
849
|
+
const days = Math.ceil((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24)) + 1;
|
|
850
|
+
if (days > 0) {
|
|
851
|
+
return days;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return null;
|
|
793
856
|
}
|
|
794
857
|
}
|
|
795
858
|
|
|
@@ -819,6 +882,9 @@ export class DataStoreClass {
|
|
|
819
882
|
setDefaults: {
|
|
820
883
|
sectorCode: boolean;
|
|
821
884
|
percentage: boolean;
|
|
885
|
+
signOfResidency: boolean;
|
|
886
|
+
countryOfTaxResidency: boolean;
|
|
887
|
+
countryOfCitizenship: boolean;
|
|
822
888
|
};
|
|
823
889
|
// Проверка на роль при авторизации
|
|
824
890
|
onAuth: boolean;
|
|
@@ -896,6 +962,8 @@ export class DataStoreClass {
|
|
|
896
962
|
documentIssuers: Value[];
|
|
897
963
|
familyStatuses: Value[];
|
|
898
964
|
relations: Value[];
|
|
965
|
+
banks: Value[];
|
|
966
|
+
processTariff: Value[];
|
|
899
967
|
insurancePay: Value[];
|
|
900
968
|
questionRefs: Value[];
|
|
901
969
|
residents: Value[];
|
|
@@ -933,6 +1001,17 @@ export class DataStoreClass {
|
|
|
933
1001
|
show: (item: MenuItem) => boolean;
|
|
934
1002
|
disabled: (item: MenuItem) => boolean;
|
|
935
1003
|
};
|
|
1004
|
+
amountArray: Value[];
|
|
1005
|
+
currency: string | number | null;
|
|
1006
|
+
periodArray: Value[];
|
|
1007
|
+
maxDaysAllArray: Value[];
|
|
1008
|
+
maxDaysFiltered: Value[];
|
|
1009
|
+
dicAllCountries: CountryValue[];
|
|
1010
|
+
dicCountries: CountryValue[];
|
|
1011
|
+
types: Value[];
|
|
1012
|
+
workTypes: Value[];
|
|
1013
|
+
sportsTypes: Value[];
|
|
1014
|
+
purposes: Value[];
|
|
936
1015
|
constructor() {
|
|
937
1016
|
this.filters = {
|
|
938
1017
|
show: (item: MenuItem) => {
|
|
@@ -963,6 +1042,9 @@ export class DataStoreClass {
|
|
|
963
1042
|
setDefaults: {
|
|
964
1043
|
sectorCode: true,
|
|
965
1044
|
percentage: true,
|
|
1045
|
+
signOfResidency: false,
|
|
1046
|
+
countryOfTaxResidency: false,
|
|
1047
|
+
countryOfCitizenship: false,
|
|
966
1048
|
},
|
|
967
1049
|
onAuth: false,
|
|
968
1050
|
hasAnketa: true,
|
|
@@ -1037,6 +1119,8 @@ export class DataStoreClass {
|
|
|
1037
1119
|
this.documentIssuers = [];
|
|
1038
1120
|
this.familyStatuses = [];
|
|
1039
1121
|
this.relations = [];
|
|
1122
|
+
this.processTariff = [];
|
|
1123
|
+
this.banks = [];
|
|
1040
1124
|
this.insurancePay = [];
|
|
1041
1125
|
this.residents = [];
|
|
1042
1126
|
this.ipdl = [new Value(1, null), new Value(2, 'Да'), new Value(3, 'Нет')];
|
|
@@ -1093,10 +1177,31 @@ export class DataStoreClass {
|
|
|
1093
1177
|
ids: '',
|
|
1094
1178
|
},
|
|
1095
1179
|
];
|
|
1180
|
+
this.amountArray = [];
|
|
1181
|
+
this.currency = null;
|
|
1182
|
+
this.maxDaysAllArray = [];
|
|
1183
|
+
this.periodArray = [];
|
|
1184
|
+
this.maxDaysFiltered = [];
|
|
1185
|
+
this.dicCountries = [];
|
|
1186
|
+
this.dicAllCountries = [];
|
|
1187
|
+
this.types = [];
|
|
1188
|
+
this.purposes = [];
|
|
1189
|
+
this.workTypes = [];
|
|
1190
|
+
this.sportsTypes = [];
|
|
1096
1191
|
}
|
|
1097
1192
|
}
|
|
1098
1193
|
|
|
1099
1194
|
export class FormStoreClass {
|
|
1195
|
+
lfb: {
|
|
1196
|
+
insurers: ClientV2[];
|
|
1197
|
+
fixInsAmount: Value[];
|
|
1198
|
+
policyholder: PolicyholderV2;
|
|
1199
|
+
toggleAccidents: boolean;
|
|
1200
|
+
policyholderActivities: PolicyholderActivity[];
|
|
1201
|
+
beneficialOwners: BeneficialOwner[];
|
|
1202
|
+
beneficialOwnersIndex: number;
|
|
1203
|
+
isPolicyholderBeneficialOwner: boolean;
|
|
1204
|
+
};
|
|
1100
1205
|
additionalInsuranceTerms: AddCover[];
|
|
1101
1206
|
additionalInsuranceTermsWithout: AddCover[];
|
|
1102
1207
|
signUrls: SignUrlType[];
|
|
@@ -1136,6 +1241,7 @@ export class FormStoreClass {
|
|
|
1136
1241
|
insuredForm: boolean;
|
|
1137
1242
|
policyholdersRepresentativeForm: boolean;
|
|
1138
1243
|
productConditionsForm: boolean;
|
|
1244
|
+
calculatorForm: boolean;
|
|
1139
1245
|
recalculationForm: boolean;
|
|
1140
1246
|
surveyByHealthBase: boolean;
|
|
1141
1247
|
surveyByCriticalBase: boolean;
|
|
@@ -1181,6 +1287,16 @@ export class FormStoreClass {
|
|
|
1181
1287
|
canBeClaimed: boolean | null;
|
|
1182
1288
|
applicationTaskId: string | null;
|
|
1183
1289
|
constructor(procuctConditionsTitle?: string) {
|
|
1290
|
+
this.lfb = {
|
|
1291
|
+
insurers: [],
|
|
1292
|
+
fixInsAmount: [],
|
|
1293
|
+
policyholder: new PolicyholderV2(),
|
|
1294
|
+
toggleAccidents: false,
|
|
1295
|
+
policyholderActivities: [new PolicyholderActivity()],
|
|
1296
|
+
beneficialOwners: [new BeneficialOwner()],
|
|
1297
|
+
beneficialOwnersIndex: 0,
|
|
1298
|
+
isPolicyholderBeneficialOwner: false,
|
|
1299
|
+
};
|
|
1184
1300
|
this.additionalInsuranceTerms = [];
|
|
1185
1301
|
this.additionalInsuranceTermsWithout = [];
|
|
1186
1302
|
this.signUrls = [];
|
|
@@ -1228,6 +1344,7 @@ export class FormStoreClass {
|
|
|
1228
1344
|
insuredForm: true,
|
|
1229
1345
|
policyholdersRepresentativeForm: true,
|
|
1230
1346
|
productConditionsForm: true,
|
|
1347
|
+
calculatorForm: true,
|
|
1231
1348
|
recalculationForm: true,
|
|
1232
1349
|
surveyByHealthBase: true,
|
|
1233
1350
|
surveyByCriticalBase: true,
|
|
@@ -1261,3 +1378,139 @@ export class FormStoreClass {
|
|
|
1261
1378
|
this.applicationTaskId = null;
|
|
1262
1379
|
}
|
|
1263
1380
|
}
|
|
1381
|
+
|
|
1382
|
+
export class PolicyholderV2 {
|
|
1383
|
+
placeholderGrounds: string | null;
|
|
1384
|
+
documentNumber: string | null;
|
|
1385
|
+
date: string | null;
|
|
1386
|
+
document: any;
|
|
1387
|
+
phoneNumber: string | null;
|
|
1388
|
+
iin: string | null;
|
|
1389
|
+
lastName: string | null;
|
|
1390
|
+
firstName: string | null;
|
|
1391
|
+
middleName: string | null;
|
|
1392
|
+
countryOfCitizenship: Value;
|
|
1393
|
+
namePosition: string | null;
|
|
1394
|
+
email: string | null;
|
|
1395
|
+
involvementForeignOfficial: boolean;
|
|
1396
|
+
bin: string | null;
|
|
1397
|
+
fullOrganizationName: string | null;
|
|
1398
|
+
iik: string | null;
|
|
1399
|
+
nameBank: Value;
|
|
1400
|
+
bik: string | null;
|
|
1401
|
+
kbe: string | null;
|
|
1402
|
+
signOfResidency: Value;
|
|
1403
|
+
countryOfTaxResidency: Value;
|
|
1404
|
+
economySectorCode: Value;
|
|
1405
|
+
typeEconomicActivity: string | null;
|
|
1406
|
+
legalAddress: Address;
|
|
1407
|
+
actualAddress: Address;
|
|
1408
|
+
sameAddress: boolean;
|
|
1409
|
+
|
|
1410
|
+
constructor() {
|
|
1411
|
+
this.placeholderGrounds = null;
|
|
1412
|
+
this.documentNumber = null;
|
|
1413
|
+
this.date = null;
|
|
1414
|
+
this.document = null;
|
|
1415
|
+
this.phoneNumber = null;
|
|
1416
|
+
this.iin = null;
|
|
1417
|
+
this.lastName = null;
|
|
1418
|
+
this.firstName = null;
|
|
1419
|
+
this.middleName = null;
|
|
1420
|
+
this.countryOfCitizenship = new Value();
|
|
1421
|
+
this.namePosition = null;
|
|
1422
|
+
this.email = null;
|
|
1423
|
+
this.involvementForeignOfficial = false;
|
|
1424
|
+
this.bin = null;
|
|
1425
|
+
this.fullOrganizationName = null;
|
|
1426
|
+
this.iik = null;
|
|
1427
|
+
this.nameBank = new Value();
|
|
1428
|
+
this.bik = null;
|
|
1429
|
+
this.kbe = null;
|
|
1430
|
+
this.signOfResidency = new Value();
|
|
1431
|
+
this.countryOfTaxResidency = new Value();
|
|
1432
|
+
this.economySectorCode = new Value();
|
|
1433
|
+
this.typeEconomicActivity = null;
|
|
1434
|
+
this.legalAddress = new Address();
|
|
1435
|
+
this.actualAddress = new Address();
|
|
1436
|
+
this.sameAddress = true;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
export class Address {
|
|
1441
|
+
registrationCountry: Value;
|
|
1442
|
+
registrationProvince: Value;
|
|
1443
|
+
registrationRegionType: Value;
|
|
1444
|
+
registrationCity: Value;
|
|
1445
|
+
registrationQuarter: string | null;
|
|
1446
|
+
registrationMicroDistrict: string | null;
|
|
1447
|
+
registrationStreet: string | null;
|
|
1448
|
+
registrationNumberHouse: string | null;
|
|
1449
|
+
constructor() {
|
|
1450
|
+
this.registrationCountry = new Value();
|
|
1451
|
+
this.registrationProvince = new Value();
|
|
1452
|
+
this.registrationRegionType = new Value();
|
|
1453
|
+
this.registrationCity = new Value();
|
|
1454
|
+
this.registrationQuarter = null;
|
|
1455
|
+
this.registrationMicroDistrict = null;
|
|
1456
|
+
this.registrationStreet = null;
|
|
1457
|
+
this.registrationNumberHouse = null;
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
export class PolicyholderActivity {
|
|
1462
|
+
typeActivity: string | null;
|
|
1463
|
+
numberEmp: string | null;
|
|
1464
|
+
constructor() {
|
|
1465
|
+
this.typeActivity = null;
|
|
1466
|
+
this.numberEmp = null;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
export class BeneficialOwner {
|
|
1471
|
+
informationBO: { id: number; name: string; value: string }[];
|
|
1472
|
+
isFirstManager: boolean;
|
|
1473
|
+
iin: string | null;
|
|
1474
|
+
lastName: string | null;
|
|
1475
|
+
firstName: string | null;
|
|
1476
|
+
middleName: string | null;
|
|
1477
|
+
citizenship: Value;
|
|
1478
|
+
isPublicForeignOfficial: boolean;
|
|
1479
|
+
documentType: Value;
|
|
1480
|
+
documentNumber: string | null;
|
|
1481
|
+
series: string | null;
|
|
1482
|
+
documentIssuers: Value;
|
|
1483
|
+
documentExpire: string | null;
|
|
1484
|
+
|
|
1485
|
+
constructor() {
|
|
1486
|
+
this.informationBO = [
|
|
1487
|
+
{
|
|
1488
|
+
id: 1,
|
|
1489
|
+
name: 'Отметка о наличии/отсутствии физического лица (лиц), которому прямо или косвенно принадлежат более 25 % долей участия в уставном капитале либо размещенных (за вычетом привилегированных и выкупленных обществом) акций юридического лица',
|
|
1490
|
+
value: '',
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
id: 2,
|
|
1494
|
+
name: 'Отметка о наличии/отсутствии физического лица (лиц), осуществляющего контроль над юридическим лицом по иным основаниям',
|
|
1495
|
+
value: '',
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
id: 3,
|
|
1499
|
+
name: 'Отметка о наличии/отсутствии физического лица (лиц) в интересах которого юридическим лицом устанавливаются деловые отношения (совершаются операции)',
|
|
1500
|
+
value: '',
|
|
1501
|
+
},
|
|
1502
|
+
];
|
|
1503
|
+
this.isFirstManager = false;
|
|
1504
|
+
this.iin = null;
|
|
1505
|
+
this.lastName = null;
|
|
1506
|
+
this.firstName = null;
|
|
1507
|
+
this.middleName = null;
|
|
1508
|
+
this.citizenship = new Value();
|
|
1509
|
+
this.isPublicForeignOfficial = false;
|
|
1510
|
+
this.documentType = new Value();
|
|
1511
|
+
this.documentNumber = null;
|
|
1512
|
+
this.series = null;
|
|
1513
|
+
this.documentIssuers = new Value();
|
|
1514
|
+
this.documentExpire = null;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
package/composables/constants.ts
CHANGED
|
@@ -43,4 +43,41 @@ export const constants = Object.freeze({
|
|
|
43
43
|
kzt: '₸',
|
|
44
44
|
usd: '$',
|
|
45
45
|
},
|
|
46
|
+
fixInsAmount: [
|
|
47
|
+
{
|
|
48
|
+
code: '500000',
|
|
49
|
+
id: '1',
|
|
50
|
+
nameKz: '500 000',
|
|
51
|
+
nameRu: '500 000',
|
|
52
|
+
ids: '',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
code: '1000000',
|
|
56
|
+
id: '2',
|
|
57
|
+
nameKz: '1 000 000',
|
|
58
|
+
nameRu: '1 000 000',
|
|
59
|
+
ids: '',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
code: '1500000',
|
|
63
|
+
id: '3',
|
|
64
|
+
nameKz: '1 500 000',
|
|
65
|
+
nameRu: '1 500 000',
|
|
66
|
+
ids: '',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
code: '2000000',
|
|
70
|
+
id: '4',
|
|
71
|
+
nameKz: '2 000 000',
|
|
72
|
+
nameRu: '2 000 000',
|
|
73
|
+
ids: '',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
code: '2500000',
|
|
77
|
+
id: '5',
|
|
78
|
+
nameKz: '2 500 000',
|
|
79
|
+
nameRu: '2 500 000',
|
|
80
|
+
ids: '',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
46
83
|
});
|
package/composables/index.ts
CHANGED
|
@@ -30,6 +30,7 @@ export class Masks {
|
|
|
30
30
|
date: string = '##.##.####';
|
|
31
31
|
post: string = '######';
|
|
32
32
|
threeDigit: string = '###';
|
|
33
|
+
iik: string = 'KZ################';
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export const useMask = () => new Masks();
|
|
@@ -256,13 +257,22 @@ export const setAddressBeneficiary = (whichIndex: number, sameAddress: boolean)
|
|
|
256
257
|
};
|
|
257
258
|
|
|
258
259
|
export const changeBridge = async (toBridge: 'efo' | 'lka', token: string) => {
|
|
259
|
-
const bridgeUrl = import.meta.env[`VITE_${toBridge.toUpperCase()}_URL`] as string;
|
|
260
|
+
const bridgeUrl = ref<string>(import.meta.env[`VITE_${toBridge.toUpperCase()}_URL`] as string);
|
|
260
261
|
if (!toBridge) return;
|
|
261
|
-
if (!bridgeUrl || !token) {
|
|
262
|
+
if (!bridgeUrl.value || !token) {
|
|
262
263
|
useDataStore().showToaster('error', `${useDataStore().t('toaster.noUrl')} [import.meta.env.VITE_${toBridge.toUpperCase()}_URL]`);
|
|
263
264
|
return;
|
|
264
265
|
}
|
|
265
|
-
window.
|
|
266
|
+
const host = window.location.hostname;
|
|
267
|
+
if (toBridge === 'efo') {
|
|
268
|
+
if (host.startsWith('bpmsrv02') && bridgeUrl.value !== 'http://bpmsrv02:88') bridgeUrl.value = 'http://bpmsrv02:88';
|
|
269
|
+
if (host.startsWith('vega') && bridgeUrl.value !== 'http://vega:800') bridgeUrl.value = 'http://vega:800';
|
|
270
|
+
}
|
|
271
|
+
if (toBridge === 'lka') {
|
|
272
|
+
if (host.startsWith('bpmsrv02') && bridgeUrl.value !== 'http://bpmsrv02:890') bridgeUrl.value = 'http://bpmsrv02:890';
|
|
273
|
+
if (host.startsWith('vega') && bridgeUrl.value !== 'http://vega:890') bridgeUrl.value = 'http://vega:890';
|
|
274
|
+
}
|
|
275
|
+
window.open(`${bridgeUrl.value}/#/Token?token=${token}`, '_blank');
|
|
266
276
|
};
|
|
267
277
|
|
|
268
278
|
export const getFirstDayOfMonth = (year: number, month: number) => {
|
package/locales/ru.json
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"memberSave": "Ошибка при сохранении данных участников"
|
|
22
22
|
},
|
|
23
23
|
"toaster": {
|
|
24
|
+
"shengenZoneCondition": "Для стран Шенгенской зоны может быть только один застрахованный",
|
|
24
25
|
"noCurrency": "Отсутствует курс доллара",
|
|
25
26
|
"membersLimit": "Количество этих участников превышено. Лимит составляет: {text}",
|
|
26
27
|
"hasAlreadyMember": "Участник с таким ИИН уже есть в заявке",
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
"doesHaveActiveContract": "Заключение договора невозможно. У Выгодоприобретателя имеется действующий договор"
|
|
116
117
|
},
|
|
117
118
|
"buttons": {
|
|
119
|
+
"clearOrReset": "Не выбран / Очистить",
|
|
118
120
|
"dataInput": "Ввод данных",
|
|
119
121
|
"createStatement": "Создать заявку",
|
|
120
122
|
"add": "Добавить",
|
|
@@ -234,6 +236,7 @@
|
|
|
234
236
|
"recalculationInfo": "Данные для перерасчета",
|
|
235
237
|
"generalConditions": "Основные условия страхования",
|
|
236
238
|
"isPolicyholderInsured": "Является ли страхователь застрахованным?",
|
|
239
|
+
"isInsuredUnderage": "Является ли застрахованный несовершеннолетним лицом?",
|
|
237
240
|
"isPolicyholderIPDL": "Принадлежит ли и/или причастен ли Застрахованный / Страхователь или его члены семьи и близкие родственники к иностранному публичному должностному лицу?",
|
|
238
241
|
"isMemberIPDL": "Отметка о принадлежности и/или причастности к публичному должностному лицу, его супруге (супругу) и близким родственникам?",
|
|
239
242
|
"isPolicyholderBeneficiary": "Является ли страхователь выгодоприобретателем?",
|
|
@@ -268,6 +271,7 @@
|
|
|
268
271
|
"createNewApp": "Создать новую заявку",
|
|
269
272
|
"template": "Шаблон",
|
|
270
273
|
"downloadDocument": "Скачать документ",
|
|
274
|
+
"countriesLength": "Число выбранных стран",
|
|
271
275
|
"productConditionsForm": {
|
|
272
276
|
"coverPeriod": "Срок страхования",
|
|
273
277
|
"payPeriod": "Период оплаты страховой премии",
|
|
@@ -303,9 +307,11 @@
|
|
|
303
307
|
"amountAnnuityPayments": "Запрашиваемый размер аннуитетных выплат",
|
|
304
308
|
"coverPeriodMonth": "Срок страхования (в месяцах)",
|
|
305
309
|
"totalRequestedSumInsured": "Общая страховая сумма",
|
|
306
|
-
"totalInsurancePremiumAmount": "Общая страховая премия"
|
|
310
|
+
"totalInsurancePremiumAmount": "Общая страховая премия",
|
|
311
|
+
"agencyPart": "Агентская переменная часть, %"
|
|
307
312
|
},
|
|
308
313
|
"calculatorForm": {
|
|
314
|
+
"selectedCountries": "Выбранные страны",
|
|
309
315
|
"country": "Страна поездки",
|
|
310
316
|
"countries": "Страны поездки",
|
|
311
317
|
"purpose": "Цель поездки",
|
|
@@ -586,7 +592,8 @@
|
|
|
586
592
|
"insurerLongName": "ФИО застрахованного",
|
|
587
593
|
"policyholderLongName": "ФИО страхователя",
|
|
588
594
|
"jsonObject": "JSON значение",
|
|
589
|
-
"epayPage": "Страница на ePay"
|
|
595
|
+
"epayPage": "Страница на ePay",
|
|
596
|
+
"checkWithDoc": "Сверьте с документом"
|
|
590
597
|
},
|
|
591
598
|
"placeholders": {
|
|
592
599
|
"login": "Логин",
|
|
@@ -600,6 +607,7 @@
|
|
|
600
607
|
"numbers": "Поле должно содержать только цифры",
|
|
601
608
|
"numbersSymbols": "Поле должно содержать цифры",
|
|
602
609
|
"ageExceeds": "Год не может превышать больше 50 лет",
|
|
610
|
+
"ageExceeds80": "Возраст не может превышать больше 80 лет",
|
|
603
611
|
"age18": "Контрагент должен быть совершеннолетним",
|
|
604
612
|
"sums": "Поле должно содержать только цифры",
|
|
605
613
|
"iinRight": "ИИН/БИН должен состоять из 12 цифр",
|
|
@@ -616,7 +624,9 @@
|
|
|
616
624
|
"policyholderAgeLimit": "Возраст Застрахованного должен быть не менее 18-ти лет",
|
|
617
625
|
"beneficiaryAgeLimit": "На дату подписания полиса возраст Выгодоприобретателя должен быть не более 15 лет",
|
|
618
626
|
"guaranteedPeriodLimit": "Период гарантированного срока не может быть больше срока аннуитетных выплат",
|
|
619
|
-
"
|
|
627
|
+
"noResidentOffline": "Обратитесь в филиал для оффлайн оформления нерезидента",
|
|
628
|
+
"calculationPreliminary": "Расчет предварительный. Требуется заполнить все необходимые данные",
|
|
629
|
+
"planDate": "Дата должна превышать сегодняшнюю дату"
|
|
620
630
|
},
|
|
621
631
|
"code": "КЭС",
|
|
622
632
|
"fontSize": "Размер шрифта",
|
|
@@ -708,20 +718,63 @@
|
|
|
708
718
|
"manager": "Менеджер",
|
|
709
719
|
"attachManager": "Менеджер",
|
|
710
720
|
"agent": "Агент",
|
|
711
|
-
"insurancePay": "Страховая выплата подлежит осуществлению"
|
|
721
|
+
"insurancePay": "Страховая выплата подлежит осуществлению",
|
|
722
|
+
"firstNameLat": "Имя (На латинице)",
|
|
723
|
+
"lastNameLat": "Фамилия (На латинице)"
|
|
712
724
|
},
|
|
713
725
|
"insurers": {
|
|
714
726
|
"listInsured": "Список Застрахованных",
|
|
715
727
|
"templateInsured": "Шаблон для заполнения данных Застрахованных",
|
|
716
728
|
"sendListToFill": "Отправить список Страхователю для заполнения",
|
|
717
729
|
"completedListInsured": "Заполненный список Застрахованных",
|
|
718
|
-
"
|
|
719
|
-
"
|
|
720
|
-
"
|
|
721
|
-
"
|
|
722
|
-
"
|
|
723
|
-
"
|
|
724
|
-
"
|
|
730
|
+
"selectInsSum": "Выберите страховую сумму",
|
|
731
|
+
"isPolicyholderBeneficialOwner": "Является ли Страхователь Бенефициарным собственником",
|
|
732
|
+
"necessaryFillForm": "Необходимо заполнить форму",
|
|
733
|
+
"policyholderActivitiesForm": "Сведения о деятельности Страхователя",
|
|
734
|
+
"accidentStatisticsForm": "Статистика несчастных случаев в компании за последние 5 лет, включая текущий год",
|
|
735
|
+
"accidentStatistics": "Статистика несчастных случаев",
|
|
736
|
+
"beneficialOwnerForm": "Данные Бенефициарного собственника",
|
|
737
|
+
"infoBeneficialOwner": "Сведения о Бенефициарном собственнике",
|
|
738
|
+
"dataBeneficialOwner": "Данные Бенефициарного собственника",
|
|
739
|
+
"documentsBeneficialOwner": "Документы Бенефициарного собственника",
|
|
740
|
+
"form": {
|
|
741
|
+
"nameOrganization": "Наименование организации",
|
|
742
|
+
"listSpecies": "Перечень видов",
|
|
743
|
+
"numberWorkers": "Кол-во работников",
|
|
744
|
+
"accidentCompany": "Несчастный случай в Компании",
|
|
745
|
+
"numberCases": "Кол-во случаев",
|
|
746
|
+
"amountPayments": "Сумма выплат",
|
|
747
|
+
"total": "Итого",
|
|
748
|
+
"totalNumberIns": "Общее кол-во застрахованных",
|
|
749
|
+
"citizenship": "Гражданство",
|
|
750
|
+
"powersPolicyholder": "Полномочия Страхователя",
|
|
751
|
+
"placeholderGrounds": "Страхователь действует на основании (устав. доверенность, приказ и тп)",
|
|
752
|
+
"phoneNumber": "Номер телефона (на указанный номер будут приходить смс оповещения)",
|
|
753
|
+
"namePosition": "Наименование должности",
|
|
754
|
+
"email": "E-mail адрес",
|
|
755
|
+
"involvementForeignOfficial": "Отметка о принадлежности и/или причастности к публичному иностранному должностному лицу, его супруге (супругу) и близким родственникам?",
|
|
756
|
+
"organizationData": "Данные организации",
|
|
757
|
+
"fullOrganizationName": "Наименование организации (полное) с указанием организационно-правовой формы",
|
|
758
|
+
"iik": "ИИК",
|
|
759
|
+
"nameBank": "Наименование банка",
|
|
760
|
+
"bik": "БИК",
|
|
761
|
+
"kbe": "КБЕ",
|
|
762
|
+
"signResidency": "Признак резидентства",
|
|
763
|
+
"countryTaxResidence": "Страна налогового резидентства",
|
|
764
|
+
"typeEconomicActivity": "Вид экономической деятельности",
|
|
765
|
+
"legalAddressCompany": "Юридический адрес Компании",
|
|
766
|
+
"actualAddressCompany": "Адрес фактического местонахождения Компании",
|
|
767
|
+
"sameAddress": "Совпадает ли юридический адрес с фактическим местонахождением Компании?",
|
|
768
|
+
"presenceAccidents": "Отметка о наличии (отсутствии) несчастных случаев",
|
|
769
|
+
"toggleAccidents": "Имеются ли несчастные случаи?",
|
|
770
|
+
"policyholderActivitiesTitle": "Перечень видов деятельности осуществляемых Компанией",
|
|
771
|
+
"typeActivity": "Вид деятельности",
|
|
772
|
+
"numberEmp": "Количество работников",
|
|
773
|
+
"isFirstManager": "Бенефициарный собственник является первым руководителем",
|
|
774
|
+
"iin": "ИИН (при наличии)",
|
|
775
|
+
"isPublicForeignOfficial": "Отметка о принадлежности и/или причастности к публичному иностранному должностному лицу, его супруге (супругу) и близким родственникам?",
|
|
776
|
+
"series": "Серия"
|
|
777
|
+
}
|
|
725
778
|
},
|
|
726
779
|
"agreementBlock": {
|
|
727
780
|
"title": "Согласие на сбор и обработку пресональных данных",
|