hl-core 0.0.9-beta.20 → 0.0.9-beta.21

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.
@@ -16,6 +16,9 @@ export default function (axios: AxiosInstance) {
16
16
  if (request.baseURL === 'https://products.halyklife.kz/efo/api') {
17
17
  request.baseURL = 'http://efo-prod.halyklife.nb/api';
18
18
  }
19
+ if (request.baseURL === 'https://products.halyklife.kz/aml/api') {
20
+ request.baseURL = 'http://aml-prod.halyklife.nb/api';
21
+ }
19
22
  }
20
23
  if (host.startsWith('vega')) {
21
24
  if (request.baseURL === 'https://products.halyklife.kz/api/v1/test/insis') {
@@ -24,6 +27,9 @@ export default function (axios: AxiosInstance) {
24
27
  if (request.baseURL === 'https://products.halyklife.kz/dev/efo/api') {
25
28
  request.baseURL = 'http://efo-dev.halyklife.nb/api';
26
29
  }
30
+ if (request.baseURL === 'https://products.halyklife.kz/dev/aml/api') {
31
+ request.baseURL = 'http://aml-dev.halyklife.nb/api';
32
+ }
27
33
  }
28
34
  if (import.meta.env.VITE_ON_NEW_API === 'true') {
29
35
  if (request.url.includes('api/Application')) {
@@ -9,7 +9,7 @@
9
9
  <v-text-field v-model="$dataStore.user.fullName" :readonly="true" hide-details variant="plain" :label="$dataStore.user.roles?.join(', ')" />
10
10
  <i class="mdi mdi-account-outline text-2xl text-[#A0B3D8]"></i
11
11
  ></base-panel-item>
12
- <base-panel-item v-if="$dataStore.isEFO && $dataStore.accessToken" @click="changeBridge('lka', $dataStore.accessToken)" class="cursor-pointer">
12
+ <base-panel-item v-if="$dataStore.isEFO && $dataStore.accessToken && $dataStore.hasAccess().toLKA" @click="changeBridge('lka', $dataStore.accessToken)" class="cursor-pointer">
13
13
  {{ $dataStore.t('labels.lkaLong') }}
14
14
  <i class="mdi mdi-chevron-right text-2xl text-[#A0B3D8]"></i
15
15
  ></base-panel-item>
@@ -24,7 +24,15 @@
24
24
  <span :class="[$styles.greyTextDark]" class="text-[16px]">{{ $dataStore.t('labels.needAuth') }}</span>
25
25
  </div>
26
26
  <v-form ref="vForm" class="w-2/3 lg:w-[25vw] self-center">
27
- <base-rounded-input class="mb-1" v-model.trim="login" :rules="$rules.required" :loading="authLoading" :placeholder="$dataStore.t('buttons.userLogin')" type="text" />
27
+ <base-rounded-input
28
+ class="mb-1"
29
+ v-model.trim="login"
30
+ :rules="$rules.required"
31
+ :loading="authLoading"
32
+ :placeholder="$dataStore.t('buttons.userLogin')"
33
+ type="text"
34
+ @keyup.enter="submitAuthForm"
35
+ />
28
36
  <base-rounded-input
29
37
  class="mb-1"
30
38
  v-model.trim="password"
@@ -34,6 +42,7 @@
34
42
  :append-inner-icon="showPassword ? 'mdi-eye-outline' : 'mdi-eye-off-outline'"
35
43
  @append="showPassword = !showPassword"
36
44
  :type="showPassword ? ('' as InputTypes) : 'password'"
45
+ @keyup.enter="submitAuthForm"
37
46
  />
38
47
  <span v-if="$dataStore.isLKA" class="inline-block w-full text-end mb-4" :class="[$styles.textSimple, $styles.greyTextDark]" @click="isLogin = false">{{
39
48
  $dataStore.t('labels.resetPassword')
@@ -61,6 +70,7 @@
61
70
  :loading="authLoading"
62
71
  :placeholder="$dataStore.t('form.phoneNumber')"
63
72
  type="text"
73
+ @keyup.enter="submitAuthForm"
64
74
  />
65
75
  <base-rounded-input
66
76
  v-if="resetPasswordType === 'email'"
@@ -69,6 +79,7 @@
69
79
  :loading="authLoading"
70
80
  :placeholder="$dataStore.t('form.email')"
71
81
  type="text"
82
+ @keyup.enter="submitAuthForm"
72
83
  />
73
84
  <span class="inline-block w-full text-end mb-4" :class="[$styles.textSimple, $styles.greyTextDark]" @click="isLogin = true">{{ $dataStore.t('buttons.login') }}</span>
74
85
  <base-btn :text="$dataStore.t('buttons.reset')" :disabled="authLoading" :btn="$styles.greenBtn" @click="submitAuthForm" />
package/locales/ru.json CHANGED
@@ -120,6 +120,10 @@
120
120
  "dataInput": "Ввод данных",
121
121
  "createStatement": "Создать заявку",
122
122
  "add": "Добавить",
123
+ "addRelative": "Добавить родственника",
124
+ "deleteAML": "Исключить",
125
+ "deleteRelative": "Исключить родственника",
126
+ "editRelative": "Изменить родственника",
123
127
  "userLogin": "Логин",
124
128
  "password": "Пароль",
125
129
  "login": "Войти в систему",
@@ -368,7 +372,22 @@
368
372
  "nameRu": "Наименование (рус)",
369
373
  "nameEn": "Наименование (англ)",
370
374
  "from": "От",
371
- "to": "До"
375
+ "to": "До",
376
+ "reason": "Основание для признания аффилированности",
377
+ "affiliationDate": "Дата появления аффилированности",
378
+ "expulsionDate": "Дата исключения",
379
+ "wrongData": "Некорректные данные обнаружены",
380
+ "legalName": "Название организации",
381
+ "oked": "Окэд",
382
+ "contragentType": "Тип контрагента",
383
+ "checkSingle": "Проверить одного",
384
+ "checkMultiple": "Проверить несколько",
385
+ "legalEntity": "Юр. лицо",
386
+ "checkConfirmation": "Подтверждение результата проверки:",
387
+ "controllerCheck": "Проверенно контроллером",
388
+ "amountCurrency": "Сумма в валюте",
389
+ "isAnotherContract ": "Подозрение что у клиента есть договор страхования в другой иностранной компании",
390
+ "opf": "Организационно-правовая форма"
372
391
  },
373
392
  "agent": {
374
393
  "currency": "Валюта",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.9-beta.20",
3
+ "version": "0.0.9-beta.21",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -245,24 +245,15 @@ export const useDataStore = defineStore('data', {
245
245
  this.getUserRoles();
246
246
  }
247
247
  const checkPermission = () => {
248
+ const hasAccess = this.hasAccess();
248
249
  if (this.isAML) {
249
- return this.isCompliance() || this.isAdmin() || this.isSupport() || this.isAnalyst();
250
+ return hasAccess.toAML;
250
251
  }
251
252
  if (this.isLKA) {
252
- return this.isAgent() || this.isAdmin() || this.isSupport() || this.isAnalyst() || this.isDrn();
253
+ return hasAccess.toLKA;
253
254
  }
254
255
  if (this.isEFO) {
255
- return (
256
- this.isInitiator() ||
257
- this.isUnderwriter() ||
258
- this.isAdmin() ||
259
- this.isCompliance() ||
260
- this.isAnalyst() ||
261
- this.isUpk() ||
262
- this.isFinCenter() ||
263
- this.isSupervisor() ||
264
- this.isSupport()
265
- );
256
+ return hasAccess.toEFO;
266
257
  }
267
258
  return false;
268
259
  };
@@ -1313,7 +1304,7 @@ export const useDataStore = defineStore('data', {
1313
1304
  return await this.getFromApi('questionRefs', 'getQuestionRefs', id, true);
1314
1305
  },
1315
1306
  async getProcessTariff() {
1316
- return await this.getFromApi('processTariff', 'getProcessTariff', this.processCode);
1307
+ if (this.processCode) return await this.getFromApi('processTariff', 'getProcessTariff', this.processCode);
1317
1308
  },
1318
1309
  async getDicAnnuityTypeList() {
1319
1310
  return await this.getFromApi('dicAnnuityTypeList', 'getDicAnnuityTypeList');
@@ -2959,8 +2950,22 @@ export const useDataStore = defineStore('data', {
2959
2950
  hasPercentageOfPayoutAmount() {
2960
2951
  return true;
2961
2952
  },
2962
- canViewInvoiceInfo() {
2963
- return this.isAdmin();
2953
+ hasAccess() {
2954
+ return {
2955
+ invoiceInfo: this.isAdmin(),
2956
+ toLKA: this.isAgent() || this.isAdmin() || this.isSupport() || this.isAnalyst() || this.isDrn(),
2957
+ toAML: this.isCompliance() || this.isAdmin() || this.isSupport() || this.isAnalyst(),
2958
+ toEFO:
2959
+ this.isInitiator() ||
2960
+ this.isUnderwriter() ||
2961
+ this.isAdmin() ||
2962
+ this.isCompliance() ||
2963
+ this.isAnalyst() ||
2964
+ this.isUpk() ||
2965
+ this.isFinCenter() ||
2966
+ this.isSupervisor() ||
2967
+ this.isSupport(),
2968
+ };
2964
2969
  },
2965
2970
  },
2966
2971
  });