hl-core 0.0.10-beta.75 → 0.0.10-beta.76
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 +1 -0
- package/components/Pages/ProductConditions.vue +16 -4
- package/composables/index.ts +0 -9
- package/package.json +2 -2
- package/store/member.store.ts +3 -1
- package/types/enum.ts +2 -0
package/api/base.api.ts
CHANGED
|
@@ -17,6 +17,7 @@ export class ApiClass {
|
|
|
17
17
|
method: Methods.GET,
|
|
18
18
|
baseURL: getStrValuePerEnv('gatewayApiUrl'),
|
|
19
19
|
url: `/application/front/${import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? `auletti-${import.meta.env.VITE_PRODUCT}` : import.meta.env.VITE_PRODUCT}`,
|
|
20
|
+
params: { silent: true },
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -1914,6 +1914,12 @@ export default defineComponent({
|
|
|
1914
1914
|
// if (key === 'paymentPeriod') return list.filter(i => i.code !== 'single');
|
|
1915
1915
|
// }
|
|
1916
1916
|
// }
|
|
1917
|
+
|
|
1918
|
+
//Временная заглушка для АО «СК «НОМАД ИНШУРАНС» (ids: 3334729354)
|
|
1919
|
+
if (whichProduct.value === 'pensionannuitynew') {
|
|
1920
|
+
const hiddenCompanyId = '3334729354';
|
|
1921
|
+
return list.filter(item => item.ids !== hiddenCompanyId);
|
|
1922
|
+
}
|
|
1917
1923
|
return list;
|
|
1918
1924
|
};
|
|
1919
1925
|
|
|
@@ -2170,8 +2176,8 @@ export default defineComponent({
|
|
|
2170
2176
|
transferContractCompanyId:
|
|
2171
2177
|
i.transferContractCompany && typeof i.transferContractCompany !== 'string' && 'ids' in i.transferContractCompany
|
|
2172
2178
|
? i.transferContractCompany.ids
|
|
2173
|
-
// @ts-ignore
|
|
2174
|
-
|
|
2179
|
+
: // @ts-ignore
|
|
2180
|
+
i.transferContractCompanyId,
|
|
2175
2181
|
id: i.id ?? null,
|
|
2176
2182
|
transferContractAmount: String(i.transferContractAmount).replace(/\s/g, ''),
|
|
2177
2183
|
transferContractNumber: getFullGlobalId(i),
|
|
@@ -2291,7 +2297,10 @@ export default defineComponent({
|
|
|
2291
2297
|
voluntaryContractAmount: formatSpacedNumber(formStore.pensionApp?.voluntaryContractAmount),
|
|
2292
2298
|
ownFundsRaisAmount: formatSpacedNumber(formStore.pensionApp?.ownFundsRaisAmount),
|
|
2293
2299
|
compulsoryProfContractAmount: formatSpacedNumber(formStore.pensionApp?.compulsoryProfContractAmount),
|
|
2294
|
-
compulsoryProfMonthCount: syncNullableNumberPair(
|
|
2300
|
+
compulsoryProfMonthCount: syncNullableNumberPair(
|
|
2301
|
+
formatSpacedNumber(formStore.pensionApp?.compulsoryProfContractAmount),
|
|
2302
|
+
formStore.pensionApp?.compulsoryProfMonthCount,
|
|
2303
|
+
),
|
|
2295
2304
|
transferContractAmount: formatSpacedNumber(formStore.pensionApp?.transferContractAmount),
|
|
2296
2305
|
transferContractCompany: pensionForm.value?.transferContractCompany?.nameRu ?? '',
|
|
2297
2306
|
}
|
|
@@ -2307,7 +2316,10 @@ export default defineComponent({
|
|
|
2307
2316
|
voluntaryContractAmount: formatSpacedNumber(formStore.pensionApp?.slave?.voluntaryContractAmount),
|
|
2308
2317
|
ownFundsRaisAmount: formatSpacedNumber(formStore.pensionApp?.slave?.ownFundsRaisAmount),
|
|
2309
2318
|
compulsoryProfContractAmount: formatSpacedNumber(formStore.pensionApp?.slave?.compulsoryProfContractAmount),
|
|
2310
|
-
compulsoryProfMonthCount: syncNullableNumberPair(
|
|
2319
|
+
compulsoryProfMonthCount: syncNullableNumberPair(
|
|
2320
|
+
formatSpacedNumber(formStore.pensionApp?.slave?.compulsoryProfContractAmount),
|
|
2321
|
+
formStore.pensionApp?.slave?.compulsoryProfMonthCount,
|
|
2322
|
+
),
|
|
2311
2323
|
transferContractAmount: formatSpacedNumber(formStore.pensionApp?.slave?.transferContractAmount),
|
|
2312
2324
|
transferContractCompany: pensionForm.value?.transferContractCompany?.nameRu ?? '',
|
|
2313
2325
|
}
|
package/composables/index.ts
CHANGED
|
@@ -22,7 +22,6 @@ const SW_UPDATE_AT_KEY = 'pwa_sw_update_at';
|
|
|
22
22
|
const SW_UPDATE_TTL_MS = 10 * 60 * 1000; // 10 минут
|
|
23
23
|
|
|
24
24
|
export async function ensureFreshPwa() {
|
|
25
|
-
console.log('ensuring pwa');
|
|
26
25
|
const { $pwa } = useNuxtApp();
|
|
27
26
|
const dataStore = useDataStore();
|
|
28
27
|
// 1) Один раз грузим конфиг
|
|
@@ -1120,13 +1119,8 @@ export const redirectUtils = {
|
|
|
1120
1119
|
|
|
1121
1120
|
const excludedPaths = ['/Auth'];
|
|
1122
1121
|
|
|
1123
|
-
console.log('Saving redirect URL:', currentPath);
|
|
1124
|
-
|
|
1125
1122
|
if (!excludedPaths.some(path => currentPath.startsWith(path))) {
|
|
1126
1123
|
localStorage.setItem('redirect_url', currentPath);
|
|
1127
|
-
console.log('Redirect URL saved:', currentPath);
|
|
1128
|
-
} else {
|
|
1129
|
-
console.log('URL excluded from redirect:', currentPath);
|
|
1130
1124
|
}
|
|
1131
1125
|
},
|
|
1132
1126
|
|
|
@@ -1135,13 +1129,10 @@ export const redirectUtils = {
|
|
|
1135
1129
|
*/
|
|
1136
1130
|
getAndClearRedirectUrl(): string | null {
|
|
1137
1131
|
const redirectUrl = localStorage.getItem('redirect_url');
|
|
1138
|
-
console.log('Getting redirect URL:', redirectUrl);
|
|
1139
1132
|
if (redirectUrl) {
|
|
1140
1133
|
localStorage.removeItem('redirect_url');
|
|
1141
|
-
console.log('Redirect URL cleared and returned:', redirectUrl);
|
|
1142
1134
|
return redirectUrl;
|
|
1143
1135
|
}
|
|
1144
|
-
console.log('No redirect URL found');
|
|
1145
1136
|
return null;
|
|
1146
1137
|
},
|
|
1147
1138
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hl-core",
|
|
3
|
-
"version": "0.0.10-beta.
|
|
3
|
+
"version": "0.0.10-beta.76",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "nuxt.config.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vue-tsc": "1.8.27"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"hl-locales": "1.0.
|
|
50
|
+
"hl-locales": "1.0.19",
|
|
51
51
|
"@intlify/unplugin-vue-i18n": "2.0.0",
|
|
52
52
|
"@microsoft/signalr": "7.0.12",
|
|
53
53
|
"@nuxtjs/tailwindcss": "6.11.4",
|
package/store/member.store.ts
CHANGED
|
@@ -548,7 +548,9 @@ export const useMemberStore = defineStore('members', {
|
|
|
548
548
|
|
|
549
549
|
if ('documents' in user && user.documents && user.documents.length) {
|
|
550
550
|
member.documentsList = user.documents;
|
|
551
|
-
const filteredDocuments = user.documents.filter(i =>
|
|
551
|
+
const filteredDocuments = user.documents.filter(i => {
|
|
552
|
+
return i.expireDate ? new Date(i.expireDate) > new Date(Date.now()) : true;
|
|
553
|
+
});
|
|
552
554
|
if (filteredDocuments.length) {
|
|
553
555
|
const documentByPriority = filteredDocuments.find(i => {
|
|
554
556
|
if (this.appContextStore.isLifetrip && (whichForm !== this.formStore.policyholderFormKey || this.formStore.isPolicyholderInsured === true)) {
|
package/types/enum.ts
CHANGED
|
@@ -261,6 +261,7 @@ export namespace CoreEnums {
|
|
|
261
261
|
'PS' = '001',
|
|
262
262
|
'1UDL' = '002',
|
|
263
263
|
'VNZ' = '003',
|
|
264
|
+
'UDLBG' = '004',
|
|
264
265
|
}
|
|
265
266
|
}
|
|
266
267
|
export namespace Insis {
|
|
@@ -269,6 +270,7 @@ export namespace CoreEnums {
|
|
|
269
270
|
'1UDL' = '1UDL',
|
|
270
271
|
'VNZ' = 'VNZ',
|
|
271
272
|
'SBI' = 'SBI',
|
|
273
|
+
'UDLBG' = 'UDLBG',
|
|
272
274
|
}
|
|
273
275
|
}
|
|
274
276
|
export namespace Sign {
|