hl-core 0.0.10-beta.33 → 0.0.10-beta.35
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 +6 -0
- package/components/Pages/MemberForm.vue +7 -1
- package/components/Pages/ProductConditions.vue +0 -3
- package/components/Panel/PanelHandler.vue +3 -2
- package/composables/classes.ts +3 -9
- package/composables/constants.ts +1 -0
- package/composables/index.ts +3 -1
- package/locales/ru.json +15 -3
- package/package.json +1 -1
- package/store/data.store.ts +26 -11
- package/types/enum.ts +9 -0
- package/types/index.ts +2 -0
package/api/base.api.ts
CHANGED
|
@@ -462,6 +462,12 @@ export class ApiClass {
|
|
|
462
462
|
url: `/${this.productUrl}/api/Application/checkBeneficiariesActualPolicy?processInstanceId=${id}`,
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
+
async isRecalculate(id: string | number) {
|
|
466
|
+
return await this.axiosCall<boolean>({
|
|
467
|
+
method: Methods.GET,
|
|
468
|
+
url: `/${this.productUrl}/api/Application/IsRecalculate?processInstanceId=${id}`,
|
|
469
|
+
});
|
|
470
|
+
}
|
|
465
471
|
async setMember(whichMember: keyof typeof MemberCodes, data: any) {
|
|
466
472
|
return await this.axiosCall({
|
|
467
473
|
method: Methods.POST,
|
|
@@ -1645,7 +1645,13 @@ export default {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
|
-
if (
|
|
1648
|
+
if (
|
|
1649
|
+
whichForm.value === formStore.insuredFormKey ||
|
|
1650
|
+
(memberFromApplicaiton &&
|
|
1651
|
+
memberFromApplicaiton.processInstanceId &&
|
|
1652
|
+
formStore.applicationData.slave &&
|
|
1653
|
+
memberFromApplicaiton.processInstanceId === formStore.applicationData.slave.processInstanceId)
|
|
1654
|
+
) {
|
|
1649
1655
|
wasInsuredAction.value = true;
|
|
1650
1656
|
if (dataStore.isPension) {
|
|
1651
1657
|
let data = {
|
|
@@ -1314,9 +1314,6 @@ export default defineComponent({
|
|
|
1314
1314
|
return isDisabled.value;
|
|
1315
1315
|
});
|
|
1316
1316
|
const currencyListFiltered = computed(() => {
|
|
1317
|
-
if (useEnv().isProduction) {
|
|
1318
|
-
return constants.currencyList.filter(i => i.code !== 'USD');
|
|
1319
|
-
}
|
|
1320
1317
|
return constants.currencyList;
|
|
1321
1318
|
});
|
|
1322
1319
|
|
|
@@ -511,7 +511,7 @@ export default defineComponent({
|
|
|
511
511
|
|
|
512
512
|
const onInit = async () => {
|
|
513
513
|
if (dataStore.controls.hasChooseSign) {
|
|
514
|
-
if (dataStore.isGons || dataStore.isLifeBusiness || dataStore.isPension || dataStore.isGns) {
|
|
514
|
+
if (dataStore.isBaiterek || dataStore.isGons || dataStore.isLifeBusiness || dataStore.isPension || dataStore.isGns) {
|
|
515
515
|
isElectronicContract.value = false;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -582,7 +582,8 @@ export default defineComponent({
|
|
|
582
582
|
const affiliateActions = computed(() => dataStore.panelAction === constants.actions.affiliate);
|
|
583
583
|
const chooseSignActions = computed(() => dataStore.controls.hasChooseSign && dataStore.panelAction === constants.actions.chooseSign);
|
|
584
584
|
const choosePayActions = computed(() => dataStore.controls.hasChoosePay && dataStore.panelAction === constants.actions.choosePay);
|
|
585
|
-
|
|
585
|
+
// TODO на все продукты новое подписание
|
|
586
|
+
const isNewSign = computed(() => dataStore.isPension || dataStore.isGons || dataStore.isBaiterek);
|
|
586
587
|
const paymentPeriod = computed(() => formStore.productConditionsForm.paymentPeriod.nameRu);
|
|
587
588
|
const insurancePremiumPerMonth = computed(() => {
|
|
588
589
|
if (dataStore.isGons && formStore.productConditionsForm.currency.code === 'USD') {
|
package/composables/classes.ts
CHANGED
|
@@ -928,13 +928,7 @@ export class ProductConditions {
|
|
|
928
928
|
this.fixInsSum = fixInsSum;
|
|
929
929
|
this.calcDate = calcDate;
|
|
930
930
|
this.contractEndDate = contractEndDate;
|
|
931
|
-
this.currency =
|
|
932
|
-
code: 'KZT',
|
|
933
|
-
id: '1',
|
|
934
|
-
nameKz: 'Тенге',
|
|
935
|
-
nameRu: 'Тенге',
|
|
936
|
-
ids: '',
|
|
937
|
-
};
|
|
931
|
+
this.currency = currency;
|
|
938
932
|
}
|
|
939
933
|
|
|
940
934
|
getSingleTripDays() {
|
|
@@ -1129,7 +1123,6 @@ export class DataStoreClass {
|
|
|
1129
1123
|
workTypes: Value[];
|
|
1130
1124
|
sportsTypes: Value[];
|
|
1131
1125
|
purposes: Value[];
|
|
1132
|
-
|
|
1133
1126
|
constructor() {
|
|
1134
1127
|
this.projectConfig = null;
|
|
1135
1128
|
this.filters = {
|
|
@@ -1453,7 +1446,7 @@ export class FormStoreClass {
|
|
|
1453
1446
|
canBeClaimed: boolean | null;
|
|
1454
1447
|
applicationTaskId: string | null;
|
|
1455
1448
|
requiredDocuments: RequiredDocument[];
|
|
1456
|
-
|
|
1449
|
+
isNeedToRecalculate: boolean;
|
|
1457
1450
|
constructor() {
|
|
1458
1451
|
this.regNumber = null;
|
|
1459
1452
|
this.policyNumber = null;
|
|
@@ -1562,6 +1555,7 @@ export class FormStoreClass {
|
|
|
1562
1555
|
this.canBeClaimed = null;
|
|
1563
1556
|
this.applicationTaskId = null;
|
|
1564
1557
|
this.requiredDocuments = [];
|
|
1558
|
+
this.isNeedToRecalculate = false;
|
|
1565
1559
|
}
|
|
1566
1560
|
}
|
|
1567
1561
|
|
package/composables/constants.ts
CHANGED
package/composables/index.ts
CHANGED
|
@@ -709,7 +709,9 @@ export class RoleController {
|
|
|
709
709
|
const dataStore = useDataStore();
|
|
710
710
|
const hasAccessByProduct = (() => {
|
|
711
711
|
const product = productFromExternal as Projects;
|
|
712
|
-
if (dataStore.isLifetrip || product === 'lifetrip'
|
|
712
|
+
if (dataStore.isLifetrip || product === 'lifetrip') return this.isBranchDirector();
|
|
713
|
+
if (dataStore.isPension || product === 'pensionannuitynew') return this.isBranchDirector();
|
|
714
|
+
if (dataStore.isLifeBusiness || product === 'lifebusiness') return this.isHeadManager() || this.isBranchDirector();
|
|
713
715
|
return false;
|
|
714
716
|
})();
|
|
715
717
|
return this.isManager() || this.isAgent() || this.isAgentMycar() || this.isManagerHalykBank() || this.isServiceManager() || this.isAgentAuletti() || hasAccessByProduct;
|
package/locales/ru.json
CHANGED
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
"successProfile": "Профиль успешно обновлен",
|
|
149
149
|
"errorOsns": "По данному БИН на дату заключения заявления не найден договор ОСНС. Просим проверить БИН Страхователя.",
|
|
150
150
|
"needDigDoc": "Нужно получить цифровой документ {text}",
|
|
151
|
+
"needToRecalc": "Дата оплаты не совпадает с датой договора, нажмите «Перерасчет» и отправьте клиенту новый QR для подписания.",
|
|
151
152
|
"notDigDoc": "Выданный документ не найден"
|
|
152
153
|
},
|
|
153
154
|
"notSignedContract": "Неподписанный Договор",
|
|
@@ -246,6 +247,7 @@
|
|
|
246
247
|
"downloadPaymentInvoice": "Скачать счет на оплату",
|
|
247
248
|
"copyToClient": "Скопировать ссылку для клиента",
|
|
248
249
|
"searchByFio": "Поиск по ФИО",
|
|
250
|
+
"recalc": "Перерасчет",
|
|
249
251
|
"conclude": "Заключить"
|
|
250
252
|
},
|
|
251
253
|
"dialog": {
|
|
@@ -258,6 +260,7 @@
|
|
|
258
260
|
"confirmChoose": "Подтвердите выбор",
|
|
259
261
|
"confirmSign": "Подтвердите подписание",
|
|
260
262
|
"confirmSend": "Подтвердите отправку",
|
|
263
|
+
"confirmRecalc": "Подтвердите перерасчет",
|
|
261
264
|
"confirmPay": "Подтвердите оплату",
|
|
262
265
|
"do": "Вы действительно хотите сделать данное действие?",
|
|
263
266
|
"exit": "Вы действительно хотите выйти?",
|
|
@@ -275,6 +278,7 @@
|
|
|
275
278
|
"correctSum": "Корректна ли сумма страховой премии?",
|
|
276
279
|
"sign": "Вы действительно хотите подписать?",
|
|
277
280
|
"send": "Вы действительно хотите отправить?",
|
|
281
|
+
"recalc": "Вы действительно хотите сделать перерасчет?",
|
|
278
282
|
"chooseSign": "Вы действительно хотите выбрать метод подписания?",
|
|
279
283
|
"signed": "Вы действительно хотите отправить на следующий этап?",
|
|
280
284
|
"pay": "Вы действительно хотите оплатить?",
|
|
@@ -376,6 +380,7 @@
|
|
|
376
380
|
"countriesLength": "Число выбранных стран",
|
|
377
381
|
"isPolicyholderLegalEntity": "Является ли Страхователь Юридическим лицом?",
|
|
378
382
|
"additionalAgreement": "Заключить дополнительное соглашение",
|
|
383
|
+
"searchAgreementOSNS": "Поиск договора по ОСНС",
|
|
379
384
|
"productConditionsForm": {
|
|
380
385
|
"coverPeriod": "Срок страхования",
|
|
381
386
|
"payPeriod": "Период оплаты страховой премии",
|
|
@@ -844,7 +849,8 @@
|
|
|
844
849
|
"policyEndDate": "Дата окончания действия полиса",
|
|
845
850
|
"registrationCertificate": "Справка о регистрации",
|
|
846
851
|
"insuranceStartDate": "Дата начала страхования",
|
|
847
|
-
"insuranceEndDate": "Дата окончания страхования"
|
|
852
|
+
"insuranceEndDate": "Дата окончания страхования",
|
|
853
|
+
"typePolicyholder": "Тип страхователя"
|
|
848
854
|
},
|
|
849
855
|
"placeholders": {
|
|
850
856
|
"login": "Логин",
|
|
@@ -1019,7 +1025,9 @@
|
|
|
1019
1025
|
"recipientData": "Сведения о Получателе",
|
|
1020
1026
|
"deathInsFromNS": "Страхование от смерти от НС",
|
|
1021
1027
|
"deathInsAnyReason": "Смерть Застрахованного по любой причине",
|
|
1022
|
-
"mark": "Признак"
|
|
1028
|
+
"mark": "Признак",
|
|
1029
|
+
"signerData": "Данные Подписанта",
|
|
1030
|
+
"individualOwnerData": "Данные владельца ИП"
|
|
1023
1031
|
},
|
|
1024
1032
|
"bankDetailsForm": {
|
|
1025
1033
|
"title": "Банковские реквизиты",
|
|
@@ -1077,6 +1085,7 @@
|
|
|
1077
1085
|
"involvementForeignOfficial": "Отметка о принадлежности и/или причастности к публичному иностранному должностному лицу, его супруге (супругу) и близким родственникам?",
|
|
1078
1086
|
"organizationData": "Данные организации",
|
|
1079
1087
|
"fullOrganizationName": "Наименование организации (полное) с указанием организационно-правовой формы",
|
|
1088
|
+
"fullOrganizationNameKz": "Ұйымдық-құқықтық нысанын көрсете отырып, ұйымның атауы (Толық)",
|
|
1080
1089
|
"iik": "ИИК",
|
|
1081
1090
|
"nameBank": "Наименование банка",
|
|
1082
1091
|
"bik": "БИК",
|
|
@@ -1180,7 +1189,10 @@
|
|
|
1180
1189
|
"StatementCancel": "ЗАЯВЛЕНИЕ НА АННУЛИРОВАНИЕ",
|
|
1181
1190
|
"Akt": "АКТ РАСЧЕТА ВЫКУПНОЙ СУММЫ",
|
|
1182
1191
|
"StatementLoss": "ЗАЯВЛЕНИЕ ОБ УТЕРЕ СТРАХОВОГО ПОЛИСА И ВЫПИСКЕ ДУБЛИКАТА",
|
|
1183
|
-
"requisiteType": "Тип реквизитов"
|
|
1192
|
+
"requisiteType": "Тип реквизитов",
|
|
1193
|
+
"miscDoc": "Другой документ",
|
|
1194
|
+
"upload": "Загрузить",
|
|
1195
|
+
"originalContract": "Оригинал страхового полиса"
|
|
1184
1196
|
},
|
|
1185
1197
|
"agreementBlock": {
|
|
1186
1198
|
"title": "Согласие на сбор и обработку пресональных данных",
|
package/package.json
CHANGED
package/store/data.store.ts
CHANGED
|
@@ -1112,7 +1112,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1112
1112
|
conditionsData.policyAppDto.amountInCurrency = getNumber(String(this.formStore.productConditionsForm.requestedSumInsuredInDollar));
|
|
1113
1113
|
conditionsData.policyAppDto.currencyExchangeRate = this.currencies.usd;
|
|
1114
1114
|
}
|
|
1115
|
-
if (this.isGons
|
|
1115
|
+
if (this.isGons) {
|
|
1116
1116
|
conditionsData.policyAppDto.premiumInCurrency =
|
|
1117
1117
|
this.formStore.productConditionsForm.currency.code === 'KZT' ? null : getNumber(String(this.formStore.productConditionsForm.insurancePremiumPerMonthInDollar));
|
|
1118
1118
|
conditionsData.policyAppDto.amountInCurrency =
|
|
@@ -1206,8 +1206,10 @@ export const useDataStore = defineStore('data', {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
if (value !== null && this.formStore.definedAnswersId[whichSurvey][filter].length) {
|
|
1208
1208
|
const answer = this.formStore.definedAnswersId[whichSurvey][filter].find((answer: any) => answer.nameRu.match(new RegExp(value, 'i')));
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
if (this.formStore[whichSurvey]) {
|
|
1210
|
+
//@ts-ignore
|
|
1211
|
+
this.formStore[whichSurvey].body[index].first.answerId = answer.ids;
|
|
1212
|
+
}
|
|
1211
1213
|
}
|
|
1212
1214
|
return this.formStore.definedAnswersId[whichSurvey];
|
|
1213
1215
|
},
|
|
@@ -1882,7 +1884,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1882
1884
|
calculationData.amountInCurrency = getNumber(String(this.formStore.productConditionsForm.requestedSumInsuredInDollar));
|
|
1883
1885
|
calculationData.currencyExchangeRate = this.currencies.usd;
|
|
1884
1886
|
}
|
|
1885
|
-
if (
|
|
1887
|
+
if (this.isGons || product === 'gons') {
|
|
1886
1888
|
calculationData.premiumInCurrency =
|
|
1887
1889
|
this.formStore.productConditionsForm.currency.code === 'KZT' ? null : getNumber(String(this.formStore.productConditionsForm.insurancePremiumPerMonthInDollar));
|
|
1888
1890
|
calculationData.amountInCurrency =
|
|
@@ -2398,6 +2400,8 @@ export const useDataStore = defineStore('data', {
|
|
|
2398
2400
|
this.formStore.productConditionsForm.totalAmount7 = this.getNumberWithSpaces(govPremiums.totalAmount7 === null ? null : govPremiums.totalAmount7);
|
|
2399
2401
|
this.formStore.productConditionsForm.statePremium5 = this.getNumberWithSpaces(govPremiums.statePremium5 === null ? null : govPremiums.statePremium5);
|
|
2400
2402
|
this.formStore.productConditionsForm.statePremium7 = this.getNumberWithSpaces(govPremiums.statePremium7 === null ? null : govPremiums.statePremium7);
|
|
2403
|
+
const currency = constants.currencyList.find(item => item.code === applicationData.policyAppDto.currency);
|
|
2404
|
+
this.formStore.productConditionsForm.currency = currency ? currency : new Value();
|
|
2401
2405
|
}
|
|
2402
2406
|
|
|
2403
2407
|
if (this.isKazyna || this.isGons) {
|
|
@@ -2407,10 +2411,6 @@ export const useDataStore = defineStore('data', {
|
|
|
2407
2411
|
? this.getNumberWithSpacesAfterComma(applicationData.policyAppDto.premiumInCurrency)
|
|
2408
2412
|
: this.getNumberWithSpaces(applicationData.policyAppDto.premiumInCurrency);
|
|
2409
2413
|
}
|
|
2410
|
-
if (this.isGons && !useEnv().isProduction) {
|
|
2411
|
-
const currency = constants.currencyList.find(item => item.code === applicationData.policyAppDto.currency);
|
|
2412
|
-
this.formStore.productConditionsForm.currency = currency ? currency : new Value();
|
|
2413
|
-
}
|
|
2414
2414
|
const riskGroup = this.riskGroup.find(item => {
|
|
2415
2415
|
if (applicationData.policyAppDto.riskGroup == 0) {
|
|
2416
2416
|
return true;
|
|
@@ -2490,6 +2490,7 @@ export const useDataStore = defineStore('data', {
|
|
|
2490
2490
|
case constants.actions.signed:
|
|
2491
2491
|
case constants.actions.rejectclient:
|
|
2492
2492
|
case constants.actions.accept:
|
|
2493
|
+
case constants.actions.recalc:
|
|
2493
2494
|
case constants.actions.payed: {
|
|
2494
2495
|
try {
|
|
2495
2496
|
const sended = await this.sendTask(taskId, action, comment);
|
|
@@ -2545,7 +2546,10 @@ export const useDataStore = defineStore('data', {
|
|
|
2545
2546
|
async createInvoice() {
|
|
2546
2547
|
const premium =
|
|
2547
2548
|
this.isLifeBusiness || this.isGns ? this.formStore.applicationData.policyAppDto?.mainPremiumWithCommission : this.formStore.applicationData.policyAppDto?.premium;
|
|
2548
|
-
if (!premium)
|
|
2549
|
+
if (!premium) {
|
|
2550
|
+
this.showToaster('error', this.t('toaster.notZeroPremium'));
|
|
2551
|
+
return;
|
|
2552
|
+
}
|
|
2549
2553
|
try {
|
|
2550
2554
|
const created = await this.api.createInvoice(this.formStore.applicationData.processInstanceId, premium);
|
|
2551
2555
|
return !!created;
|
|
@@ -3559,7 +3563,14 @@ export const useDataStore = defineStore('data', {
|
|
|
3559
3563
|
if (validDocument.number) member.documentNumber = validDocument.number;
|
|
3560
3564
|
if (validDocument.beginDate) member.documentDate = reformatDate(validDocument.beginDate);
|
|
3561
3565
|
if (validDocument.endDate) member.documentExpire = reformatDate(validDocument.endDate);
|
|
3562
|
-
const documentIssuer = this.documentIssuers.find(i =>
|
|
3566
|
+
const documentIssuer = this.documentIssuers.find(i =>
|
|
3567
|
+
(i.nameRu as string).match(
|
|
3568
|
+
new RegExp(
|
|
3569
|
+
validDocument.issueOrganization.code === '001' ? 'МЮ РК' : validDocument.issueOrganization.code === '002' ? 'МВД РК' : validDocument.issueOrganization.nameRu,
|
|
3570
|
+
'i',
|
|
3571
|
+
),
|
|
3572
|
+
),
|
|
3573
|
+
);
|
|
3563
3574
|
if (documentIssuer) member.documentIssuers = documentIssuer;
|
|
3564
3575
|
}
|
|
3565
3576
|
} else {
|
|
@@ -3579,7 +3590,11 @@ export const useDataStore = defineStore('data', {
|
|
|
3579
3590
|
if (documentDate) member.documentDate = reformatDate(documentDate);
|
|
3580
3591
|
const documentExpire = personDoc.endDate;
|
|
3581
3592
|
if (documentExpire) member.documentExpire = reformatDate(documentExpire);
|
|
3582
|
-
const documentIssuer = this.documentIssuers.find(i =>
|
|
3593
|
+
const documentIssuer = this.documentIssuers.find(i =>
|
|
3594
|
+
(i.nameRu as string).match(
|
|
3595
|
+
new RegExp(personDoc.issueOrganization.code === '001' ? 'МЮ РК' : personDoc.issueOrganization.code === '002' ? 'МВД РК' : personDoc.issueOrganization.nameRu, 'i'),
|
|
3596
|
+
),
|
|
3597
|
+
);
|
|
3583
3598
|
if (documentIssuer) member.documentIssuers = documentIssuer;
|
|
3584
3599
|
}
|
|
3585
3600
|
}
|
package/types/enum.ts
CHANGED
|
@@ -54,6 +54,15 @@ export enum Actions {
|
|
|
54
54
|
|
|
55
55
|
rejectDocument = 'rejectDocument',
|
|
56
56
|
rejectDocumentCustom = 'rejectDocumentCustom',
|
|
57
|
+
|
|
58
|
+
recalc = 'recalc',
|
|
59
|
+
recalcCustom = 'recalcCustom',
|
|
60
|
+
|
|
61
|
+
annulment = 'annulment',
|
|
62
|
+
annulmentCustom = 'annulmentCustom',
|
|
63
|
+
|
|
64
|
+
otrs = 'otrs',
|
|
65
|
+
otrsCustom = 'otrsCustom'
|
|
57
66
|
}
|
|
58
67
|
|
|
59
68
|
export enum PostActions {
|
package/types/index.ts
CHANGED