hl-core 0.0.8-beta.9 → 0.0.9-beta.1
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 +100 -34
- package/api/interceptors.ts +17 -13
- package/components/Button/Btn.vue +1 -1
- package/components/Button/ScrollButtons.vue +2 -2
- package/components/Complex/Page.vue +1 -1
- package/components/Dialog/Dialog.vue +9 -39
- package/components/Dialog/FamilyDialog.vue +7 -4
- package/components/Form/FormBlock.vue +51 -28
- package/components/Form/FormSection.vue +4 -1
- package/components/Form/FormToggle.vue +2 -3
- package/components/Form/ManagerAttachment.vue +21 -20
- package/components/Form/ProductConditionsBlock.vue +60 -10
- package/components/Input/Datepicker.vue +6 -2
- package/components/Input/FileInput.vue +2 -2
- package/components/Input/FormInput.vue +29 -7
- package/components/Input/PanelInput.vue +7 -2
- package/components/Input/RoundedInput.vue +2 -2
- package/components/Input/RoundedSelect.vue +137 -0
- package/components/Layout/Drawer.vue +3 -2
- package/components/Layout/Header.vue +40 -4
- package/components/Layout/Loader.vue +1 -1
- package/components/Layout/SettingsPanel.vue +51 -13
- package/components/Menu/MenuHover.vue +30 -0
- package/components/Menu/MenuNav.vue +29 -13
- package/components/Menu/MenuNavItem.vue +6 -3
- package/components/Pages/Anketa.vue +49 -31
- package/components/Pages/Auth.vue +139 -46
- package/components/Pages/Documents.vue +6 -6
- package/components/Pages/InvoiceInfo.vue +30 -0
- package/components/Pages/MemberForm.vue +503 -343
- package/components/Pages/ProductAgreement.vue +4 -2
- package/components/Pages/ProductConditions.vue +494 -95
- package/components/Panel/PanelHandler.vue +91 -20
- package/components/Panel/PanelSelectItem.vue +1 -1
- package/components/Utilities/Chip.vue +27 -0
- package/components/Utilities/JsonViewer.vue +27 -0
- package/composables/axios.ts +1 -1
- package/composables/classes.ts +165 -81
- package/composables/constants.ts +25 -52
- package/composables/index.ts +80 -2
- package/composables/styles.ts +8 -3
- package/configs/i18n.ts +2 -4
- package/layouts/default.vue +6 -6
- package/locales/kz.json +532 -346
- package/locales/ru.json +210 -22
- package/nuxt.config.ts +1 -1
- package/package.json +38 -12
- package/pages/500.vue +2 -2
- package/pages/Token.vue +51 -0
- package/plugins/helperFunctionsPlugins.ts +2 -1
- package/plugins/vuetifyPlugin.ts +3 -1
- package/store/{data.store.js → data.store.ts} +1116 -752
- package/store/form.store.ts +1 -1
- package/store/member.store.ts +94 -72
- package/store/{rules.js → rules.ts} +54 -26
- package/types/enum.ts +83 -0
- package/types/env.d.ts +10 -0
- package/types/index.ts +197 -7
- package/locales/en.json +0 -399
package/composables/classes.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Statuses, StoreMembers, MemberAppCodes } from '../types/enum';
|
|
1
2
|
import { formatDate } from '.';
|
|
2
3
|
import { RouteLocationNormalized, RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
4
|
|
|
@@ -16,6 +17,7 @@ class MenuItemConfig {
|
|
|
16
17
|
disabled?: ComputedRef;
|
|
17
18
|
color?: string;
|
|
18
19
|
show?: ComputedRef;
|
|
20
|
+
chip?: ChipComponent;
|
|
19
21
|
|
|
20
22
|
constructor(
|
|
21
23
|
id: any = null,
|
|
@@ -30,6 +32,7 @@ class MenuItemConfig {
|
|
|
30
32
|
disabled?: ComputedRef,
|
|
31
33
|
color?: string,
|
|
32
34
|
show?: ComputedRef,
|
|
35
|
+
chip?: ChipComponent,
|
|
33
36
|
) {
|
|
34
37
|
this.id = id;
|
|
35
38
|
this.title = title;
|
|
@@ -43,20 +46,21 @@ class MenuItemConfig {
|
|
|
43
46
|
this.disabled = disabled;
|
|
44
47
|
this.color = color;
|
|
45
48
|
this.show = show;
|
|
49
|
+
this.chip = chip;
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
export class MenuItem extends MenuItemConfig {
|
|
50
|
-
constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show }: MenuItemConfig = new MenuItemConfig()) {
|
|
51
|
-
super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show);
|
|
54
|
+
constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip }: MenuItemConfig = new MenuItemConfig()) {
|
|
55
|
+
super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip);
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
export class Value {
|
|
56
60
|
id: string | number | null;
|
|
57
61
|
code: string | number | null;
|
|
58
|
-
nameRu: string |
|
|
59
|
-
nameKz: string |
|
|
62
|
+
nameRu: string | null;
|
|
63
|
+
nameKz: string | null;
|
|
60
64
|
ids: string | number | null;
|
|
61
65
|
|
|
62
66
|
constructor(id: string | number | null = null, nameRu: string | null = null, nameKz: string | null = null, code: string | null = null, ids: string | null = null) {
|
|
@@ -137,7 +141,16 @@ export class MenuOption {
|
|
|
137
141
|
}
|
|
138
142
|
}
|
|
139
143
|
|
|
140
|
-
export const InitialColumns = ()
|
|
144
|
+
export const InitialColumns = (): {
|
|
145
|
+
addRegNumber: boolean | null;
|
|
146
|
+
number: boolean | null;
|
|
147
|
+
iin: boolean | null;
|
|
148
|
+
longName: boolean | null;
|
|
149
|
+
userName: boolean | null;
|
|
150
|
+
processCodeTitle: boolean | null;
|
|
151
|
+
historyStatusTitle: boolean | null;
|
|
152
|
+
dateCreated: boolean | null;
|
|
153
|
+
} => {
|
|
141
154
|
return {
|
|
142
155
|
addRegNumber: null,
|
|
143
156
|
number: null,
|
|
@@ -266,7 +279,7 @@ class Person {
|
|
|
266
279
|
const date = this.formatDate(this.birthDate);
|
|
267
280
|
if (date) {
|
|
268
281
|
const age = Math.abs(new Date(Date.now() - new Date(date).getTime()).getUTCFullYear() - 1970);
|
|
269
|
-
if (new Date(date) < new Date(Date.now()) && age
|
|
282
|
+
if (new Date(date) < new Date(Date.now()) && age >= 0) {
|
|
270
283
|
return age.toString();
|
|
271
284
|
}
|
|
272
285
|
} else {
|
|
@@ -357,11 +370,11 @@ export class Contragent extends Person {
|
|
|
357
370
|
|
|
358
371
|
export class Member extends Person {
|
|
359
372
|
response?: {
|
|
360
|
-
contragent?:
|
|
361
|
-
questionnaires?:
|
|
362
|
-
contacts?:
|
|
363
|
-
documents?:
|
|
364
|
-
addresses?:
|
|
373
|
+
contragent?: ContragentType;
|
|
374
|
+
questionnaires?: ContragentQuestionaries[];
|
|
375
|
+
contacts?: ContragentContacts[];
|
|
376
|
+
documents?: ContragentDocuments[];
|
|
377
|
+
addresses?: ContragentAddress[];
|
|
365
378
|
};
|
|
366
379
|
verifyType: any;
|
|
367
380
|
verifyDate: any;
|
|
@@ -428,6 +441,7 @@ export class Member extends Person {
|
|
|
428
441
|
hasAgreement: boolean | null;
|
|
429
442
|
otpTokenId: string | null;
|
|
430
443
|
otpCode: string | null;
|
|
444
|
+
documentsList: ContragentDocuments[];
|
|
431
445
|
constructor(
|
|
432
446
|
id = 0,
|
|
433
447
|
type = 1,
|
|
@@ -495,6 +509,7 @@ export class Member extends Person {
|
|
|
495
509
|
isNotary = false,
|
|
496
510
|
) {
|
|
497
511
|
super(id, type, iin, longName, lastName, firstName, middleName, birthDate, gender, genderName, birthPlace, age);
|
|
512
|
+
this.documentsList = [];
|
|
498
513
|
this.postIndex = null;
|
|
499
514
|
this.isPdl = false;
|
|
500
515
|
this.migrationCard = migrationCard;
|
|
@@ -645,48 +660,20 @@ export class Member extends Person {
|
|
|
645
660
|
}
|
|
646
661
|
}
|
|
647
662
|
|
|
648
|
-
export class PolicyholderForm extends Member {
|
|
649
|
-
constructor(...args: any) {
|
|
650
|
-
super(...args);
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
export class InsuredForm extends Member {
|
|
655
|
-
constructor(...args: any) {
|
|
656
|
-
super(...args);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
export class BeneficiaryForm extends Member {
|
|
661
|
-
constructor(...args: any) {
|
|
662
|
-
super(...args);
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
export class BeneficialOwnerForm extends Member {
|
|
667
|
-
constructor(...args: any) {
|
|
668
|
-
super(...args);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export class PolicyholdersRepresentativeForm extends Member {
|
|
673
|
-
constructor(...args: any) {
|
|
674
|
-
super(...args);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
|
|
678
663
|
export class ProductConditions {
|
|
679
664
|
signDate: string | null;
|
|
680
665
|
birthDate: string | null;
|
|
681
666
|
gender: Value;
|
|
682
667
|
insuranceCase: string | null;
|
|
683
|
-
coverPeriod:
|
|
684
|
-
payPeriod:
|
|
668
|
+
coverPeriod: number | null;
|
|
669
|
+
payPeriod: number | null;
|
|
685
670
|
termsOfInsurance: string | null;
|
|
686
671
|
annualIncome: string | null;
|
|
687
672
|
processIndexRate: Value;
|
|
688
673
|
requestedSumInsured: number | string | null;
|
|
674
|
+
requestedSumInsuredInDollar: number | string | null;
|
|
689
675
|
insurancePremiumPerMonth: number | string | null;
|
|
676
|
+
insurancePremiumPerMonthInDollar: number | string | null;
|
|
690
677
|
establishingGroupDisabilityFromThirdYear: string | null;
|
|
691
678
|
possibilityToChange: string | null;
|
|
692
679
|
deathOfInsuredDueToAccident: Value;
|
|
@@ -695,18 +682,24 @@ export class ProductConditions {
|
|
|
695
682
|
bodyInjury: Value;
|
|
696
683
|
criticalIllnessOfTheInsured: Value;
|
|
697
684
|
paymentPeriod: Value;
|
|
698
|
-
amountOfInsurancePremium: string | null;
|
|
699
|
-
lifeMultiply: string | null;
|
|
700
|
-
lifeAdditive: string | null;
|
|
701
|
-
lifeMultiplyClient: string | null;
|
|
702
|
-
lifeAdditiveClient: string | null;
|
|
703
|
-
adbMultiply: string | null;
|
|
704
|
-
adbAdditive: string | null;
|
|
705
|
-
disabilityMultiply: string | null;
|
|
706
|
-
disabilityAdditive: string | null;
|
|
685
|
+
amountOfInsurancePremium: string | number | null;
|
|
686
|
+
lifeMultiply: string | number | null;
|
|
687
|
+
lifeAdditive: string | number | null;
|
|
688
|
+
lifeMultiplyClient: string | number | null;
|
|
689
|
+
lifeAdditiveClient: string | number | null;
|
|
690
|
+
adbMultiply: string | number | null;
|
|
691
|
+
adbAdditive: string | number | null;
|
|
692
|
+
disabilityMultiply: string | number | null;
|
|
693
|
+
disabilityAdditive: string | number | null;
|
|
707
694
|
processTariff: Value;
|
|
708
695
|
riskGroup: Value;
|
|
709
696
|
riskGroup2: Value;
|
|
697
|
+
additionalConditionAnnuityPayments: boolean;
|
|
698
|
+
guaranteedPeriod: number | null;
|
|
699
|
+
typeAnnuityInsurance: Value;
|
|
700
|
+
termAnnuityPayments: number | string | null;
|
|
701
|
+
periodAnnuityPayment: Value;
|
|
702
|
+
amountAnnuityPayments: number | string | null;
|
|
710
703
|
constructor(
|
|
711
704
|
insuranceCase = null,
|
|
712
705
|
coverPeriod = null,
|
|
@@ -736,7 +729,15 @@ export class ProductConditions {
|
|
|
736
729
|
processTariff = new Value(),
|
|
737
730
|
riskGroup = new Value(),
|
|
738
731
|
riskGroup2 = new Value(),
|
|
732
|
+
additionalConditionAnnuityPayments = false,
|
|
733
|
+
guaranteedPeriod = null,
|
|
734
|
+
typeAnnuityInsurance = new Value(),
|
|
735
|
+
termAnnuityPayments = null,
|
|
736
|
+
periodAnnuityPayment = new Value(),
|
|
737
|
+
amountAnnuityPayments = null,
|
|
739
738
|
) {
|
|
739
|
+
this.requestedSumInsuredInDollar = null;
|
|
740
|
+
this.insurancePremiumPerMonthInDollar = null;
|
|
740
741
|
this.signDate = null;
|
|
741
742
|
this.birthDate = null;
|
|
742
743
|
this.gender = new Value();
|
|
@@ -768,16 +769,30 @@ export class ProductConditions {
|
|
|
768
769
|
this.processTariff = processTariff;
|
|
769
770
|
this.riskGroup = riskGroup;
|
|
770
771
|
this.riskGroup2 = riskGroup2;
|
|
772
|
+
this.additionalConditionAnnuityPayments = additionalConditionAnnuityPayments;
|
|
773
|
+
this.guaranteedPeriod = guaranteedPeriod;
|
|
774
|
+
this.typeAnnuityInsurance = typeAnnuityInsurance;
|
|
775
|
+
this.termAnnuityPayments = termAnnuityPayments;
|
|
776
|
+
this.periodAnnuityPayment = periodAnnuityPayment;
|
|
777
|
+
this.amountAnnuityPayments = amountAnnuityPayments;
|
|
771
778
|
}
|
|
772
779
|
}
|
|
773
780
|
|
|
774
781
|
export class MemberSettings {
|
|
775
782
|
has?: boolean;
|
|
776
783
|
isMultiple?: boolean;
|
|
777
|
-
|
|
784
|
+
required?: boolean;
|
|
785
|
+
limit?: number;
|
|
786
|
+
constructor(options?: { has?: boolean; isMultiple?: boolean; required?: boolean; limit?: number }) {
|
|
778
787
|
if (options) {
|
|
779
788
|
this.has = options.has;
|
|
780
789
|
this.isMultiple = options.isMultiple;
|
|
790
|
+
this.limit = options.limit;
|
|
791
|
+
if (this.has === true) {
|
|
792
|
+
this.required = options.required;
|
|
793
|
+
} else {
|
|
794
|
+
this.required = false;
|
|
795
|
+
}
|
|
781
796
|
}
|
|
782
797
|
}
|
|
783
798
|
}
|
|
@@ -785,6 +800,11 @@ export class MemberSettings {
|
|
|
785
800
|
export class DataStoreClass {
|
|
786
801
|
// IMP Контроллер фич
|
|
787
802
|
controls: {
|
|
803
|
+
// Cтавит значения по дефолту полям
|
|
804
|
+
setDefaults: {
|
|
805
|
+
sectorCode: boolean;
|
|
806
|
+
percentage: boolean;
|
|
807
|
+
};
|
|
788
808
|
// Проверка на роль при авторизации
|
|
789
809
|
onAuth: boolean;
|
|
790
810
|
// Согласие на главной странице
|
|
@@ -801,6 +821,8 @@ export class DataStoreClass {
|
|
|
801
821
|
hasCalculator: boolean;
|
|
802
822
|
// Блок прикрепления к менеджеру
|
|
803
823
|
hasAttachment: boolean;
|
|
824
|
+
// Решение АС
|
|
825
|
+
hasAffiliation: boolean;
|
|
804
826
|
};
|
|
805
827
|
members: {
|
|
806
828
|
clientApp: MemberSettings;
|
|
@@ -809,8 +831,9 @@ export class DataStoreClass {
|
|
|
809
831
|
beneficialOwnerApp: MemberSettings;
|
|
810
832
|
spokesmanApp: MemberSettings;
|
|
811
833
|
};
|
|
834
|
+
iframeLoading: boolean;
|
|
812
835
|
hasLayoutMargins: boolean;
|
|
813
|
-
readonly product:
|
|
836
|
+
readonly product: Projects | null;
|
|
814
837
|
showNav: boolean;
|
|
815
838
|
menuItems: MenuItem[];
|
|
816
839
|
menu: {
|
|
@@ -818,6 +841,7 @@ export class DataStoreClass {
|
|
|
818
841
|
hasBack: boolean;
|
|
819
842
|
loading: boolean;
|
|
820
843
|
backIcon: string;
|
|
844
|
+
moreIcon: string;
|
|
821
845
|
onBack: any;
|
|
822
846
|
onLink: any;
|
|
823
847
|
selectedItem: MenuItem;
|
|
@@ -829,7 +853,7 @@ export class DataStoreClass {
|
|
|
829
853
|
};
|
|
830
854
|
buttons: MenuItem[];
|
|
831
855
|
isButtonsLoading: boolean;
|
|
832
|
-
panelAction:
|
|
856
|
+
panelAction: keyof typeof constants.actions | null;
|
|
833
857
|
panel: {
|
|
834
858
|
open: boolean;
|
|
835
859
|
overlay: boolean;
|
|
@@ -855,6 +879,7 @@ export class DataStoreClass {
|
|
|
855
879
|
documentIssuers: Value[];
|
|
856
880
|
familyStatuses: Value[];
|
|
857
881
|
relations: Value[];
|
|
882
|
+
insurancePay: Value[];
|
|
858
883
|
questionRefs: Value[];
|
|
859
884
|
residents: Value[];
|
|
860
885
|
ipdl: Value[];
|
|
@@ -863,16 +888,17 @@ export class DataStoreClass {
|
|
|
863
888
|
fontSize: number;
|
|
864
889
|
isFontChangerOpen: boolean = false;
|
|
865
890
|
isLoading: boolean = false;
|
|
866
|
-
userNotFound: boolean = false;
|
|
867
891
|
user: User;
|
|
868
892
|
accessToken: string | null = null;
|
|
869
893
|
refreshToken: string | null = null;
|
|
870
894
|
processCoverTypeSum: Value[];
|
|
871
895
|
processIndexRate: Value[];
|
|
872
896
|
processPaymentPeriod: Value[];
|
|
897
|
+
dicAnnuityTypeList: Value[];
|
|
898
|
+
processAnnuityPaymentPeriod: Value[];
|
|
873
899
|
taskList: TaskListItem[];
|
|
874
900
|
processHistory: TaskHistory[];
|
|
875
|
-
contragentList:
|
|
901
|
+
contragentList: ContragentType[];
|
|
876
902
|
contragentFormKey: string;
|
|
877
903
|
processCode: number | null;
|
|
878
904
|
groupCode: string;
|
|
@@ -883,7 +909,33 @@ export class DataStoreClass {
|
|
|
883
909
|
ManagerPolicy: Value[];
|
|
884
910
|
AgentData: AgentData[];
|
|
885
911
|
riskGroup: Value[];
|
|
912
|
+
currencies: {
|
|
913
|
+
eur: number | null;
|
|
914
|
+
usd: number | null;
|
|
915
|
+
};
|
|
916
|
+
filters: {
|
|
917
|
+
show: (item: MenuItem) => boolean;
|
|
918
|
+
disabled: (item: MenuItem) => boolean;
|
|
919
|
+
};
|
|
886
920
|
constructor() {
|
|
921
|
+
this.filters = {
|
|
922
|
+
show: (item: MenuItem) => {
|
|
923
|
+
if (typeof item.show === 'boolean') {
|
|
924
|
+
return item.show;
|
|
925
|
+
}
|
|
926
|
+
return true;
|
|
927
|
+
},
|
|
928
|
+
disabled: (item: MenuItem) => {
|
|
929
|
+
if (typeof item.disabled === 'boolean') {
|
|
930
|
+
return item.disabled;
|
|
931
|
+
}
|
|
932
|
+
return false;
|
|
933
|
+
},
|
|
934
|
+
};
|
|
935
|
+
this.currencies = {
|
|
936
|
+
eur: null,
|
|
937
|
+
usd: null,
|
|
938
|
+
};
|
|
887
939
|
this.members = {
|
|
888
940
|
clientApp: new MemberSettings(),
|
|
889
941
|
insuredApp: new MemberSettings(),
|
|
@@ -892,6 +944,10 @@ export class DataStoreClass {
|
|
|
892
944
|
spokesmanApp: new MemberSettings(),
|
|
893
945
|
};
|
|
894
946
|
this.controls = {
|
|
947
|
+
setDefaults: {
|
|
948
|
+
sectorCode: true,
|
|
949
|
+
percentage: true,
|
|
950
|
+
},
|
|
895
951
|
onAuth: false,
|
|
896
952
|
hasAnketa: true,
|
|
897
953
|
hasAgreement: true,
|
|
@@ -900,16 +956,20 @@ export class DataStoreClass {
|
|
|
900
956
|
hasInsis: false,
|
|
901
957
|
hasCalculator: false,
|
|
902
958
|
hasAttachment: true,
|
|
959
|
+
hasAffiliation: true,
|
|
903
960
|
};
|
|
961
|
+
this.iframeLoading = false;
|
|
904
962
|
this.hasLayoutMargins = true;
|
|
905
963
|
this.processIndexRate = [];
|
|
906
964
|
this.processPaymentPeriod = [];
|
|
965
|
+
this.dicAnnuityTypeList = [];
|
|
966
|
+
this.processAnnuityPaymentPeriod = [];
|
|
907
967
|
this.questionRefs = [];
|
|
908
968
|
this.SaleChanellPolicy = [];
|
|
909
969
|
this.RegionPolicy = [];
|
|
910
970
|
this.ManagerPolicy = [];
|
|
911
971
|
this.AgentData = [];
|
|
912
|
-
this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as
|
|
972
|
+
this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Projects) : null;
|
|
913
973
|
this.showNav = true;
|
|
914
974
|
this.menuItems = [];
|
|
915
975
|
this.menu = {
|
|
@@ -917,6 +977,7 @@ export class DataStoreClass {
|
|
|
917
977
|
hasBack: false,
|
|
918
978
|
loading: false,
|
|
919
979
|
backIcon: 'mdi-arrow-left',
|
|
980
|
+
moreIcon: 'mdi-dots-vertical',
|
|
920
981
|
onBack: {},
|
|
921
982
|
onLink: {},
|
|
922
983
|
selectedItem: new MenuItem(),
|
|
@@ -959,6 +1020,7 @@ export class DataStoreClass {
|
|
|
959
1020
|
this.documentIssuers = [];
|
|
960
1021
|
this.familyStatuses = [];
|
|
961
1022
|
this.relations = [];
|
|
1023
|
+
this.insurancePay = [];
|
|
962
1024
|
this.residents = [];
|
|
963
1025
|
this.ipdl = [new Value(1, null), new Value(2, 'Да'), new Value(3, 'Нет')];
|
|
964
1026
|
this.economySectorCode = [];
|
|
@@ -966,7 +1028,6 @@ export class DataStoreClass {
|
|
|
966
1028
|
this.fontSize = 14;
|
|
967
1029
|
this.isFontChangerOpen = false;
|
|
968
1030
|
this.isLoading = false;
|
|
969
|
-
this.userNotFound = false;
|
|
970
1031
|
this.user = new User();
|
|
971
1032
|
this.accessToken = null;
|
|
972
1033
|
this.refreshToken = null;
|
|
@@ -1024,20 +1085,30 @@ export class FormStoreClass {
|
|
|
1024
1085
|
additionalInsuranceTermsWithout: AddCover[];
|
|
1025
1086
|
signUrls: SignUrlType[];
|
|
1026
1087
|
epayLink: string | null;
|
|
1088
|
+
invoiceData: EpayResponse | null;
|
|
1027
1089
|
affilationResolution: {
|
|
1028
1090
|
id: string | number | null;
|
|
1029
1091
|
processInstanceId: string | number | null;
|
|
1030
1092
|
number: string | number | null;
|
|
1031
|
-
date: string |
|
|
1093
|
+
date: string | null;
|
|
1094
|
+
};
|
|
1095
|
+
finCenterData: {
|
|
1096
|
+
processInstanceId: string | number | null;
|
|
1097
|
+
regNumber: string | number | null;
|
|
1098
|
+
date: string | null;
|
|
1032
1099
|
};
|
|
1033
1100
|
signedDocumentList: IDocument[];
|
|
1034
1101
|
surveyByHealthBase: AnketaFirst | null;
|
|
1102
|
+
surveyByHealthBasePolicyholder: AnketaFirst | null;
|
|
1035
1103
|
surveyByCriticalBase: AnketaFirst | null;
|
|
1104
|
+
surveyByCriticalBasePolicyholder: AnketaFirst | null;
|
|
1036
1105
|
surveyByHealthSecond: AnketaSecond[] | null;
|
|
1037
1106
|
surveyByCriticalSecond: AnketaSecond[] | null;
|
|
1038
1107
|
definedAnswersId: {
|
|
1039
1108
|
surveyByHealthBase: any;
|
|
1040
1109
|
surveyByCriticalBase: any;
|
|
1110
|
+
surveyByHealthBasePolicyholder: any;
|
|
1111
|
+
surveyByCriticalBasePolicyholder: any;
|
|
1041
1112
|
};
|
|
1042
1113
|
birthInfos: BirthInfoGKB[];
|
|
1043
1114
|
SaleChanellPolicy: Value;
|
|
@@ -1065,26 +1136,29 @@ export class FormStoreClass {
|
|
|
1065
1136
|
isPolicyholderIPDL: boolean = false;
|
|
1066
1137
|
applicationData: {
|
|
1067
1138
|
processInstanceId: number | string;
|
|
1068
|
-
statusCode?:
|
|
1139
|
+
statusCode?: keyof typeof Statuses;
|
|
1069
1140
|
clientApp?: any;
|
|
1070
1141
|
insuredApp?: any;
|
|
1071
1142
|
beneficiaryApp?: any;
|
|
1072
1143
|
beneficialOwnerApp?: any;
|
|
1073
1144
|
spokesmanApp?: any;
|
|
1074
1145
|
isTask?: boolean | null;
|
|
1146
|
+
policyAppDto?: PolicyAppDto;
|
|
1147
|
+
insisWorkDataApp?: InsisWorkDataApp;
|
|
1148
|
+
addCoverDto?: AddCover[];
|
|
1075
1149
|
};
|
|
1076
|
-
policyholderForm:
|
|
1077
|
-
policyholderFormKey:
|
|
1078
|
-
policyholdersRepresentativeForm:
|
|
1079
|
-
policyholdersRepresentativeFormKey:
|
|
1080
|
-
beneficiaryForm:
|
|
1081
|
-
beneficiaryFormKey:
|
|
1150
|
+
policyholderForm: Member;
|
|
1151
|
+
policyholderFormKey: StoreMembers.policyholderForm;
|
|
1152
|
+
policyholdersRepresentativeForm: Member;
|
|
1153
|
+
policyholdersRepresentativeFormKey: StoreMembers.policyholdersRepresentativeForm;
|
|
1154
|
+
beneficiaryForm: Member[];
|
|
1155
|
+
beneficiaryFormKey: StoreMembers.beneficiaryForm;
|
|
1082
1156
|
beneficiaryFormIndex: number;
|
|
1083
|
-
beneficialOwnerForm:
|
|
1157
|
+
beneficialOwnerForm: Member[];
|
|
1084
1158
|
beneficialOwnerFormIndex: number;
|
|
1085
|
-
beneficialOwnerFormKey:
|
|
1086
|
-
insuredForm:
|
|
1087
|
-
insuredFormKey:
|
|
1159
|
+
beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
|
|
1160
|
+
insuredForm: Member[];
|
|
1161
|
+
insuredFormKey: StoreMembers.insuredForm;
|
|
1088
1162
|
insuredFormIndex: number;
|
|
1089
1163
|
productConditionsForm: ProductConditions;
|
|
1090
1164
|
productConditionsFormKey: string;
|
|
@@ -1097,20 +1171,30 @@ export class FormStoreClass {
|
|
|
1097
1171
|
this.additionalInsuranceTermsWithout = [];
|
|
1098
1172
|
this.signUrls = [];
|
|
1099
1173
|
this.epayLink = null;
|
|
1174
|
+
this.invoiceData = null;
|
|
1100
1175
|
this.affilationResolution = {
|
|
1101
1176
|
id: null,
|
|
1102
1177
|
processInstanceId: null,
|
|
1103
1178
|
number: null,
|
|
1104
1179
|
date: null,
|
|
1105
1180
|
};
|
|
1181
|
+
this.finCenterData = {
|
|
1182
|
+
processInstanceId: null,
|
|
1183
|
+
regNumber: null,
|
|
1184
|
+
date: null,
|
|
1185
|
+
};
|
|
1106
1186
|
this.signedDocumentList = [];
|
|
1107
1187
|
this.surveyByHealthBase = null;
|
|
1188
|
+
this.surveyByHealthBasePolicyholder = null;
|
|
1108
1189
|
this.surveyByCriticalBase = null;
|
|
1190
|
+
this.surveyByCriticalBasePolicyholder = null;
|
|
1109
1191
|
this.surveyByHealthSecond = null;
|
|
1110
1192
|
this.surveyByCriticalSecond = null;
|
|
1111
1193
|
this.definedAnswersId = {
|
|
1112
1194
|
surveyByHealthBase: {},
|
|
1113
1195
|
surveyByCriticalBase: {},
|
|
1196
|
+
surveyByHealthBasePolicyholder: {},
|
|
1197
|
+
surveyByCriticalBasePolicyholder: {},
|
|
1114
1198
|
};
|
|
1115
1199
|
this.birthInfos = [];
|
|
1116
1200
|
this.SaleChanellPolicy = new Value();
|
|
@@ -1144,18 +1228,18 @@ export class FormStoreClass {
|
|
|
1144
1228
|
this.isActOwnBehalf = true;
|
|
1145
1229
|
this.hasRepresentative = false;
|
|
1146
1230
|
this.applicationData = { processInstanceId: 0 };
|
|
1147
|
-
this.policyholderForm = new
|
|
1148
|
-
this.policyholderFormKey =
|
|
1149
|
-
this.policyholdersRepresentativeForm = new
|
|
1150
|
-
this.policyholdersRepresentativeFormKey =
|
|
1151
|
-
this.beneficiaryForm = [new
|
|
1152
|
-
this.beneficiaryFormKey =
|
|
1231
|
+
this.policyholderForm = new Member();
|
|
1232
|
+
this.policyholderFormKey = StoreMembers.policyholderForm;
|
|
1233
|
+
this.policyholdersRepresentativeForm = new Member();
|
|
1234
|
+
this.policyholdersRepresentativeFormKey = StoreMembers.policyholdersRepresentativeForm;
|
|
1235
|
+
this.beneficiaryForm = [new Member()];
|
|
1236
|
+
this.beneficiaryFormKey = StoreMembers.beneficiaryForm;
|
|
1153
1237
|
this.beneficiaryFormIndex = 0;
|
|
1154
|
-
this.beneficialOwnerForm = [new
|
|
1238
|
+
this.beneficialOwnerForm = [new Member()];
|
|
1155
1239
|
this.beneficialOwnerFormIndex = 0;
|
|
1156
|
-
this.beneficialOwnerFormKey =
|
|
1157
|
-
this.insuredForm = [new
|
|
1158
|
-
this.insuredFormKey =
|
|
1240
|
+
this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
|
|
1241
|
+
this.insuredForm = [new Member()];
|
|
1242
|
+
this.insuredFormKey = StoreMembers.insuredForm;
|
|
1159
1243
|
this.insuredFormIndex = 0;
|
|
1160
1244
|
this.productConditionsForm = new ProductConditions();
|
|
1161
1245
|
this.productConditionsFormKey = 'productConditionsForm';
|
package/composables/constants.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Actions, PostActions, Roles, Statuses } from '../types/enum';
|
|
2
|
+
|
|
1
3
|
export const constants = Object.freeze({
|
|
2
4
|
products: {
|
|
3
|
-
pensionannuity: 1,
|
|
4
5
|
baiterek: 3,
|
|
5
6
|
halykmycar: 5,
|
|
6
7
|
lifetrip: 7,
|
|
@@ -9,59 +10,31 @@ export const constants = Object.freeze({
|
|
|
9
10
|
gons: 10,
|
|
10
11
|
halykkazyna: 11,
|
|
11
12
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
editableStatuses: [Statuses.StartForm, Statuses.EditBeneficiaryForm, Statuses.EditForm],
|
|
14
|
+
documentsLinkVisibleStatuses: [
|
|
15
|
+
Statuses.DocumentsSignedFrom,
|
|
16
|
+
Statuses.UnderwriterForm,
|
|
17
|
+
Statuses.AffilationResolutionForm,
|
|
18
|
+
Statuses.Completed,
|
|
19
|
+
Statuses.InsurancePremiumOnlinePaid,
|
|
20
|
+
],
|
|
21
|
+
returnStatementStatuses: [Statuses.DocumentsSignedFrom, Statuses.ContractSignedFrom, Statuses.WaitingInsurancePremiumForm, Statuses.UnderwriterForm],
|
|
22
|
+
cancelApplicationStatuses: [
|
|
23
|
+
Statuses.StartForm,
|
|
24
|
+
Statuses.EditForm,
|
|
25
|
+
Statuses.EditBeneficiaryForm,
|
|
26
|
+
Statuses.WaitingInsurancePremiumForm,
|
|
27
|
+
Statuses.DocumentsSignedFrom,
|
|
28
|
+
Statuses.ContractSignedFrom,
|
|
29
|
+
],
|
|
15
30
|
gbdErrors: ['INVALID', 'TIMEOUT', 'ERROR', 'NOT_FOUND'],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
object: 'object',
|
|
20
|
-
},
|
|
21
|
-
roles: {
|
|
22
|
-
manager: 'Manager',
|
|
23
|
-
admin: 'Admin',
|
|
24
|
-
underwriter: 'Underwriter',
|
|
25
|
-
agent: 'Agent',
|
|
26
|
-
compliance: 'Compliance',
|
|
27
|
-
agentMycar: 'AgentMycar',
|
|
28
|
-
analyst: 'Analyst',
|
|
29
|
-
upk: 'UPK',
|
|
30
|
-
finCenter: 'FinCenter',
|
|
31
|
-
supervisor: 'Supervisor',
|
|
32
|
-
support: 'Support',
|
|
33
|
-
managerHalykBank: 'ManagerHalykBank',
|
|
34
|
-
serviceManager: 'ServiceManager',
|
|
35
|
-
drn: 'DRNSJ',
|
|
36
|
-
},
|
|
37
|
-
actions: {
|
|
38
|
-
accept: 'accept',
|
|
39
|
-
rejectclient: 'rejectclient',
|
|
40
|
-
reject: 'reject',
|
|
41
|
-
return: 'return',
|
|
42
|
-
claim: 'claim',
|
|
43
|
-
sign: 'sign',
|
|
44
|
-
pay: 'pay',
|
|
45
|
-
},
|
|
31
|
+
roles: Roles,
|
|
32
|
+
actions: Actions,
|
|
33
|
+
postActions: PostActions,
|
|
46
34
|
yearCases: [2, 0, 1, 1, 1, 2],
|
|
47
35
|
yearTitles: ['год', 'года', 'лет'],
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return: 'return',
|
|
52
|
-
reject: 'reject',
|
|
53
|
-
rejectclient: 'rejectclient',
|
|
54
|
-
},
|
|
55
|
-
postActions: {
|
|
56
|
-
font: 'font',
|
|
57
|
-
route: 'route',
|
|
58
|
-
applicationCreated: 'applicationCreated',
|
|
59
|
-
clipboard: 'clipboard',
|
|
60
|
-
toHomePage: 'toHomePage',
|
|
61
|
-
toStatementHistory: 'toStatementHistory',
|
|
62
|
-
toAuth: 'toAuth',
|
|
63
|
-
DOMevent: 'DOMevent',
|
|
64
|
-
Error401: 'Error401',
|
|
65
|
-
Error500: 'Error500',
|
|
36
|
+
currencySymbols: {
|
|
37
|
+
kzt: '₸',
|
|
38
|
+
usd: '$',
|
|
66
39
|
},
|
|
67
40
|
});
|