hl-core 0.0.9-beta.3 → 0.0.9-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/api/base.api.ts +862 -0
- package/api/index.ts +2 -620
- package/api/interceptors.ts +58 -14
- package/components/Button/Btn.vue +3 -3
- package/components/Complex/ContentBlock.vue +1 -1
- package/components/Complex/MessageBlock.vue +2 -2
- package/components/Complex/Page.vue +8 -2
- package/components/Complex/WhiteBlock.vue +7 -0
- package/components/Dialog/Dialog.vue +60 -15
- package/components/Dialog/FamilyDialog.vue +5 -5
- package/components/Form/DynamicForm.vue +99 -0
- package/components/Form/FormBlock.vue +36 -29
- package/components/Form/FormData.vue +48 -0
- package/components/Form/FormSection.vue +2 -2
- package/components/Form/FormTextSection.vue +3 -3
- package/components/Form/FormToggle.vue +3 -3
- package/components/Form/ManagerAttachment.vue +104 -52
- package/components/Form/ProductConditionsBlock.vue +73 -20
- package/components/Input/DynamicInput.vue +23 -0
- package/components/Input/EmptyFormField.vue +1 -1
- package/components/Input/FileInput.vue +15 -4
- package/components/Input/Monthpicker.vue +33 -0
- package/components/Input/PanelInput.vue +5 -1
- package/components/Input/RoundedEmptyField.vue +5 -0
- package/components/Input/RoundedSelect.vue +13 -0
- package/components/Input/SwitchInput.vue +64 -0
- package/components/Input/TextInput.vue +161 -0
- package/components/Layout/Drawer.vue +17 -4
- package/components/Layout/Header.vue +2 -2
- package/components/Layout/SettingsPanel.vue +10 -15
- package/components/List/ListEmpty.vue +1 -1
- package/components/Menu/MenuHover.vue +1 -1
- package/components/Menu/MenuNav.vue +3 -3
- package/components/Menu/MenuNavItem.vue +4 -4
- package/components/Pages/Anketa.vue +144 -65
- package/components/Pages/Auth.vue +21 -10
- package/components/Pages/ContragentForm.vue +505 -0
- package/components/Pages/Documents.vue +57 -11
- package/components/Pages/InvoiceInfo.vue +2 -2
- package/components/Pages/MemberForm.vue +253 -89
- package/components/Pages/ProductAgreement.vue +2 -11
- package/components/Pages/ProductConditions.vue +777 -164
- package/components/Panel/PanelHandler.vue +297 -54
- package/components/Panel/PanelSelectItem.vue +18 -3
- package/components/Panel/RightPanelCloser.vue +7 -0
- package/components/Utilities/IconBorder.vue +17 -0
- package/composables/axios.ts +1 -1
- package/composables/classes.ts +405 -9
- package/composables/constants.ts +40 -0
- package/composables/fields.ts +203 -0
- package/composables/index.ts +48 -0
- package/composables/styles.ts +22 -10
- package/configs/i18n.ts +0 -2
- package/layouts/default.vue +46 -4
- package/layouts/full.vue +1 -1
- package/locales/ru.json +428 -11
- package/nuxt.config.ts +1 -1
- package/package.json +30 -39
- package/pages/500.vue +2 -2
- package/pages/Token.vue +1 -0
- package/plugins/helperFunctionsPlugins.ts +6 -7
- package/plugins/vuetifyPlugin.ts +2 -0
- package/store/data.store.ts +936 -217
- package/store/extractStore.ts +17 -0
- package/store/form.store.ts +13 -1
- package/store/member.store.ts +1 -1
- package/store/rules.ts +38 -2
- package/types/enum.ts +8 -0
- package/types/form.ts +94 -0
- package/types/index.ts +162 -10
- package/components/Button/BtnIcon.vue +0 -47
- package/locales/kz.json +0 -590
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;
|
|
@@ -670,6 +717,7 @@ export class ProductConditions {
|
|
|
670
717
|
termsOfInsurance: string | null;
|
|
671
718
|
annualIncome: string | null;
|
|
672
719
|
processIndexRate: Value;
|
|
720
|
+
processGfot: Value;
|
|
673
721
|
requestedSumInsured: number | string | null;
|
|
674
722
|
requestedSumInsuredInDollar: number | string | null;
|
|
675
723
|
insurancePremiumPerMonth: number | string | null;
|
|
@@ -700,6 +748,12 @@ export class ProductConditions {
|
|
|
700
748
|
termAnnuityPayments: number | string | null;
|
|
701
749
|
periodAnnuityPayment: Value;
|
|
702
750
|
amountAnnuityPayments: number | string | null;
|
|
751
|
+
isRecalculated: boolean;
|
|
752
|
+
totalAmount5: number | string | null;
|
|
753
|
+
totalAmount7: number | string | null;
|
|
754
|
+
statePremium5: number | string | null;
|
|
755
|
+
statePremium7: number | string | null;
|
|
756
|
+
calculatorForm: CalculatorForm;
|
|
703
757
|
constructor(
|
|
704
758
|
insuranceCase = null,
|
|
705
759
|
coverPeriod = null,
|
|
@@ -707,6 +761,7 @@ export class ProductConditions {
|
|
|
707
761
|
termsOfInsurance = null,
|
|
708
762
|
annualIncome = null,
|
|
709
763
|
processIndexRate = new Value(),
|
|
764
|
+
processGfot = new Value(),
|
|
710
765
|
requestedSumInsured = null,
|
|
711
766
|
insurancePremiumPerMonth = null,
|
|
712
767
|
establishingGroupDisabilityFromThirdYear = null,
|
|
@@ -735,6 +790,12 @@ export class ProductConditions {
|
|
|
735
790
|
termAnnuityPayments = null,
|
|
736
791
|
periodAnnuityPayment = new Value(),
|
|
737
792
|
amountAnnuityPayments = null,
|
|
793
|
+
isRecalculated = false,
|
|
794
|
+
totalAmount5 = null,
|
|
795
|
+
totalAmount7 = null,
|
|
796
|
+
statePremium5 = null,
|
|
797
|
+
statePremium7 = null,
|
|
798
|
+
calculatorForm = new CalculatorForm(),
|
|
738
799
|
) {
|
|
739
800
|
this.requestedSumInsuredInDollar = null;
|
|
740
801
|
this.insurancePremiumPerMonthInDollar = null;
|
|
@@ -747,6 +808,7 @@ export class ProductConditions {
|
|
|
747
808
|
this.termsOfInsurance = termsOfInsurance;
|
|
748
809
|
this.annualIncome = annualIncome;
|
|
749
810
|
this.processIndexRate = processIndexRate;
|
|
811
|
+
this.processGfot = processGfot;
|
|
750
812
|
this.requestedSumInsured = requestedSumInsured;
|
|
751
813
|
this.insurancePremiumPerMonth = insurancePremiumPerMonth;
|
|
752
814
|
this.establishingGroupDisabilityFromThirdYear = establishingGroupDisabilityFromThirdYear;
|
|
@@ -775,6 +837,25 @@ export class ProductConditions {
|
|
|
775
837
|
this.termAnnuityPayments = termAnnuityPayments;
|
|
776
838
|
this.periodAnnuityPayment = periodAnnuityPayment;
|
|
777
839
|
this.amountAnnuityPayments = amountAnnuityPayments;
|
|
840
|
+
this.isRecalculated = isRecalculated;
|
|
841
|
+
this.totalAmount5 = totalAmount5;
|
|
842
|
+
this.totalAmount7 = totalAmount7;
|
|
843
|
+
this.statePremium5 = statePremium5;
|
|
844
|
+
this.statePremium7 = statePremium7;
|
|
845
|
+
this.calculatorForm = calculatorForm;
|
|
846
|
+
}
|
|
847
|
+
getSingleTripDays() {
|
|
848
|
+
if (this.calculatorForm.startDate && this.calculatorForm.endDate) {
|
|
849
|
+
const date1 = formatDate(this.calculatorForm.startDate);
|
|
850
|
+
const date2 = formatDate(this.calculatorForm.endDate);
|
|
851
|
+
if (date1 && date2) {
|
|
852
|
+
const days = Math.ceil((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24)) + 1;
|
|
853
|
+
if (days > 0) {
|
|
854
|
+
return days;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
return null;
|
|
778
859
|
}
|
|
779
860
|
}
|
|
780
861
|
|
|
@@ -804,6 +885,9 @@ export class DataStoreClass {
|
|
|
804
885
|
setDefaults: {
|
|
805
886
|
sectorCode: boolean;
|
|
806
887
|
percentage: boolean;
|
|
888
|
+
signOfResidency: boolean;
|
|
889
|
+
countryOfTaxResidency: boolean;
|
|
890
|
+
countryOfCitizenship: boolean;
|
|
807
891
|
};
|
|
808
892
|
// Проверка на роль при авторизации
|
|
809
893
|
onAuth: boolean;
|
|
@@ -811,6 +895,8 @@ export class DataStoreClass {
|
|
|
811
895
|
hasAgreement: boolean;
|
|
812
896
|
// Наличие анкеты
|
|
813
897
|
hasAnketa: boolean;
|
|
898
|
+
// Обязательность доп анкеты
|
|
899
|
+
isSecondAnketaRequired: boolean;
|
|
814
900
|
// Подтягивание с ГБДФЛ
|
|
815
901
|
hasGBDFL: boolean;
|
|
816
902
|
// Подтягивание с ГКБ
|
|
@@ -823,6 +909,8 @@ export class DataStoreClass {
|
|
|
823
909
|
hasAttachment: boolean;
|
|
824
910
|
// Решение АС
|
|
825
911
|
hasAffiliation: boolean;
|
|
912
|
+
// Выбор метода подписания
|
|
913
|
+
hasChooseSign: boolean;
|
|
826
914
|
};
|
|
827
915
|
members: {
|
|
828
916
|
clientApp: MemberSettings;
|
|
@@ -858,7 +946,13 @@ export class DataStoreClass {
|
|
|
858
946
|
open: boolean;
|
|
859
947
|
overlay: boolean;
|
|
860
948
|
title: string;
|
|
861
|
-
clear:
|
|
949
|
+
clear: () => void;
|
|
950
|
+
};
|
|
951
|
+
rightPanel: {
|
|
952
|
+
open: boolean;
|
|
953
|
+
overlay: boolean;
|
|
954
|
+
title: string;
|
|
955
|
+
clear: () => void;
|
|
862
956
|
};
|
|
863
957
|
historyPageIndex: number;
|
|
864
958
|
historyPageSize: number;
|
|
@@ -879,11 +973,14 @@ export class DataStoreClass {
|
|
|
879
973
|
documentIssuers: Value[];
|
|
880
974
|
familyStatuses: Value[];
|
|
881
975
|
relations: Value[];
|
|
976
|
+
banks: Value[];
|
|
977
|
+
processTariff: Value[];
|
|
882
978
|
insurancePay: Value[];
|
|
883
979
|
questionRefs: Value[];
|
|
884
980
|
residents: Value[];
|
|
885
981
|
ipdl: Value[];
|
|
886
982
|
economySectorCode: Value[];
|
|
983
|
+
economicActivityType: Value[];
|
|
887
984
|
gender: Value[];
|
|
888
985
|
fontSize: number;
|
|
889
986
|
isFontChangerOpen: boolean = false;
|
|
@@ -891,8 +988,8 @@ export class DataStoreClass {
|
|
|
891
988
|
user: User;
|
|
892
989
|
accessToken: string | null = null;
|
|
893
990
|
refreshToken: string | null = null;
|
|
894
|
-
processCoverTypeSum: Value[];
|
|
895
991
|
processIndexRate: Value[];
|
|
992
|
+
processGfot: Value[];
|
|
896
993
|
processPaymentPeriod: Value[];
|
|
897
994
|
dicAnnuityTypeList: Value[];
|
|
898
995
|
processAnnuityPaymentPeriod: Value[];
|
|
@@ -909,6 +1006,7 @@ export class DataStoreClass {
|
|
|
909
1006
|
ManagerPolicy: Value[];
|
|
910
1007
|
AgentData: AgentData[];
|
|
911
1008
|
riskGroup: Value[];
|
|
1009
|
+
DicCoverTypePeriod: Value[];
|
|
912
1010
|
currencies: {
|
|
913
1011
|
eur: number | null;
|
|
914
1012
|
usd: number | null;
|
|
@@ -917,6 +1015,17 @@ export class DataStoreClass {
|
|
|
917
1015
|
show: (item: MenuItem) => boolean;
|
|
918
1016
|
disabled: (item: MenuItem) => boolean;
|
|
919
1017
|
};
|
|
1018
|
+
amountArray: Value[];
|
|
1019
|
+
currency: string | number | null;
|
|
1020
|
+
periodArray: Value[];
|
|
1021
|
+
maxDaysAllArray: Value[];
|
|
1022
|
+
maxDaysFiltered: Value[];
|
|
1023
|
+
dicAllCountries: CountryValue[];
|
|
1024
|
+
dicCountries: CountryValue[];
|
|
1025
|
+
types: Value[];
|
|
1026
|
+
workTypes: Value[];
|
|
1027
|
+
sportsTypes: Value[];
|
|
1028
|
+
purposes: Value[];
|
|
920
1029
|
constructor() {
|
|
921
1030
|
this.filters = {
|
|
922
1031
|
show: (item: MenuItem) => {
|
|
@@ -947,9 +1056,13 @@ export class DataStoreClass {
|
|
|
947
1056
|
setDefaults: {
|
|
948
1057
|
sectorCode: true,
|
|
949
1058
|
percentage: true,
|
|
1059
|
+
signOfResidency: false,
|
|
1060
|
+
countryOfTaxResidency: false,
|
|
1061
|
+
countryOfCitizenship: false,
|
|
950
1062
|
},
|
|
951
1063
|
onAuth: false,
|
|
952
1064
|
hasAnketa: true,
|
|
1065
|
+
isSecondAnketaRequired: true,
|
|
953
1066
|
hasAgreement: true,
|
|
954
1067
|
hasGBDFL: true,
|
|
955
1068
|
hasGKB: false,
|
|
@@ -957,10 +1070,12 @@ export class DataStoreClass {
|
|
|
957
1070
|
hasCalculator: false,
|
|
958
1071
|
hasAttachment: true,
|
|
959
1072
|
hasAffiliation: true,
|
|
1073
|
+
hasChooseSign: false,
|
|
960
1074
|
};
|
|
961
1075
|
this.iframeLoading = false;
|
|
962
1076
|
this.hasLayoutMargins = true;
|
|
963
1077
|
this.processIndexRate = [];
|
|
1078
|
+
this.processGfot = [];
|
|
964
1079
|
this.processPaymentPeriod = [];
|
|
965
1080
|
this.dicAnnuityTypeList = [];
|
|
966
1081
|
this.processAnnuityPaymentPeriod = [];
|
|
@@ -969,6 +1084,7 @@ export class DataStoreClass {
|
|
|
969
1084
|
this.RegionPolicy = [];
|
|
970
1085
|
this.ManagerPolicy = [];
|
|
971
1086
|
this.AgentData = [];
|
|
1087
|
+
this.DicCoverTypePeriod = [];
|
|
972
1088
|
this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Projects) : null;
|
|
973
1089
|
this.showNav = true;
|
|
974
1090
|
this.menuItems = [];
|
|
@@ -993,13 +1109,24 @@ export class DataStoreClass {
|
|
|
993
1109
|
open: false,
|
|
994
1110
|
overlay: false,
|
|
995
1111
|
title: '',
|
|
996
|
-
clear:
|
|
1112
|
+
clear: () => {
|
|
997
1113
|
const panelActions = document.getElementById('panel-actions');
|
|
998
1114
|
if (panelActions) {
|
|
999
1115
|
panelActions.innerHTML = '';
|
|
1000
1116
|
}
|
|
1001
1117
|
},
|
|
1002
1118
|
};
|
|
1119
|
+
this.rightPanel = {
|
|
1120
|
+
open: false,
|
|
1121
|
+
overlay: false,
|
|
1122
|
+
title: '',
|
|
1123
|
+
clear: () => {
|
|
1124
|
+
const panelActions = document.getElementById('right-panel-actions');
|
|
1125
|
+
if (panelActions) {
|
|
1126
|
+
panelActions.innerHTML = '';
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
};
|
|
1003
1130
|
this.panelAction = null;
|
|
1004
1131
|
this.historyPageIndex = 1;
|
|
1005
1132
|
this.historyPageSize = 10;
|
|
@@ -1020,10 +1147,13 @@ export class DataStoreClass {
|
|
|
1020
1147
|
this.documentIssuers = [];
|
|
1021
1148
|
this.familyStatuses = [];
|
|
1022
1149
|
this.relations = [];
|
|
1150
|
+
this.processTariff = [];
|
|
1151
|
+
this.banks = [];
|
|
1023
1152
|
this.insurancePay = [];
|
|
1024
1153
|
this.residents = [];
|
|
1025
1154
|
this.ipdl = [new Value(1, null), new Value(2, 'Да'), new Value(3, 'Нет')];
|
|
1026
1155
|
this.economySectorCode = [];
|
|
1156
|
+
this.economicActivityType = [];
|
|
1027
1157
|
this.gender = [new Value(0, null), new Value(1, 'Мужской'), new Value(2, 'Женский')];
|
|
1028
1158
|
this.fontSize = 14;
|
|
1029
1159
|
this.isFontChangerOpen = false;
|
|
@@ -1031,7 +1161,6 @@ export class DataStoreClass {
|
|
|
1031
1161
|
this.user = new User();
|
|
1032
1162
|
this.accessToken = null;
|
|
1033
1163
|
this.refreshToken = null;
|
|
1034
|
-
this.processCoverTypeSum = [];
|
|
1035
1164
|
this.taskList = [];
|
|
1036
1165
|
this.processHistory = [];
|
|
1037
1166
|
this.contragentList = [];
|
|
@@ -1077,10 +1206,39 @@ export class DataStoreClass {
|
|
|
1077
1206
|
ids: '',
|
|
1078
1207
|
},
|
|
1079
1208
|
];
|
|
1209
|
+
this.amountArray = [];
|
|
1210
|
+
this.currency = null;
|
|
1211
|
+
this.maxDaysAllArray = [];
|
|
1212
|
+
this.periodArray = [];
|
|
1213
|
+
this.maxDaysFiltered = [];
|
|
1214
|
+
this.dicCountries = [];
|
|
1215
|
+
this.dicAllCountries = [];
|
|
1216
|
+
this.types = [];
|
|
1217
|
+
this.purposes = [];
|
|
1218
|
+
this.workTypes = [];
|
|
1219
|
+
this.sportsTypes = [];
|
|
1080
1220
|
}
|
|
1081
1221
|
}
|
|
1082
1222
|
|
|
1083
1223
|
export class FormStoreClass {
|
|
1224
|
+
documentName: string | null;
|
|
1225
|
+
regNumber: string | null;
|
|
1226
|
+
policyNumber: string | null;
|
|
1227
|
+
contractDate: string | null;
|
|
1228
|
+
needToScanSignedContract: boolean;
|
|
1229
|
+
isUploadedSignedContract: boolean;
|
|
1230
|
+
signedContractFormData: any;
|
|
1231
|
+
lfb: {
|
|
1232
|
+
clients: ClientV2[];
|
|
1233
|
+
policyholder: MemberV2;
|
|
1234
|
+
hasAccidentIncidents: boolean;
|
|
1235
|
+
accidentIncidents: AccidentIncidents[];
|
|
1236
|
+
policyholderActivities: PolicyholderActivity[];
|
|
1237
|
+
beneficialOwners: BeneficialOwner[];
|
|
1238
|
+
beneficialOwnersIndex: number;
|
|
1239
|
+
isPolicyholderBeneficialOwner: boolean;
|
|
1240
|
+
clientId: string | null;
|
|
1241
|
+
};
|
|
1084
1242
|
additionalInsuranceTerms: AddCover[];
|
|
1085
1243
|
additionalInsuranceTermsWithout: AddCover[];
|
|
1086
1244
|
signUrls: SignUrlType[];
|
|
@@ -1102,8 +1260,6 @@ export class FormStoreClass {
|
|
|
1102
1260
|
surveyByHealthBasePolicyholder: AnketaFirst | null;
|
|
1103
1261
|
surveyByCriticalBase: AnketaFirst | null;
|
|
1104
1262
|
surveyByCriticalBasePolicyholder: AnketaFirst | null;
|
|
1105
|
-
surveyByHealthSecond: AnketaSecond[] | null;
|
|
1106
|
-
surveyByCriticalSecond: AnketaSecond[] | null;
|
|
1107
1263
|
definedAnswersId: {
|
|
1108
1264
|
surveyByHealthBase: any;
|
|
1109
1265
|
surveyByCriticalBase: any;
|
|
@@ -1122,12 +1278,15 @@ export class FormStoreClass {
|
|
|
1122
1278
|
insuredForm: boolean;
|
|
1123
1279
|
policyholdersRepresentativeForm: boolean;
|
|
1124
1280
|
productConditionsForm: boolean;
|
|
1281
|
+
calculatorForm: boolean;
|
|
1125
1282
|
recalculationForm: boolean;
|
|
1126
1283
|
surveyByHealthBase: boolean;
|
|
1127
1284
|
surveyByCriticalBase: boolean;
|
|
1128
1285
|
surveyByHealthBasePolicyholder: boolean;
|
|
1129
1286
|
surveyByCriticalBasePolicyholder: boolean;
|
|
1130
1287
|
insuranceDocument: boolean;
|
|
1288
|
+
policyholderActivitiesForm: boolean;
|
|
1289
|
+
accidentStatisticsForm: boolean;
|
|
1131
1290
|
};
|
|
1132
1291
|
isPolicyholderInsured: boolean = false;
|
|
1133
1292
|
isPolicyholderBeneficiary: boolean = false;
|
|
@@ -1166,7 +1325,25 @@ export class FormStoreClass {
|
|
|
1166
1325
|
questionnaireByCritical: any[];
|
|
1167
1326
|
canBeClaimed: boolean | null;
|
|
1168
1327
|
applicationTaskId: string | null;
|
|
1169
|
-
constructor(
|
|
1328
|
+
constructor() {
|
|
1329
|
+
this.regNumber = null;
|
|
1330
|
+
this.policyNumber = null;
|
|
1331
|
+
this.contractDate = null;
|
|
1332
|
+
this.documentName = null;
|
|
1333
|
+
this.isUploadedSignedContract = false;
|
|
1334
|
+
this.needToScanSignedContract = false;
|
|
1335
|
+
this.signedContractFormData = null;
|
|
1336
|
+
this.lfb = {
|
|
1337
|
+
clients: [],
|
|
1338
|
+
policyholder: new MemberV2(),
|
|
1339
|
+
hasAccidentIncidents: true,
|
|
1340
|
+
policyholderActivities: [new PolicyholderActivity()],
|
|
1341
|
+
beneficialOwners: [new BeneficialOwner()],
|
|
1342
|
+
beneficialOwnersIndex: 0,
|
|
1343
|
+
isPolicyholderBeneficialOwner: false,
|
|
1344
|
+
accidentIncidents: [],
|
|
1345
|
+
clientId: null,
|
|
1346
|
+
};
|
|
1170
1347
|
this.additionalInsuranceTerms = [];
|
|
1171
1348
|
this.additionalInsuranceTermsWithout = [];
|
|
1172
1349
|
this.signUrls = [];
|
|
@@ -1188,8 +1365,6 @@ export class FormStoreClass {
|
|
|
1188
1365
|
this.surveyByHealthBasePolicyholder = null;
|
|
1189
1366
|
this.surveyByCriticalBase = null;
|
|
1190
1367
|
this.surveyByCriticalBasePolicyholder = null;
|
|
1191
|
-
this.surveyByHealthSecond = null;
|
|
1192
|
-
this.surveyByCriticalSecond = null;
|
|
1193
1368
|
this.definedAnswersId = {
|
|
1194
1369
|
surveyByHealthBase: {},
|
|
1195
1370
|
surveyByCriticalBase: {},
|
|
@@ -1216,12 +1391,15 @@ export class FormStoreClass {
|
|
|
1216
1391
|
insuredForm: true,
|
|
1217
1392
|
policyholdersRepresentativeForm: true,
|
|
1218
1393
|
productConditionsForm: true,
|
|
1394
|
+
calculatorForm: true,
|
|
1219
1395
|
recalculationForm: true,
|
|
1220
1396
|
surveyByHealthBase: true,
|
|
1221
1397
|
surveyByCriticalBase: true,
|
|
1222
1398
|
surveyByHealthBasePolicyholder: true,
|
|
1223
1399
|
surveyByCriticalBasePolicyholder: true,
|
|
1224
1400
|
insuranceDocument: true,
|
|
1401
|
+
policyholderActivitiesForm: true,
|
|
1402
|
+
accidentStatisticsForm: true,
|
|
1225
1403
|
};
|
|
1226
1404
|
this.isPolicyholderInsured = false;
|
|
1227
1405
|
this.isPolicyholderBeneficiary = false;
|
|
@@ -1249,3 +1427,221 @@ export class FormStoreClass {
|
|
|
1249
1427
|
this.applicationTaskId = null;
|
|
1250
1428
|
}
|
|
1251
1429
|
}
|
|
1430
|
+
|
|
1431
|
+
export class MemberV2 {
|
|
1432
|
+
iin: string | null;
|
|
1433
|
+
phoneNumber: string | null;
|
|
1434
|
+
firstName: string | null;
|
|
1435
|
+
middleName: string | null;
|
|
1436
|
+
lastName: string | null;
|
|
1437
|
+
citizenship: Value;
|
|
1438
|
+
email: string | null;
|
|
1439
|
+
resident: Value;
|
|
1440
|
+
taxResidentCountry: Value;
|
|
1441
|
+
economySectorCode: Value;
|
|
1442
|
+
isPublicPerson: boolean;
|
|
1443
|
+
identityDocument?: {
|
|
1444
|
+
documentType: Value;
|
|
1445
|
+
documentNumber: string | null;
|
|
1446
|
+
series: string | null;
|
|
1447
|
+
issuedBy: Value;
|
|
1448
|
+
validUntil: string | null;
|
|
1449
|
+
};
|
|
1450
|
+
bankInfo: {
|
|
1451
|
+
bin: string | null;
|
|
1452
|
+
bankName: Value;
|
|
1453
|
+
iik: string | null;
|
|
1454
|
+
bik: string | null;
|
|
1455
|
+
kbe: string | null;
|
|
1456
|
+
};
|
|
1457
|
+
address: Address;
|
|
1458
|
+
workDetails: {
|
|
1459
|
+
workplace: string | null;
|
|
1460
|
+
position: string | null;
|
|
1461
|
+
jobDuties: string | null;
|
|
1462
|
+
};
|
|
1463
|
+
companyAddress: Address;
|
|
1464
|
+
authorityDetails: {
|
|
1465
|
+
basis: string | null;
|
|
1466
|
+
documentNumber: string | null;
|
|
1467
|
+
date: string | null;
|
|
1468
|
+
};
|
|
1469
|
+
organizationInfo: {
|
|
1470
|
+
bin: string | null;
|
|
1471
|
+
organizationName: string | null;
|
|
1472
|
+
kbe: string | null;
|
|
1473
|
+
resident: Value;
|
|
1474
|
+
taxResidentCountry: Value;
|
|
1475
|
+
economySectorCode: Value;
|
|
1476
|
+
typeOfEconomicActivity: string | null;
|
|
1477
|
+
organizationPhone: string | null;
|
|
1478
|
+
organizationEmail: string | null;
|
|
1479
|
+
organizationInternetResource: string | null;
|
|
1480
|
+
organizationStartDate: string | null;
|
|
1481
|
+
isActualAddressEqualLegalAddres: boolean;
|
|
1482
|
+
activityTypes: {
|
|
1483
|
+
activityTypeName: string | null;
|
|
1484
|
+
empoloyeeCount: number | null;
|
|
1485
|
+
}[];
|
|
1486
|
+
};
|
|
1487
|
+
isLeader?: boolean;
|
|
1488
|
+
beneficalOwnerQuest?: {
|
|
1489
|
+
order: number;
|
|
1490
|
+
text: string | null;
|
|
1491
|
+
answer: boolean | null;
|
|
1492
|
+
}[];
|
|
1493
|
+
constructor() {
|
|
1494
|
+
this.iin = null;
|
|
1495
|
+
this.phoneNumber = null;
|
|
1496
|
+
this.firstName = null;
|
|
1497
|
+
this.middleName = null;
|
|
1498
|
+
this.lastName = null;
|
|
1499
|
+
this.citizenship = new Value();
|
|
1500
|
+
this.email = null;
|
|
1501
|
+
this.resident = new Value();
|
|
1502
|
+
this.taxResidentCountry = new Value();
|
|
1503
|
+
this.economySectorCode = new Value();
|
|
1504
|
+
this.isPublicPerson = false;
|
|
1505
|
+
this.identityDocument = {
|
|
1506
|
+
documentType: new Value(),
|
|
1507
|
+
documentNumber: null,
|
|
1508
|
+
series: null,
|
|
1509
|
+
issuedBy: new Value(),
|
|
1510
|
+
validUntil: null,
|
|
1511
|
+
};
|
|
1512
|
+
this.bankInfo = {
|
|
1513
|
+
bin: null,
|
|
1514
|
+
bankName: new Value(),
|
|
1515
|
+
iik: null,
|
|
1516
|
+
bik: null,
|
|
1517
|
+
kbe: null,
|
|
1518
|
+
};
|
|
1519
|
+
this.address = new Address();
|
|
1520
|
+
this.workDetails = {
|
|
1521
|
+
workplace: null,
|
|
1522
|
+
position: null,
|
|
1523
|
+
jobDuties: null,
|
|
1524
|
+
};
|
|
1525
|
+
this.companyAddress = new Address();
|
|
1526
|
+
this.authorityDetails = {
|
|
1527
|
+
basis: null,
|
|
1528
|
+
documentNumber: null,
|
|
1529
|
+
date: null,
|
|
1530
|
+
};
|
|
1531
|
+
this.organizationInfo = {
|
|
1532
|
+
bin: null,
|
|
1533
|
+
organizationName: null,
|
|
1534
|
+
kbe: null,
|
|
1535
|
+
resident: new Value(),
|
|
1536
|
+
taxResidentCountry: new Value(),
|
|
1537
|
+
economySectorCode: new Value(),
|
|
1538
|
+
typeOfEconomicActivity: null,
|
|
1539
|
+
organizationPhone: null,
|
|
1540
|
+
organizationEmail: null,
|
|
1541
|
+
organizationInternetResource: null,
|
|
1542
|
+
organizationStartDate: null,
|
|
1543
|
+
isActualAddressEqualLegalAddres: true,
|
|
1544
|
+
activityTypes: [
|
|
1545
|
+
{
|
|
1546
|
+
activityTypeName: null,
|
|
1547
|
+
empoloyeeCount: null,
|
|
1548
|
+
},
|
|
1549
|
+
],
|
|
1550
|
+
};
|
|
1551
|
+
this.isLeader = false;
|
|
1552
|
+
this.beneficalOwnerQuest = [
|
|
1553
|
+
{
|
|
1554
|
+
order: 0,
|
|
1555
|
+
text: 'Отметка о наличии/отсутствии физического лица (лиц), которому прямо или косвенно принадлежат более 25 % долей участия в уставном капитале либо размещенных (за вычетом привилегированных и выкупленных обществом) акций юридического лица',
|
|
1556
|
+
answer: null,
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
order: 1,
|
|
1560
|
+
text: 'Отметка о наличии/отсутствии физического лица (лиц), осуществляющего контроль над юридическим лицом по иным основаниям',
|
|
1561
|
+
answer: null,
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
order: 2,
|
|
1565
|
+
text: 'Отметка о наличии/отсутствии физического лица (лиц) в интересах которого юридическим лицом устанавливаются деловые отношения (совершаются операции)',
|
|
1566
|
+
answer: null,
|
|
1567
|
+
},
|
|
1568
|
+
];
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
export class Address {
|
|
1573
|
+
country: Value;
|
|
1574
|
+
region: Value;
|
|
1575
|
+
regionType: Value;
|
|
1576
|
+
city: Value;
|
|
1577
|
+
square: string | null;
|
|
1578
|
+
microdistrict: string | null;
|
|
1579
|
+
street: string | null;
|
|
1580
|
+
houseNumber: string | null;
|
|
1581
|
+
kato: string | null;
|
|
1582
|
+
constructor() {
|
|
1583
|
+
this.country = new Value();
|
|
1584
|
+
this.region = new Value();
|
|
1585
|
+
this.regionType = new Value();
|
|
1586
|
+
this.city = new Value();
|
|
1587
|
+
this.square = null;
|
|
1588
|
+
this.microdistrict = null;
|
|
1589
|
+
this.street = null;
|
|
1590
|
+
this.houseNumber = null;
|
|
1591
|
+
this.kato = null;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
export class PolicyholderActivity {
|
|
1596
|
+
activityTypeName: string | null;
|
|
1597
|
+
empoloyeeCount: string | null;
|
|
1598
|
+
constructor() {
|
|
1599
|
+
this.activityTypeName = null;
|
|
1600
|
+
this.empoloyeeCount = null;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
export class BeneficialOwner {
|
|
1605
|
+
id: string | null;
|
|
1606
|
+
processInstanceId: string | number;
|
|
1607
|
+
insisId: number;
|
|
1608
|
+
iin: string | null;
|
|
1609
|
+
longName: string | null;
|
|
1610
|
+
isIpdl: boolean;
|
|
1611
|
+
isTerror: boolean;
|
|
1612
|
+
isIpdlCompliance: boolean;
|
|
1613
|
+
isTerrorCompliance: boolean;
|
|
1614
|
+
personType: number;
|
|
1615
|
+
lastName: string | null;
|
|
1616
|
+
firstName: string | null;
|
|
1617
|
+
middleName: string | null;
|
|
1618
|
+
countryId: string | null;
|
|
1619
|
+
countryName: string | null;
|
|
1620
|
+
residentId: string | null;
|
|
1621
|
+
residentName: string | null;
|
|
1622
|
+
taxResidentId: string | null;
|
|
1623
|
+
taxResidentName: string | null;
|
|
1624
|
+
beneficialOwnerData: MemberV2;
|
|
1625
|
+
constructor() {
|
|
1626
|
+
this.id = null;
|
|
1627
|
+
this.processInstanceId = 0;
|
|
1628
|
+
this.insisId = 0;
|
|
1629
|
+
this.iin = null;
|
|
1630
|
+
this.longName = null;
|
|
1631
|
+
this.isIpdl = true;
|
|
1632
|
+
this.isTerror = true;
|
|
1633
|
+
this.isIpdlCompliance = true;
|
|
1634
|
+
this.isTerrorCompliance = true;
|
|
1635
|
+
this.personType = 0;
|
|
1636
|
+
this.lastName = null;
|
|
1637
|
+
this.firstName = null;
|
|
1638
|
+
this.middleName = null;
|
|
1639
|
+
this.countryId = null;
|
|
1640
|
+
this.countryName = null;
|
|
1641
|
+
this.residentId = null;
|
|
1642
|
+
this.residentName = null;
|
|
1643
|
+
this.taxResidentId = null;
|
|
1644
|
+
this.taxResidentName = null;
|
|
1645
|
+
this.beneficialOwnerData = new MemberV2();
|
|
1646
|
+
}
|
|
1647
|
+
}
|
package/composables/constants.ts
CHANGED
|
@@ -9,11 +9,14 @@ export const constants = Object.freeze({
|
|
|
9
9
|
liferenta: 9,
|
|
10
10
|
gons: 10,
|
|
11
11
|
halykkazyna: 11,
|
|
12
|
+
daskamkorlyk: 13,
|
|
13
|
+
lifebusiness: 14,
|
|
12
14
|
},
|
|
13
15
|
amlProducts: {
|
|
14
16
|
checkcontragent: 1,
|
|
15
17
|
checkcontract: 2,
|
|
16
18
|
},
|
|
19
|
+
extractedProducts: ['dso', 'uu'],
|
|
17
20
|
editableStatuses: [Statuses.StartForm, Statuses.EditBeneficiaryForm, Statuses.EditForm],
|
|
18
21
|
documentsLinkVisibleStatuses: [
|
|
19
22
|
Statuses.DocumentsSignedFrom,
|
|
@@ -41,4 +44,41 @@ export const constants = Object.freeze({
|
|
|
41
44
|
kzt: '₸',
|
|
42
45
|
usd: '$',
|
|
43
46
|
},
|
|
47
|
+
fixInsAmount: [
|
|
48
|
+
{
|
|
49
|
+
code: '500000',
|
|
50
|
+
id: '1',
|
|
51
|
+
nameKz: '500 000',
|
|
52
|
+
nameRu: '500 000',
|
|
53
|
+
ids: '',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
code: '1000000',
|
|
57
|
+
id: '2',
|
|
58
|
+
nameKz: '1 000 000',
|
|
59
|
+
nameRu: '1 000 000',
|
|
60
|
+
ids: '',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
code: '1500000',
|
|
64
|
+
id: '3',
|
|
65
|
+
nameKz: '1 500 000',
|
|
66
|
+
nameRu: '1 500 000',
|
|
67
|
+
ids: '',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
code: '2000000',
|
|
71
|
+
id: '4',
|
|
72
|
+
nameKz: '2 000 000',
|
|
73
|
+
nameRu: '2 000 000',
|
|
74
|
+
ids: '',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
code: '2500000',
|
|
78
|
+
id: '5',
|
|
79
|
+
nameKz: '2 500 000',
|
|
80
|
+
nameRu: '2 500 000',
|
|
81
|
+
ids: '',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
44
84
|
});
|