hl-core 0.0.9-beta.3 → 0.0.9-beta.5
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 +2 -2
- package/components/Button/Btn.vue +1 -1
- package/components/Complex/ContentBlock.vue +1 -1
- package/components/Complex/MessageBlock.vue +1 -1
- package/components/Complex/Page.vue +7 -1
- package/components/Complex/WhiteBlock.vue +7 -0
- package/components/Dialog/Dialog.vue +2 -2
- package/components/Dialog/FamilyDialog.vue +5 -5
- package/components/Form/FormBlock.vue +25 -27
- 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 +3 -3
- package/components/Form/ProductConditionsBlock.vue +16 -16
- package/components/Input/EmptyFormField.vue +1 -1
- package/components/Layout/Header.vue +1 -1
- package/components/Layout/SettingsPanel.vue +5 -9
- package/components/List/ListEmpty.vue +1 -1
- package/components/Menu/MenuHover.vue +1 -1
- package/components/Menu/MenuNav.vue +1 -1
- package/components/Menu/MenuNavItem.vue +4 -4
- package/components/Pages/Anketa.vue +11 -16
- package/components/Pages/Auth.vue +9 -9
- package/components/Pages/ContragentForm.vue +431 -0
- package/components/Pages/Documents.vue +5 -5
- package/components/Pages/InvoiceInfo.vue +1 -1
- package/components/Pages/MemberForm.vue +14 -7
- package/components/Pages/ProductAgreement.vue +1 -3
- package/components/Pages/ProductConditions.vue +7 -12
- package/components/Panel/PanelHandler.vue +13 -13
- package/components/Panel/PanelSelectItem.vue +3 -3
- package/components/Utilities/IconBorder.vue +17 -0
- package/composables/axios.ts +1 -1
- package/composables/classes.ts +0 -2
- package/composables/constants.ts +1 -0
- package/composables/index.ts +10 -0
- package/configs/i18n.ts +0 -2
- package/layouts/default.vue +2 -2
- package/layouts/full.vue +1 -1
- package/locales/ru.json +5 -1
- package/nuxt.config.ts +1 -1
- package/package.json +12 -21
- package/pages/500.vue +2 -2
- package/pages/Token.vue +1 -0
- package/plugins/helperFunctionsPlugins.ts +6 -7
- package/store/data.store.ts +18 -10
- package/types/index.ts +1 -0
- package/components/Button/BtnIcon.vue +0 -47
- package/locales/kz.json +0 -590
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section v-if="sendingActions">
|
|
3
|
-
<div :class="[$
|
|
3
|
+
<div :class="[$styles.flexColNav]">
|
|
4
4
|
<v-form ref="vForm">
|
|
5
5
|
<base-rounded-input v-model.trim="actionCause" placeholder="Причина" :rules="$rules.required" />
|
|
6
6
|
</v-form>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</section>
|
|
10
10
|
<section v-if="acceptAction">
|
|
11
|
-
<div :class="[$
|
|
11
|
+
<div :class="[$styles.flexColNav]">
|
|
12
12
|
<base-content-block v-if="hasConditionsInfo" class="flex flex-col gap-3">
|
|
13
13
|
<span
|
|
14
14
|
>{{ `Сумма страховой премии ${paymentPeriod}:` }} <b>{{ `${insurancePremiumPerMonth}₸` }}</b></span
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
</span>
|
|
19
19
|
</base-content-block>
|
|
20
20
|
<base-btn :text="$dataStore.t('confirm.yes')" @click="handleTask" />
|
|
21
|
-
<base-btn :btn="$
|
|
21
|
+
<base-btn :btn="$styles.blueLightBtn" :text="$dataStore.t('confirm.no')" @click="closePanel" />
|
|
22
22
|
</div>
|
|
23
23
|
</section>
|
|
24
24
|
<section v-if="signingActions" class="relative">
|
|
25
25
|
<div>
|
|
26
26
|
<base-fade-transition>
|
|
27
|
-
<div v-if="!isSendNumberOpen" :class="[$
|
|
28
|
-
<div :class="[$
|
|
27
|
+
<div v-if="!isSendNumberOpen" :class="[$styles.flexColNav]">
|
|
28
|
+
<div :class="[$styles.blueBgLight]" class="rounded-lg p-4">
|
|
29
29
|
<v-expansion-panels v-if="formStore.signUrls && formStore.signUrls.length" variant="accordion" multiple>
|
|
30
30
|
<v-expansion-panel v-for="signUrl of formStore.signUrls" :key="signUrl.iin!" class="border-[1px]" elevation="0" bg-color="#FFF">
|
|
31
|
-
<v-expansion-panel-title class="h-[80px]" :class="$
|
|
31
|
+
<v-expansion-panel-title class="h-[80px]" :class="$styles.textTitle">{{ `${signUrl.longName} - ${signUrl.iin}` }}</v-expansion-panel-title>
|
|
32
32
|
<v-expansion-panel-text class="border-t-[1px]">
|
|
33
|
-
<section class="flex flex-col gap-4 py-3" :class="$
|
|
33
|
+
<section class="flex flex-col gap-4 py-3" :class="$styles.textSimple">
|
|
34
34
|
<base-btn :loading="loading" :text="$dataStore.t('sign.copyCloud')" @click="$dataStore.copyToClipboard(signUrl.uri)" />
|
|
35
|
-
<base-btn :loading="loading" :btn="$
|
|
35
|
+
<base-btn :loading="loading" :btn="$styles.blueLightBtn" :text="$dataStore.t('sign.recipientNumber')" @click="openSmsPanel(signUrl)" />
|
|
36
36
|
</section>
|
|
37
37
|
</v-expansion-panel-text>
|
|
38
38
|
</v-expansion-panel>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<base-list-empty v-else />
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
|
-
<div v-if="isSendNumberOpen" :class="[$
|
|
43
|
+
<div v-if="isSendNumberOpen" :class="[$styles.flexColNav]">
|
|
44
44
|
<i
|
|
45
45
|
class="mdi mdi-arrow-left cursor-pointer absolute text-xl left-0 top-0 rounded-br-full bg-white border-[1px] pb-3 pt-1 pl-1 pr-3"
|
|
46
46
|
@click="isSendNumberOpen = false"
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
<section v-if="payingActions" class="relative">
|
|
65
65
|
<div>
|
|
66
66
|
<base-fade-transition>
|
|
67
|
-
<div v-if="!isSendNumberOpen" :class="[$
|
|
67
|
+
<div v-if="!isSendNumberOpen" :class="[$styles.flexColNav]">
|
|
68
68
|
<base-btn :loading="loading" :text="$dataStore.t('payment.copyUrl')" @click="$dataStore.copyToClipboard(formStore.epayLink)" />
|
|
69
|
-
<base-btn :loading="loading" :btn="$
|
|
69
|
+
<base-btn :loading="loading" :btn="$styles.blueLightBtn" :text="$dataStore.t('payment.recipientNumber')" @click="openEpayPanel" />
|
|
70
70
|
</div>
|
|
71
|
-
<div v-if="isSendNumberOpen" :class="[$
|
|
71
|
+
<div v-if="isSendNumberOpen" :class="[$styles.flexColNav]">
|
|
72
72
|
<i
|
|
73
73
|
class="mdi mdi-arrow-left cursor-pointer absolute text-xl left-0 top-0 rounded-br-full bg-white border-[1px] pb-3 pt-1 pl-1 pr-3"
|
|
74
74
|
@click="isSendNumberOpen = false"
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</div>
|
|
91
91
|
</section>
|
|
92
92
|
<section v-if="affiliateActions">
|
|
93
|
-
<div :class="[$
|
|
93
|
+
<div :class="[$styles.flexColNav]">
|
|
94
94
|
<v-form ref="vForm">
|
|
95
95
|
<base-content-block class="flex flex-col gap-3">
|
|
96
96
|
<base-form-input v-model.trim="formStore.affilationResolution.number" :rules="$rules.required" :label="$dataStore.t('form.documentNumber')" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex justify-between p-4 items-center cursor-pointer" :class="[$
|
|
3
|
-
<span :class="[$
|
|
4
|
-
<i class="mdi text-xl" :class="[selected ? `mdi-radiobox-marked ${$
|
|
2
|
+
<div class="flex justify-between p-4 items-center cursor-pointer" :class="[$styles.rounded, $styles.blueBgLight, $styles.blueBgLightHover]">
|
|
3
|
+
<span :class="[$styles.textSimple]">{{ text }}</span>
|
|
4
|
+
<i class="mdi text-xl" :class="[selected ? `mdi-radiobox-marked ${$styles.greenText}` : 'mdi-radiobox-blank text-[#636363]']"></i>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="border-[1px] border-[#F1F2F6] rounded-[12px] p-[10px]">
|
|
3
|
+
<slot v-if="!icon"></slot>
|
|
4
|
+
<i v-else :class="icon"></i>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
export default defineComponent({
|
|
10
|
+
props: {
|
|
11
|
+
icon: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: '',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
</script>
|
package/composables/axios.ts
CHANGED
package/composables/classes.ts
CHANGED
|
@@ -891,7 +891,6 @@ export class DataStoreClass {
|
|
|
891
891
|
user: User;
|
|
892
892
|
accessToken: string | null = null;
|
|
893
893
|
refreshToken: string | null = null;
|
|
894
|
-
processCoverTypeSum: Value[];
|
|
895
894
|
processIndexRate: Value[];
|
|
896
895
|
processPaymentPeriod: Value[];
|
|
897
896
|
dicAnnuityTypeList: Value[];
|
|
@@ -1031,7 +1030,6 @@ export class DataStoreClass {
|
|
|
1031
1030
|
this.user = new User();
|
|
1032
1031
|
this.accessToken = null;
|
|
1033
1032
|
this.refreshToken = null;
|
|
1034
|
-
this.processCoverTypeSum = [];
|
|
1035
1033
|
this.taskList = [];
|
|
1036
1034
|
this.processHistory = [];
|
|
1037
1035
|
this.contragentList = [];
|
package/composables/constants.ts
CHANGED
package/composables/index.ts
CHANGED
|
@@ -254,3 +254,13 @@ export const setAddressBeneficiary = (whichIndex: number, sameAddress: boolean)
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
+
|
|
258
|
+
export const changeBridge = async (toBridge: 'efo' | 'lka', token: string) => {
|
|
259
|
+
const bridgeUrl = import.meta.env[`VITE_${toBridge.toUpperCase()}_URL`] as string;
|
|
260
|
+
if (!toBridge) return;
|
|
261
|
+
if (!bridgeUrl || !token) {
|
|
262
|
+
useDataStore().showToaster('error', `${useDataStore().t('toaster.noUrl')} [import.meta.env.VITE_${toBridge.toUpperCase()}_URL]`);
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
window.open(`${bridgeUrl}/#/Token?token=${token}`, '_blank');
|
|
266
|
+
};
|
package/configs/i18n.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createI18n } from 'vue-i18n';
|
|
2
2
|
import ru from '../locales/ru.json';
|
|
3
|
-
import kz from '../locales/kz.json';
|
|
4
3
|
|
|
5
4
|
const instance = createI18n({
|
|
6
5
|
legacy: false,
|
|
@@ -8,7 +7,6 @@ const instance = createI18n({
|
|
|
8
7
|
locale: 'ru',
|
|
9
8
|
messages: {
|
|
10
9
|
ru,
|
|
11
|
-
kz,
|
|
12
10
|
},
|
|
13
11
|
});
|
|
14
12
|
|
package/layouts/default.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="h-full z-[1]" :class="[$dataStore.hasLayoutMargins ? 'lg:mx-[22px] lg:my-[33px] lg:shadow-xl' : '']">
|
|
3
|
-
<div :class="[$
|
|
4
|
-
<section class="flex h-full" :class="$
|
|
3
|
+
<div :class="[$styles.greenBg]" class="hidden z-[-1] lg:block absolute left-0 top-0 h-[200px] w-full"></div>
|
|
4
|
+
<section class="flex h-full" :class="$styles.blueBgLight">
|
|
5
5
|
<base-menu-nav
|
|
6
6
|
v-if="$dataStore.showNav"
|
|
7
7
|
:selected="$dataStore.menu.selectedItem"
|
package/layouts/full.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="h-full z-[1]" :class="[$dataStore.hasLayoutMargins ? 'lg:mx-[22px] lg:my-[33px] lg:shadow-xl' : '']">
|
|
3
|
-
<div :class="[$
|
|
3
|
+
<div :class="[$styles.greenBg]" class="hidden lg:block absolute z-[-1] left-0 top-0 h-[200px] w-full"></div>
|
|
4
4
|
<slot></slot>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
package/locales/ru.json
CHANGED
|
@@ -305,12 +305,16 @@
|
|
|
305
305
|
"report": "Отчет",
|
|
306
306
|
"notifications": "Уведомления",
|
|
307
307
|
"support": "Тех. поддержка",
|
|
308
|
+
"makePolicy": "Заключить полис",
|
|
309
|
+
"done": "Оформлено",
|
|
310
|
+
"noChildAgents": "Отсутствуют суб-агенты",
|
|
308
311
|
"agentsInfo": "Сведения о страховых агентах",
|
|
312
|
+
"personalData": "Личные данные",
|
|
309
313
|
"info": "Данные об агенте",
|
|
310
314
|
"about": "Сведения об Агенте",
|
|
311
315
|
"level": "Уровень",
|
|
312
316
|
"subAgents": "Суб-агенты",
|
|
313
|
-
"
|
|
317
|
+
"doneStatements": "Оформлено договоров",
|
|
314
318
|
"myContracts": "Оформлено договоров",
|
|
315
319
|
"nextLevel": "Следующий уровень {text}",
|
|
316
320
|
"leftMy": "Осталось оформить лично",
|
package/nuxt.config.ts
CHANGED
|
@@ -6,7 +6,7 @@ import VueI18nVitePlugin from '@intlify/unplugin-vue-i18n/vite';
|
|
|
6
6
|
export default defineNuxtConfig({
|
|
7
7
|
ssr: false,
|
|
8
8
|
spaLoadingTemplate: false,
|
|
9
|
-
modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss', '@nuxt/devtools'],
|
|
9
|
+
modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss', '@nuxt/devtools', '@vueuse/nuxt'],
|
|
10
10
|
|
|
11
11
|
imports: {
|
|
12
12
|
dirs: ['store', 'composables'],
|
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.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "nuxt.config.ts",
|
|
@@ -28,31 +28,23 @@
|
|
|
28
28
|
"dev": "nuxt dev",
|
|
29
29
|
"generate": "nuxt generate",
|
|
30
30
|
"preview": "nuxt preview",
|
|
31
|
+
"tk:all": "cd .. && cd baiterek && yarn typecheck && cd .. && cd bolashak && yarn typecheck && cd .. && cd calculator && yarn typecheck && cd .. && cd efo && yarn typecheck && cd .. && cd gons && yarn typecheck && cd .. && cd kazyna && yarn typecheck && cd .. && cd lifebusiness && yarn typecheck && cd .. && cd liferenta && yarn typecheck && cd .. && cd core",
|
|
32
|
+
"i:all": "cd .. && cd baiterek && yarn && cd .. && cd bolashak && yarn && cd .. && cd calculator && yarn && cd .. && cd efo && yarn && cd .. && cd gons && yarn && cd .. && cd kazyna && yarn && cd .. && cd lifebusiness && yarn && cd .. && cd liferenta && yarn && cd .. && cd core",
|
|
31
33
|
"update:core": "git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main",
|
|
32
|
-
"update:aml": "cd
|
|
33
|
-
"update:baiterek": "cd .. && cd baiterek && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|
|
34
|
-
"update:bolashak": "cd .. && cd bolashak && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|
|
35
|
-
"update:calculator": "cd .. && cd calculator && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|
|
36
|
-
"update:efo": "cd .. && cd efo && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|
|
37
|
-
"update:gons": "cd .. && cd gons && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|
|
38
|
-
"update:kazyna": "cd .. && cd kazyna && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|
|
39
|
-
"update:liferenta": "cd .. && cd liferenta && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
|
|
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",
|
|
40
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",
|
|
41
|
-
"update:all": "yarn update:aml && yarn update:
|
|
42
|
-
"pull:
|
|
43
|
-
"pull:
|
|
44
|
-
"pull:
|
|
45
|
-
"pull:
|
|
46
|
-
"pull:efo": "cd .. && cd efo && git pull && cd .. && cd core",
|
|
47
|
-
"pull:gons": "cd .. && cd gons && git pull && cd .. && cd core",
|
|
48
|
-
"pull:kazyna": "cd .. && cd kazyna && git pull && cd .. && cd core",
|
|
49
|
-
"pull:liferenta": "cd .. && cd liferenta && git pull && cd .. && cd core",
|
|
50
|
-
"pull:lka": "cd .. && cd lka && git pull && cd .. && cd core",
|
|
51
|
-
"pull:all": "yarn pull:aml && yarn pull:baiterek && yarn pull:bolashak && yarn pull:calculator && yarn pull:efo && yarn pull:gons && yarn pull:kazyna && yarn pull:liferenta && yarn pull:lka",
|
|
36
|
+
"update:all": "yarn update:aml && yarn update:lka",
|
|
37
|
+
"pull:core": "git pull && git fetch",
|
|
38
|
+
"pull:aml": "cd ../../aml && git pull && cd ../efo/core",
|
|
39
|
+
"pull:lka": "cd ../../lka && git pull && cd ../efo/core",
|
|
40
|
+
"pull:all": "yarn pull:core && yarn pull:aml && yarn pull:lka",
|
|
52
41
|
"typecheck": "nuxt typecheck"
|
|
53
42
|
},
|
|
54
43
|
"devDependencies": {
|
|
55
44
|
"@nuxt/devtools": "^0.4.5",
|
|
45
|
+
"@vueuse/components": "^10.2.1",
|
|
46
|
+
"@vueuse/core": "^10.2.1",
|
|
47
|
+
"@vueuse/nuxt": "^10.2.1",
|
|
56
48
|
"nuxt": "^3.6.2",
|
|
57
49
|
"prettier": "^2.8.8"
|
|
58
50
|
},
|
|
@@ -70,7 +62,6 @@
|
|
|
70
62
|
"pinia": "^2.1.4",
|
|
71
63
|
"typedoc": "^0.24.8",
|
|
72
64
|
"typescript": "5.0.4",
|
|
73
|
-
"v-idle-3": "^0.3.14",
|
|
74
65
|
"vue-i18n": "^9.2.2",
|
|
75
66
|
"vue-json-pretty": "^2.2.4",
|
|
76
67
|
"vue-toastification": "^2.0.0-rc.5",
|
package/pages/500.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<base-content class="!w-full flex-col justify-center items-center gap-[100px]" :class="[$
|
|
2
|
+
<base-content class="!w-full flex-col justify-center items-center gap-[100px]" :class="[$styles.blueBgLight]">
|
|
3
3
|
<svg class="w-[240px] lg:w-[330px]" draggable="false" width="277" height="99" viewBox="0 0 277 99" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
4
|
<path
|
|
5
5
|
fill-rule="evenodd"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/>
|
|
40
40
|
</svg>
|
|
41
41
|
<div class="text-center">
|
|
42
|
-
<h2 :class="[$
|
|
42
|
+
<h2 :class="[$styles.blackText]" class="text-[26px] leading-5 mb-5">Сервис временно не доступен</h2>
|
|
43
43
|
<p v-if="errorStack.length" class="mt-4 flex flex-col">
|
|
44
44
|
<span v-for="(error, index) of errorStack" :key="error">
|
|
45
45
|
<i v-if="index !== 0" class="mdi mdi-arrow-right"></i>
|
package/pages/Token.vue
CHANGED
|
@@ -3,25 +3,24 @@ import { constants } from '../composables/constants';
|
|
|
3
3
|
import { Styles } from '../composables/styles';
|
|
4
4
|
import VueDatePicker from '@vuepic/vue-datepicker';
|
|
5
5
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
6
|
-
import Vidle from 'v-idle-3';
|
|
7
6
|
import Maska from 'maska';
|
|
8
7
|
import i18n from '../configs/i18n';
|
|
9
8
|
|
|
10
9
|
export default defineNuxtPlugin(nuxtApp => {
|
|
11
|
-
//@ts-ignore
|
|
12
|
-
nuxtApp.vueApp.use(Vidle, {});
|
|
13
10
|
nuxtApp.vueApp.use(Maska);
|
|
14
11
|
nuxtApp.vueApp.use(i18n);
|
|
15
12
|
nuxtApp.vueApp.component('VueDatePicker', VueDatePicker);
|
|
16
13
|
|
|
17
14
|
return {
|
|
18
15
|
provide: {
|
|
19
|
-
|
|
20
|
-
getFullNameShorted: getFullNameShorted,
|
|
21
|
-
libStyles: new Styles(),
|
|
16
|
+
env: useEnv(),
|
|
22
17
|
maska: new Masks(),
|
|
23
|
-
|
|
18
|
+
styles: new Styles(),
|
|
24
19
|
constants: constants,
|
|
20
|
+
capitalize: capitalize,
|
|
21
|
+
display: useDisplayInfo,
|
|
22
|
+
reformatIin: reformatIin,
|
|
23
|
+
getFullNameShorted: getFullNameShorted,
|
|
25
24
|
},
|
|
26
25
|
};
|
|
27
26
|
});
|
package/store/data.store.ts
CHANGED
|
@@ -39,6 +39,7 @@ export const useDataStore = defineStore('data', {
|
|
|
39
39
|
isBaiterek: state => state.product === 'baiterek',
|
|
40
40
|
isBolashak: state => state.product === 'bolashak',
|
|
41
41
|
isMycar: state => state.product === 'mycar',
|
|
42
|
+
isLifeBusiness: state => state.product === 'lifebusiness',
|
|
42
43
|
isLifetrip: state => state.product === 'lifetrip',
|
|
43
44
|
isLiferenta: state => state.product === 'liferenta',
|
|
44
45
|
isGons: state => state.product === 'gons',
|
|
@@ -586,7 +587,7 @@ export const useDataStore = defineStore('data', {
|
|
|
586
587
|
this.contragentList = [];
|
|
587
588
|
}
|
|
588
589
|
},
|
|
589
|
-
async saveContragent(user: Member, whichForm: keyof typeof StoreMembers, whichIndex: number | null, onlySaveAction: boolean = true) {
|
|
590
|
+
async saveContragent(user: Member, whichForm: keyof typeof StoreMembers | 'contragent', whichIndex: number | null, onlySaveAction: boolean = true) {
|
|
590
591
|
this.isLoading = !onlySaveAction;
|
|
591
592
|
const hasInsisId = await this.alreadyInInsis(user);
|
|
592
593
|
if (typeof hasInsisId === 'number') {
|
|
@@ -788,8 +789,12 @@ export const useDataStore = defineStore('data', {
|
|
|
788
789
|
|
|
789
790
|
const personId = await this.api.saveContragent(data);
|
|
790
791
|
if (personId > 0) {
|
|
791
|
-
|
|
792
|
-
|
|
792
|
+
if (this.isLKA || whichForm === 'contragent') {
|
|
793
|
+
return personId;
|
|
794
|
+
} else {
|
|
795
|
+
await this.getContragentById(personId, whichForm, false, whichIndex);
|
|
796
|
+
user.otpTokenId = null;
|
|
797
|
+
}
|
|
793
798
|
} else {
|
|
794
799
|
return false;
|
|
795
800
|
}
|
|
@@ -1094,7 +1099,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1094
1099
|
async getFromApi(whichField: string, whichRequest: string, parameter?: any, reset: boolean = false): Promise<Value[]> {
|
|
1095
1100
|
const storageValue = JSON.parse(localStorage.getItem(whichField) || 'null');
|
|
1096
1101
|
const currentHour = new Date().getHours();
|
|
1097
|
-
const currentMinutePart = Math.ceil((new Date().getMinutes() + 1) / 15);
|
|
1102
|
+
const currentMinutePart = Math.ceil((new Date().getMinutes() + 1) / (this.isLKA ? 60 : 15));
|
|
1098
1103
|
|
|
1099
1104
|
const getDataCondition = () => {
|
|
1100
1105
|
if (!storageValue) return true;
|
|
@@ -1210,13 +1215,14 @@ export const useDataStore = defineStore('data', {
|
|
|
1210
1215
|
return await this.getFromApi('relations', 'getRelationTypes');
|
|
1211
1216
|
},
|
|
1212
1217
|
async getProcessIndexRate() {
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
return await this.getFromApi('processCoverTypeSum', 'getProcessCoverTypeSum', type);
|
|
1218
|
+
if (this.processCode) {
|
|
1219
|
+
return await this.getFromApi('processIndexRate', 'getProcessIndexRate', this.processCode);
|
|
1220
|
+
}
|
|
1217
1221
|
},
|
|
1218
1222
|
async getProcessPaymentPeriod() {
|
|
1219
|
-
|
|
1223
|
+
if (this.processCode) {
|
|
1224
|
+
return await this.getFromApi('processPaymentPeriod', 'getProcessPaymentPeriod', this.processCode);
|
|
1225
|
+
}
|
|
1220
1226
|
},
|
|
1221
1227
|
async getQuestionRefs(id?: string) {
|
|
1222
1228
|
return await this.getFromApi('questionRefs', 'getQuestionRefs', id, true);
|
|
@@ -1228,7 +1234,9 @@ export const useDataStore = defineStore('data', {
|
|
|
1228
1234
|
return await this.getFromApi('dicAnnuityTypeList', 'getDicAnnuityTypeList');
|
|
1229
1235
|
},
|
|
1230
1236
|
async getProcessAnnuityPaymentPeriod() {
|
|
1231
|
-
|
|
1237
|
+
if (this.processCode) {
|
|
1238
|
+
return await this.getFromApi('processAnnuityPaymentPeriod', 'getProcessAnnuityPaymentPeriod', this.processCode);
|
|
1239
|
+
}
|
|
1232
1240
|
},
|
|
1233
1241
|
async getInsurancePay() {
|
|
1234
1242
|
return await this.getFromApi('insurancePay', 'getInsurancePay');
|
package/types/index.ts
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<button
|
|
3
|
-
type="button"
|
|
4
|
-
class="transition-all"
|
|
5
|
-
@click="$emit('clicked')"
|
|
6
|
-
:disabled="disabled"
|
|
7
|
-
:class="[
|
|
8
|
-
disabled ? 'disabled' : '',
|
|
9
|
-
classes,
|
|
10
|
-
btn,
|
|
11
|
-
$libStyles[`btnH${$capitalize(size)}` as keyof typeof $libStyles],
|
|
12
|
-
]"
|
|
13
|
-
>
|
|
14
|
-
<i class="mdi" :class="icon"></i>
|
|
15
|
-
</button>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script lang="ts">
|
|
19
|
-
export default defineComponent({
|
|
20
|
-
name: 'BaseBtnIcon',
|
|
21
|
-
props: {
|
|
22
|
-
icon: { type: String, default: 'mdi-arrow-right-variant' },
|
|
23
|
-
size: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: 'md',
|
|
26
|
-
},
|
|
27
|
-
classes: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: '',
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: false,
|
|
34
|
-
},
|
|
35
|
-
btn: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: new Styles().blueBtn,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style scoped>
|
|
44
|
-
.disabled {
|
|
45
|
-
opacity: 0.3;
|
|
46
|
-
}
|
|
47
|
-
</style>
|