hl-core 0.0.9-beta.44 → 0.0.9-beta.46
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 +2 -1
- package/api/interceptors.ts +3 -0
- package/components/Form/FormData.vue +5 -9
- package/components/Layout/Loader.vue +1 -1
- package/components/Layout/SettingsPanel.vue +1 -1
- package/components/Pages/Auth.vue +30 -6
- package/components/Pages/MemberForm.vue +8 -23
- package/components/Pages/ProductConditions.vue +105 -32
- package/components/Panel/PanelHandler.vue +57 -6
- package/components/Transitions/Animation.vue +1 -1
- package/composables/classes.ts +9 -0
- package/composables/constants.ts +36 -0
- package/composables/fields.ts +38 -1
- package/composables/index.ts +38 -16
- package/composables/styles.ts +8 -7
- package/locales/ru.json +14 -7
- package/package.json +3 -3
- package/store/data.store.ts +75 -56
- package/types/enum.ts +8 -0
- package/types/env.d.ts +1 -0
- package/types/index.ts +15 -3
|
@@ -61,6 +61,12 @@
|
|
|
61
61
|
</base-form-section>
|
|
62
62
|
</div>
|
|
63
63
|
</section>
|
|
64
|
+
<section v-if="choosePayActions">
|
|
65
|
+
<div v-if="!isEpayPay" :class="[$styles.flexColNav]">
|
|
66
|
+
<base-btn :text="$dataStore.t('buttons.payEpay')" :loading="loading" @click="handlePayAction('epay')" />
|
|
67
|
+
<base-btn :text="$dataStore.t('buttons.payOffline')" :loading="loading" @click="handlePayAction('offline')" />
|
|
68
|
+
</div>
|
|
69
|
+
</section>
|
|
64
70
|
<section v-if="signingActions" class="relative">
|
|
65
71
|
<base-fade-transition>
|
|
66
72
|
<div v-if="!isSendNumberOpen" :class="[$styles.flexColNav]">
|
|
@@ -171,6 +177,7 @@ export default defineComponent({
|
|
|
171
177
|
const connection = ref<any>(null);
|
|
172
178
|
const isQrLoading = ref<boolean>(false);
|
|
173
179
|
const urlCopy = ref<string>('');
|
|
180
|
+
const isEpayPay = ref<boolean>(false);
|
|
174
181
|
|
|
175
182
|
const vForm = ref<any>();
|
|
176
183
|
const isSendNumberOpen = ref<boolean>(false);
|
|
@@ -275,7 +282,7 @@ export default defineComponent({
|
|
|
275
282
|
}
|
|
276
283
|
closePanel();
|
|
277
284
|
dataStore.showToaster('success', dataStore.t('toaster.successOperation'));
|
|
278
|
-
await dataStore.handleTask(constants.actions.
|
|
285
|
+
await dataStore.handleTask(constants.actions.signedScans, route.params.taskId as string, actionCause.value);
|
|
279
286
|
};
|
|
280
287
|
const submitForm = async () => {
|
|
281
288
|
await vForm.value.validate().then(async (v: { valid: Boolean; errors: any }) => {
|
|
@@ -325,7 +332,7 @@ export default defineComponent({
|
|
|
325
332
|
|
|
326
333
|
const onInit = async () => {
|
|
327
334
|
if (dataStore.controls.hasChooseSign) {
|
|
328
|
-
if (dataStore.isGons || dataStore.isLifeBusiness) {
|
|
335
|
+
if (dataStore.isGons || dataStore.isLifeBusiness || dataStore.isGns) {
|
|
329
336
|
isElectronicContract.value = false;
|
|
330
337
|
}
|
|
331
338
|
}
|
|
@@ -383,11 +390,12 @@ export default defineComponent({
|
|
|
383
390
|
const payingActions = computed(() => dataStore.panelAction === constants.actions.pay);
|
|
384
391
|
const affiliateActions = computed(() => dataStore.panelAction === constants.actions.affiliate);
|
|
385
392
|
const chooseSignActions = computed(() => dataStore.controls.hasChooseSign && dataStore.panelAction === constants.actions.chooseSign);
|
|
393
|
+
const choosePayActions = computed(() => dataStore.controls.hasChoosePay && dataStore.panelAction === constants.actions.choosePay);
|
|
386
394
|
|
|
387
395
|
const paymentPeriod = computed(() => formStore.productConditionsForm.paymentPeriod.nameRu);
|
|
388
396
|
const insurancePremiumPerMonth = computed(() => dataStore.getNumberWithSpaces(formStore.productConditionsForm.insurancePremiumPerMonth));
|
|
389
397
|
const requestedSumInsured = computed(() => {
|
|
390
|
-
if (dataStore.isLifeBusiness && formStore.productConditionsForm.requestedSumInsured === null) {
|
|
398
|
+
if ((dataStore.isLifeBusiness || dataStore.isGns) && formStore.productConditionsForm.requestedSumInsured === null) {
|
|
391
399
|
return dataStore.getNumberWithSpaces(formStore.applicationData.policyAppDto!.mainInsSum);
|
|
392
400
|
}
|
|
393
401
|
return dataStore.getNumberWithSpaces(formStore.productConditionsForm.requestedSumInsured);
|
|
@@ -422,7 +430,7 @@ export default defineComponent({
|
|
|
422
430
|
return false;
|
|
423
431
|
});
|
|
424
432
|
const isQrDisabled = computed(() => {
|
|
425
|
-
if (dataStore.isLifeBusiness) {
|
|
433
|
+
if (dataStore.isLifeBusiness || dataStore.isGns) {
|
|
426
434
|
return false;
|
|
427
435
|
}
|
|
428
436
|
return true;
|
|
@@ -455,13 +463,20 @@ export default defineComponent({
|
|
|
455
463
|
loading.value = false;
|
|
456
464
|
};
|
|
457
465
|
|
|
466
|
+
const handlePayAction = async (type: 'epay' | 'offline') => {
|
|
467
|
+
loading.value = true;
|
|
468
|
+
if (type === 'epay') {
|
|
469
|
+
await payEpay();
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
|
|
458
473
|
// TODO Рефактор QR c npm
|
|
459
474
|
const generateQR = async (groupId: string) => {
|
|
460
475
|
const uuidV4 = uuid.v4();
|
|
461
|
-
const qrValue = `${
|
|
476
|
+
const qrValue = `${getStrValuePerEnv('qrGenUrl')}/${uuidV4}/${groupId}`;
|
|
462
477
|
qrUrl.value = `https://api.qrserver.com/v1/create-qr-code/?size=135x135&data=${qrValue}`;
|
|
463
478
|
|
|
464
|
-
if (dataStore.isLifeBusiness) {
|
|
479
|
+
if (dataStore.isLifeBusiness || dataStore.isGns) {
|
|
465
480
|
//для юр лиц
|
|
466
481
|
urlCopy.value = `https://egovbusiness.page.link/?link=${qrValue}?mgovSign&apn=kz.mobile.mgov.business&isi=1597880144&ibi=kz.mobile.mgov.business`;
|
|
467
482
|
} else {
|
|
@@ -515,6 +530,38 @@ export default defineComponent({
|
|
|
515
530
|
await dataStore.generateDocument();
|
|
516
531
|
};
|
|
517
532
|
|
|
533
|
+
const payEpay = async () => {
|
|
534
|
+
const invoiceData = await dataStore.getInvoiceData(formStore.applicationData.processInstanceId);
|
|
535
|
+
if (invoiceData === false || invoiceData.status === 3 || invoiceData.status === 0) {
|
|
536
|
+
if (invoiceData === false || invoiceData.status === 3) {
|
|
537
|
+
const created = await dataStore.createInvoice();
|
|
538
|
+
if (created) {
|
|
539
|
+
const ePayData = await dataStore.sendToEpay();
|
|
540
|
+
if (!ePayData) return;
|
|
541
|
+
formStore.epayLink = dataStore.sanitize(ePayData.link);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
if (!!invoiceData && invoiceData.status === 0) {
|
|
545
|
+
const ePayData = await dataStore.sendToEpay();
|
|
546
|
+
if (!ePayData) return;
|
|
547
|
+
formStore.epayLink = dataStore.sanitize(ePayData.link);
|
|
548
|
+
}
|
|
549
|
+
} else {
|
|
550
|
+
if (invoiceData.paymentLink) {
|
|
551
|
+
formStore.epayLink = dataStore.sanitize(invoiceData.paymentLink);
|
|
552
|
+
} else {
|
|
553
|
+
dataStore.showToaster('error', dataStore.t('toaster.noUrl'));
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
if (!formStore.epayLink) {
|
|
557
|
+
dataStore.showToaster('error', dataStore.t('toaster.noUrl'));
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
560
|
+
loading.value = false;
|
|
561
|
+
isEpayPay.value = true;
|
|
562
|
+
dataStore.panelAction = constants.actions.pay;
|
|
563
|
+
};
|
|
564
|
+
|
|
518
565
|
return {
|
|
519
566
|
// State
|
|
520
567
|
formStore,
|
|
@@ -531,6 +578,7 @@ export default defineComponent({
|
|
|
531
578
|
scansFiles,
|
|
532
579
|
isQrLoading,
|
|
533
580
|
urlCopy,
|
|
581
|
+
isEpayPay,
|
|
534
582
|
|
|
535
583
|
// Functions
|
|
536
584
|
closePanel,
|
|
@@ -544,6 +592,8 @@ export default defineComponent({
|
|
|
544
592
|
sendFiles,
|
|
545
593
|
onClearFile,
|
|
546
594
|
closeQrPanel,
|
|
595
|
+
handlePayAction,
|
|
596
|
+
payEpay,
|
|
547
597
|
|
|
548
598
|
// Computed
|
|
549
599
|
buttonText,
|
|
@@ -567,6 +617,7 @@ export default defineComponent({
|
|
|
567
617
|
isElectronicDisabled,
|
|
568
618
|
isScansDisabled,
|
|
569
619
|
isQrDisabled,
|
|
620
|
+
choosePayActions,
|
|
570
621
|
};
|
|
571
622
|
},
|
|
572
623
|
});
|
package/composables/classes.ts
CHANGED
|
@@ -755,6 +755,8 @@ export class ProductConditions {
|
|
|
755
755
|
statePremium7: number | string | null;
|
|
756
756
|
calculatorForm: CalculatorForm;
|
|
757
757
|
agentCommission: number | null;
|
|
758
|
+
fixInsSum: number | string | null;
|
|
759
|
+
|
|
758
760
|
constructor(
|
|
759
761
|
insuranceCase = null,
|
|
760
762
|
coverPeriod = null,
|
|
@@ -798,6 +800,7 @@ export class ProductConditions {
|
|
|
798
800
|
statePremium7 = null,
|
|
799
801
|
calculatorForm = new CalculatorForm(),
|
|
800
802
|
agentCommission = null,
|
|
803
|
+
fixInsSum = null,
|
|
801
804
|
) {
|
|
802
805
|
this.requestedSumInsuredInDollar = null;
|
|
803
806
|
this.insurancePremiumPerMonthInDollar = null;
|
|
@@ -846,6 +849,7 @@ export class ProductConditions {
|
|
|
846
849
|
this.statePremium7 = statePremium7;
|
|
847
850
|
this.calculatorForm = calculatorForm;
|
|
848
851
|
this.agentCommission = agentCommission;
|
|
852
|
+
this.fixInsSum = fixInsSum;
|
|
849
853
|
}
|
|
850
854
|
getSingleTripDays() {
|
|
851
855
|
if (this.calculatorForm.startDate && this.calculatorForm.endDate) {
|
|
@@ -914,6 +918,8 @@ export class DataStoreClass {
|
|
|
914
918
|
hasAffiliation: boolean;
|
|
915
919
|
// Выбор метода подписания
|
|
916
920
|
hasChooseSign: boolean;
|
|
921
|
+
// Выбор метода оплаты
|
|
922
|
+
hasChoosePay: boolean;
|
|
917
923
|
};
|
|
918
924
|
members: {
|
|
919
925
|
clientApp: MemberSettings;
|
|
@@ -925,6 +931,7 @@ export class DataStoreClass {
|
|
|
925
931
|
iframeLoading: boolean;
|
|
926
932
|
hasLayoutMargins: boolean;
|
|
927
933
|
readonly product: Projects | null;
|
|
934
|
+
readonly parentProduct: 'efo' | 'auletti';
|
|
928
935
|
showNav: boolean;
|
|
929
936
|
menuItems: MenuItem[];
|
|
930
937
|
menu: {
|
|
@@ -1078,6 +1085,7 @@ export class DataStoreClass {
|
|
|
1078
1085
|
hasAttachment: true,
|
|
1079
1086
|
hasAffiliation: true,
|
|
1080
1087
|
hasChooseSign: false,
|
|
1088
|
+
hasChoosePay: false,
|
|
1081
1089
|
};
|
|
1082
1090
|
this.iframeLoading = false;
|
|
1083
1091
|
this.hasLayoutMargins = true;
|
|
@@ -1093,6 +1101,7 @@ export class DataStoreClass {
|
|
|
1093
1101
|
this.AgentData = [];
|
|
1094
1102
|
this.DicCoverTypePeriod = [];
|
|
1095
1103
|
this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Projects) : null;
|
|
1104
|
+
this.parentProduct = import.meta.env.VITE_PARENT_PRODUCT ? import.meta.env.VITE_PARENT_PRODUCT : 'efo';
|
|
1096
1105
|
this.showNav = true;
|
|
1097
1106
|
this.menuItems = [];
|
|
1098
1107
|
this.menu = {
|
package/composables/constants.ts
CHANGED
|
@@ -14,6 +14,7 @@ export const constants = Object.freeze({
|
|
|
14
14
|
daskamkorlyk: 13,
|
|
15
15
|
lifebusiness: 14,
|
|
16
16
|
amuletlife: 15,
|
|
17
|
+
gns: 16,
|
|
17
18
|
},
|
|
18
19
|
amlProducts: {
|
|
19
20
|
checkcontragent: 1,
|
|
@@ -104,5 +105,40 @@ export const constants = Object.freeze({
|
|
|
104
105
|
nameRu: '2 500 000',
|
|
105
106
|
ids: '',
|
|
106
107
|
},
|
|
108
|
+
{
|
|
109
|
+
code: '3000000',
|
|
110
|
+
id: '6',
|
|
111
|
+
nameKz: '3 000 000',
|
|
112
|
+
nameRu: '3 000 000',
|
|
113
|
+
ids: '',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
code: '3500000',
|
|
117
|
+
id: '7',
|
|
118
|
+
nameKz: '3 500 000',
|
|
119
|
+
nameRu: '3 500 000',
|
|
120
|
+
ids: '',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
code: '4000000',
|
|
124
|
+
id: '8',
|
|
125
|
+
nameKz: '4 000 000',
|
|
126
|
+
nameRu: '4 000 000',
|
|
127
|
+
ids: '',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
code: '4500000',
|
|
131
|
+
id: '8',
|
|
132
|
+
nameKz: '4 500 000',
|
|
133
|
+
nameRu: '4 500 000',
|
|
134
|
+
ids: '',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
code: '5000000',
|
|
138
|
+
id: '9',
|
|
139
|
+
nameKz: '5 000 000',
|
|
140
|
+
nameRu: '5 000 000',
|
|
141
|
+
ids: '',
|
|
142
|
+
},
|
|
107
143
|
],
|
|
108
144
|
});
|
package/composables/fields.ts
CHANGED
|
@@ -221,6 +221,7 @@ export class FormBlock {
|
|
|
221
221
|
headerBtn?: {
|
|
222
222
|
text: string;
|
|
223
223
|
action: () => void;
|
|
224
|
+
showBtn?: ComputedRef;
|
|
224
225
|
};
|
|
225
226
|
labels: FormBlockLabel[];
|
|
226
227
|
data: ComputedRefWithControl<any> | string[][];
|
|
@@ -236,7 +237,7 @@ export class FormBlock {
|
|
|
236
237
|
title: string;
|
|
237
238
|
subtitle?: string;
|
|
238
239
|
noValueText?: string;
|
|
239
|
-
headerBtn?: { text: string; action: () => void };
|
|
240
|
+
headerBtn?: { text: string; action: () => void; showBtn?: ComputedRef };
|
|
240
241
|
labels: FormBlockLabel[];
|
|
241
242
|
data: ComputedRefWithControl<any> | string[][];
|
|
242
243
|
shrinkLabels?: boolean;
|
|
@@ -289,3 +290,39 @@ export const getFormDataFrom = <T>(
|
|
|
289
290
|
() => getData(),
|
|
290
291
|
);
|
|
291
292
|
};
|
|
293
|
+
|
|
294
|
+
export const getFormDataDefaults = () => {
|
|
295
|
+
const dataStore = useDataStore();
|
|
296
|
+
const baseFormData = {
|
|
297
|
+
membersLabels: [
|
|
298
|
+
new FormBlockLabel({
|
|
299
|
+
text: dataStore.t('form.fullName'),
|
|
300
|
+
}),
|
|
301
|
+
new FormBlockLabel({
|
|
302
|
+
text: dataStore.t('form.iin'),
|
|
303
|
+
}),
|
|
304
|
+
new FormBlockLabel({
|
|
305
|
+
text: dataStore.t('form.birthDate'),
|
|
306
|
+
}),
|
|
307
|
+
new FormBlockLabel({
|
|
308
|
+
text: dataStore.t('form.gender'),
|
|
309
|
+
hideOnMobile: true,
|
|
310
|
+
}),
|
|
311
|
+
new FormBlockLabel({
|
|
312
|
+
text: dataStore.t('form.Country'),
|
|
313
|
+
hideOnMobile: true,
|
|
314
|
+
}),
|
|
315
|
+
new FormBlockLabel({
|
|
316
|
+
text: dataStore.t('code'),
|
|
317
|
+
hideOnMobile: true,
|
|
318
|
+
}),
|
|
319
|
+
],
|
|
320
|
+
modifiers: {
|
|
321
|
+
longName: (longName: any) => getFullNameShorted(longName),
|
|
322
|
+
gender: (gender: any) => gender[0],
|
|
323
|
+
birthPlace: (birthPlace: any) => birthPlace.substring(0, 3),
|
|
324
|
+
economySectorCode: (economySectorCode: any) => economySectorCode[0],
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
return { ...baseFormData };
|
|
328
|
+
};
|
package/composables/index.ts
CHANGED
|
@@ -7,8 +7,10 @@ export const getBaseCredentials = () => {
|
|
|
7
7
|
return {
|
|
8
8
|
production: { login: '', password: '' },
|
|
9
9
|
test: { login: '', password: '' },
|
|
10
|
-
development: {
|
|
11
|
-
|
|
10
|
+
development: {
|
|
11
|
+
login: import.meta.env.VITE_PRODUCT === 'auletti' ? '790101401056' : 'manager',
|
|
12
|
+
password: import.meta.env.VITE_PRODUCT === 'auletti' ? 'halyklife' : 'asdqwe123',
|
|
13
|
+
},
|
|
12
14
|
};
|
|
13
15
|
};
|
|
14
16
|
|
|
@@ -17,7 +19,6 @@ export const useEnv = () => {
|
|
|
17
19
|
envMode: import.meta.env.VITE_MODE,
|
|
18
20
|
isDev: import.meta.env.VITE_MODE === 'development',
|
|
19
21
|
isTest: import.meta.env.VITE_MODE === 'test',
|
|
20
|
-
isVercel: import.meta.env.VITE_MODE === 'vercel',
|
|
21
22
|
isProduction: import.meta.env.VITE_MODE === 'production',
|
|
22
23
|
};
|
|
23
24
|
};
|
|
@@ -30,7 +31,7 @@ export class Masks {
|
|
|
30
31
|
date: string = '##.##.####';
|
|
31
32
|
post: string = '######';
|
|
32
33
|
threeDigit: string = '###';
|
|
33
|
-
iik: string = '
|
|
34
|
+
iik: string = 'KZXXXXXXXXXXXXXXXXXX';
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export const useMask = () => new Masks();
|
|
@@ -184,13 +185,17 @@ export const ESBDMessage = (ESBDObject: any, initialPoint: any) => {
|
|
|
184
185
|
|
|
185
186
|
export const ErrorHandler = (err: unknown, errorText?: string) => {
|
|
186
187
|
console.log(err);
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
if (
|
|
190
|
-
if ('
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
if (useDataStore) {
|
|
189
|
+
const dataStore = useDataStore();
|
|
190
|
+
if (err instanceof AxiosError) {
|
|
191
|
+
if ('response' in err && err.response && err.response.data) {
|
|
192
|
+
if (err.response.data === Object(err.response.data) && 'errors' in err.response.data && 'title' in err.response.data && 'traceId' in err.response.data) {
|
|
193
|
+
Object.entries(err.response.data.errors).forEach(([field, errors]) => {
|
|
194
|
+
dataStore.showToaster('error', `Поле: ${field}. Ошибка: ${Array.isArray(errors) ? errors.join(', ') : errors}`, 10000);
|
|
195
|
+
});
|
|
196
|
+
} else {
|
|
197
|
+
dataStore.showToaster('error', errorText ? errorText : err.response.data, 10000);
|
|
198
|
+
}
|
|
194
199
|
}
|
|
195
200
|
}
|
|
196
201
|
}
|
|
@@ -288,11 +293,10 @@ export const getLastDayOfMonth = (year: number, month: number) => {
|
|
|
288
293
|
|
|
289
294
|
type WhichValuePerEnv = 'qrGenUrl';
|
|
290
295
|
|
|
291
|
-
export const
|
|
292
|
-
type Envs = Exclude<EnvModes, 'vercel'>;
|
|
296
|
+
export const getStrValuePerEnv = (which: WhichValuePerEnv) => {
|
|
293
297
|
const valuesPerEnv: {
|
|
294
298
|
[key in WhichValuePerEnv]: {
|
|
295
|
-
[key in
|
|
299
|
+
[key in EnvModes]: string;
|
|
296
300
|
};
|
|
297
301
|
} = {
|
|
298
302
|
qrGenUrl: {
|
|
@@ -301,12 +305,12 @@ export const getValuePerEnv = (which: WhichValuePerEnv) => {
|
|
|
301
305
|
test: 'mobileSign:https://test-sign.halyklife.kz/EgovQrCms',
|
|
302
306
|
},
|
|
303
307
|
};
|
|
304
|
-
return valuesPerEnv[which][useEnv().envMode
|
|
308
|
+
return valuesPerEnv[which][useEnv().envMode];
|
|
305
309
|
};
|
|
306
310
|
|
|
307
311
|
export const getMainPageRoute = () => {
|
|
308
312
|
const dataStore = useDataStore();
|
|
309
|
-
if (dataStore.isEFO) {
|
|
313
|
+
if (dataStore.isEFO || dataStore.isAULETTI) {
|
|
310
314
|
return 'Insurance-Product';
|
|
311
315
|
}
|
|
312
316
|
if (dataStore.isLKA) {
|
|
@@ -317,3 +321,21 @@ export const getMainPageRoute = () => {
|
|
|
317
321
|
}
|
|
318
322
|
return 'index';
|
|
319
323
|
};
|
|
324
|
+
|
|
325
|
+
export const keyDeleter = <T extends object>(data: T, keys: Array<NestedKeyOf<T>>) => {
|
|
326
|
+
if (typeof data === 'object' && !!data && keys && Array.isArray(keys) && keys.length) {
|
|
327
|
+
keys.forEach(key => {
|
|
328
|
+
if (key) {
|
|
329
|
+
if (String(key).includes('.')) {
|
|
330
|
+
const childKey = String(key).substring(0, String(key).indexOf('.'));
|
|
331
|
+
const keyChain = [String(key).substring(String(key).indexOf('.') + 1)];
|
|
332
|
+
// @ts-ignore
|
|
333
|
+
keyDeleter(data[childKey], keyChain);
|
|
334
|
+
} else {
|
|
335
|
+
//@ts-ignore
|
|
336
|
+
delete data[key];
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
};
|
package/composables/styles.ts
CHANGED
|
@@ -15,12 +15,12 @@ export class Styles {
|
|
|
15
15
|
blueTextLight: string = 'text-[#F3F6FC]';
|
|
16
16
|
|
|
17
17
|
// Green
|
|
18
|
-
greenBg: string = 'bg-[#009C73]';
|
|
19
|
-
greenBgHover: string = 'hover:bg-[#00a277]';
|
|
20
|
-
greenBgLight: string = 'bg-[#EAF6EF]';
|
|
21
|
-
greenText: string =
|
|
22
|
-
greenTextHover: string =
|
|
23
|
-
greenBgLightHover: string = 'hover:bg-[#dbf0e4]';
|
|
18
|
+
greenBg: string = import.meta.env.VITE_PRODUCT === 'auletti' || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'bg-[#DEBE8C]' : 'bg-[#009C73]';
|
|
19
|
+
greenBgHover: string = import.meta.env.VITE_PRODUCT === 'auletti' || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'bg-[#C19B5F]' : 'hover:bg-[#00a277]';
|
|
20
|
+
greenBgLight: string = import.meta.env.VITE_PRODUCT === 'auletti' || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'bg-[#e8d2af]' : 'bg-[#EAF6EF]';
|
|
21
|
+
greenText: string ='!text-[#009C73]';
|
|
22
|
+
greenTextHover: string ='hover:text-[#009C73]';
|
|
23
|
+
greenBgLightHover: string = import.meta.env.VITE_PRODUCT === 'auletti' || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'hover:bg-[#efdfc6]' : 'hover:bg-[#dbf0e4]';
|
|
24
24
|
|
|
25
25
|
// Yellow
|
|
26
26
|
yellowText: string = '!text-[#FAB31C]';
|
|
@@ -52,7 +52,8 @@ export class Styles {
|
|
|
52
52
|
roundedB: string = 'rounded-b-[8px]';
|
|
53
53
|
blueBorder: string = 'border-[1px] border-[#A0B3D8]';
|
|
54
54
|
blueLightBorder: string = 'border-[1px] border-[#F3F6FC]';
|
|
55
|
-
greenBorder: string =
|
|
55
|
+
greenBorder: string =
|
|
56
|
+
import.meta.env.VITE_PRODUCT === 'auletti' || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'border-[1px] border-[#DEBE8C]' : 'border-[1px] border-[#009C73]';
|
|
56
57
|
redBorder: string = 'border-[1px] border-[#FD2D39]';
|
|
57
58
|
yellowBorder: string = 'border-[1px] border-[#FAB31C]';
|
|
58
59
|
|
package/locales/ru.json
CHANGED
|
@@ -217,7 +217,10 @@
|
|
|
217
217
|
"downloadStatement": "Скачать заявление",
|
|
218
218
|
"downloadApplication": "Скачать приложение №1",
|
|
219
219
|
"downloadPowerOfAttorney": "Скачать доверенность",
|
|
220
|
-
"sendEgovMob": "Отправить на подпись через Egov Mobile"
|
|
220
|
+
"sendEgovMob": "Отправить на подпись через Egov Mobile",
|
|
221
|
+
"sendToPay": "Отправить на оплату",
|
|
222
|
+
"payEpay": "Оплатить через EPAY",
|
|
223
|
+
"payOffline": "Оплатить офлайн"
|
|
221
224
|
},
|
|
222
225
|
"dialog": {
|
|
223
226
|
"title": "Подтверждение",
|
|
@@ -252,7 +255,8 @@
|
|
|
252
255
|
"familyMember": "Выберите члена семьи",
|
|
253
256
|
"register": "Вы действительно хотите добавить в реестр данного ребенка?",
|
|
254
257
|
"toApprove": "Вы действительно хотите отправить на согласование?",
|
|
255
|
-
"affiliate": "Вы действительно хотите добавить решение андеррайтингового совета?"
|
|
258
|
+
"affiliate": "Вы действительно хотите добавить решение андеррайтингового совета?",
|
|
259
|
+
"choosePay": "Вы действительно хотите выбрать метод оплаты?"
|
|
256
260
|
},
|
|
257
261
|
"sign": {
|
|
258
262
|
"chooseDoc": "Выберите документы для подписание",
|
|
@@ -320,7 +324,7 @@
|
|
|
320
324
|
"statementAndSurvey": "Заявление и анкета",
|
|
321
325
|
"underwriterDecisionDocument": "",
|
|
322
326
|
"clientsCard": "Карта контрагента",
|
|
323
|
-
"insuranceProduct": "
|
|
327
|
+
"insuranceProduct": "Страховые продукты",
|
|
324
328
|
"historyStatementsAndStatuses": "История заявок и статусы",
|
|
325
329
|
"applicationNumber": "Номер заявки: ",
|
|
326
330
|
"operationList": "Список операций",
|
|
@@ -375,6 +379,7 @@
|
|
|
375
379
|
"coverPeriodMonth": "Срок страхования (в месяцах)",
|
|
376
380
|
"totalRequestedSumInsured": "Общая страховая сумма",
|
|
377
381
|
"totalInsurancePremiumAmount": "Общая страховая премия",
|
|
382
|
+
"totalInsurancePremiumAmountWithCommission": "Общая страховая премия с комиссией",
|
|
378
383
|
"agencyPart": "Агентская переменная часть, %",
|
|
379
384
|
"processGfot": "Кратность страховой суммы к ГФОТ-у",
|
|
380
385
|
"annuiteStartDate": "Дата расчета",
|
|
@@ -384,7 +389,8 @@
|
|
|
384
389
|
"factorCurrentValueGP": "Фактор текущей стоимости с учетом гарантированных выплат",
|
|
385
390
|
"alfa": "Расходы от премии, в %",
|
|
386
391
|
"gamma": "Расходы от выплат, в %",
|
|
387
|
-
"mrpPayment": "Выплата на погребение (в тенге)"
|
|
392
|
+
"mrpPayment": "Выплата на погребение (в тенге)",
|
|
393
|
+
"fixInsSum": "Фиксированная сумма"
|
|
388
394
|
},
|
|
389
395
|
"calculatorForm": {
|
|
390
396
|
"selectedCountries": "Выбранные страны",
|
|
@@ -691,6 +697,7 @@
|
|
|
691
697
|
"profile": "Профиль",
|
|
692
698
|
"needAuth": "Для получения доступа Вам необходимо авторизоваться",
|
|
693
699
|
"welcomeHL": "Добро пожаловать в Halyk Life",
|
|
700
|
+
"welcomeAuletti": "Добро пожаловать в «Әулетті»",
|
|
694
701
|
"resetType": "Выберите способ восстановление пароля",
|
|
695
702
|
"resetPassword": "Забыли пароль?",
|
|
696
703
|
"search": "Поиск",
|
|
@@ -764,7 +771,7 @@
|
|
|
764
771
|
"calculationPreliminary": "Расчет предварительный. Требуется заполнить все необходимые данные",
|
|
765
772
|
"planDate": "Дата должна превышать сегодняшнюю дату",
|
|
766
773
|
"iik": "ИИК должен состоять из 20 символов",
|
|
767
|
-
"dataInPast": "
|
|
774
|
+
"dataInPast": "Срок действия документа истек",
|
|
768
775
|
"agentCommission": "Агентская комиссия не должно превышать 50"
|
|
769
776
|
},
|
|
770
777
|
"code": "КСЭ",
|
|
@@ -886,7 +893,8 @@
|
|
|
886
893
|
"registrationPlaceOfContactPerson": "Место жительства или регистрации Контактного лица Застрахованного",
|
|
887
894
|
"identityCardOfContactPerson": "Документ удостоверяющий личность Контактного лица Застрахованного",
|
|
888
895
|
"recipientDocs": "Документы Получателя",
|
|
889
|
-
"recipientData": "Сведения о Получателе"
|
|
896
|
+
"recipientData": "Сведения о Получателе",
|
|
897
|
+
"deathInsFromNS": "Страхование от смерти от НС"
|
|
890
898
|
},
|
|
891
899
|
"bankDetailsForm": {
|
|
892
900
|
"title": "Банковские реквизиты",
|
|
@@ -959,7 +967,6 @@
|
|
|
959
967
|
"typeActivity": "Вид деятельности",
|
|
960
968
|
"numberEmp": "Количество работников",
|
|
961
969
|
"isFirstManager": "Бенефициарный собственник является первым руководителем",
|
|
962
|
-
"iin": "ИИН (при наличии)",
|
|
963
970
|
"isPublicForeignOfficial": "Отметка о принадлежности и/или причастности к публичному иностранному должностному лицу, его супруге (супругу) и близким родственникам?",
|
|
964
971
|
"series": "Серия",
|
|
965
972
|
"count": "Количество случаев",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hl-core",
|
|
3
|
-
"version": "0.0.9-beta.
|
|
3
|
+
"version": "0.0.9-beta.46",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "nuxt.config.ts",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dev": "nuxt dev",
|
|
29
29
|
"generate": "nuxt generate",
|
|
30
30
|
"preview": "nuxt preview",
|
|
31
|
-
"tk:all": "cd .. && cd amuletlife && yarn typecheck && cd .. && cd baiterek && yarn typecheck && cd .. && cd bolashak && yarn typecheck && cd .. && cd
|
|
32
|
-
"i:all": "cd .. && cd amuletlife && yarn && cd .. && cd baiterek && yarn && cd .. && cd bolashak && yarn && cd .. && cd
|
|
31
|
+
"tk:all": "cd .. && cd amuletlife && yarn typecheck && cd .. && cd baiterek && yarn typecheck && cd .. && cd bolashak && yarn typecheck && cd .. && cd calc && yarn typecheck && cd .. && cd daskamkorlyk && yarn typecheck && cd .. && cd efo && yarn typecheck && cd .. && cd gons && yarn typecheck && cd .. && cd halykkazyna && yarn typecheck && cd .. && cd lifebusiness && yarn typecheck && cd .. && cd gns && yarn typecheck && cd .. && cd liferenta && yarn typecheck && cd .. && cd lifetrip && yarn typecheck && cd .. && cd pensionannuity && yarn typecheck && cd .. && cd core",
|
|
32
|
+
"i:all": "cd .. && cd amuletlife && yarn && cd .. && cd baiterek && yarn && cd .. && cd bolashak && yarn && cd .. && cd calc && yarn && cd .. && cd daskamkorlyk && yarn && cd .. && cd efo && yarn && cd .. && cd gons && yarn && cd .. && cd halykkazyna && yarn && cd .. && cd lifebusiness && yarn && cd .. && cd gns && yarn && cd .. && cd liferenta && yarn && cd .. && cd lifetrip && yarn && cd .. && cd pensionannuity && yarn && cd .. && cd core",
|
|
33
33
|
"update:core": "git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main",
|
|
34
34
|
"update:aml": "cd ../../aml/aml && yarn && cd ../checkcontract && yarn && cd ../checkcontragent && yarn && cd.. && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd ../efo/core",
|
|
35
35
|
"update:lka": "cd .. && cd lka && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|