hl-core 0.0.10-beta.60 → 0.0.10-beta.61

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 CHANGED
@@ -369,6 +369,10 @@ export class ApiClass {
369
369
  });
370
370
  }
371
371
 
372
+ async getMainParts() {
373
+ return this.axiosCall<Types.BpmMenuItem[]>({ method: Methods.GET, url: '/Arm/api/Bpm/MenuItem' });
374
+ }
375
+
372
376
  async getProcessHistory(id: string) {
373
377
  return await this.axiosCall<Types.TaskHistory[]>({
374
378
  method: Methods.GET,
@@ -545,7 +545,7 @@ export default defineComponent({
545
545
  if (dataStore.isPension) {
546
546
  if (formStore.applicationData.pensionApp) {
547
547
  const isOnlineEnpfAgreement = formStore.applicationData.pensionApp.isOnlineEnpfAgreement;
548
- isOnlineEnpf.value = isOnlineEnpfAgreement === null ? true : isOnlineEnpfAgreement;
548
+ isOnlineEnpf.value = formStore.hasRepresentative ? false : true;
549
549
  await dataStore.getSignedDocList(formStore.applicationData.processInstanceId);
550
550
  }
551
551
  }
@@ -816,8 +816,8 @@ export class RoleController {
816
816
  const hasAccessByProduct = (() => {
817
817
  const product = productFromExternal as Projects;
818
818
  if (dataStore.isLifetrip || product === 'lifetrip') return this.isBranchDirector() || this.isTravelAgent();
819
- if (dataStore.isPension || product === 'pensionannuitynew') return this.isBranchDirector() || this.isExecutor();
820
- if (dataStore.isLifeBusiness || product === 'lifebusiness') return this.isHeadManager() || this.isBranchDirector();
819
+ if (dataStore.isPension || product === 'pensionannuitynew') return this.isBranchDirector() || this.isExecutor() || this.isRegionDirector();
820
+ if (dataStore.isLifeBusiness || product === 'lifebusiness') return this.isHeadManager() || this.isBranchDirector() || this.isRegionDirector();
821
821
  if (dataStore.isCritical || product === 'criticalillness') return this.isBranchDirector();
822
822
  return false;
823
823
  })();
@@ -849,6 +849,7 @@ export class RoleController {
849
849
  isSupervisor = () => this.isRole(constants.roles.Supervisor);
850
850
  isHeadManager = () => this.isRole(constants.roles.HeadManager);
851
851
  isBranchDirector = () => this.isRole(constants.roles.BranchDirector);
852
+ isRegionDirector = () => this.isRole(constants.roles.RegionDirector);
852
853
  isUSNSACCINS = () => this.isRole(constants.roles.USNSACCINS);
853
854
  isDsuio = () => this.isRole(constants.roles.Dsuio);
854
855
  isHeadDso = () => this.isRole(constants.roles.HEADDSO);
@@ -922,6 +923,7 @@ export class RoleController {
922
923
  this.isJurist() ||
923
924
  this.isAccountant() ||
924
925
  this.isBranchDirector() ||
926
+ this.isRegionDirector() ||
925
927
  this.isUSNSACCINS() ||
926
928
  this.isDsuio() ||
927
929
  this.isAdjuster() ||
package/locales/kz.json CHANGED
@@ -877,7 +877,7 @@
877
877
  "password": "Пароль"
878
878
  },
879
879
  "rules": {
880
- "required": "Өріс міндетті",
880
+ "required": "Толтыру міндетті",
881
881
  "fileRequired": "Файл міндетті",
882
882
  "cyrillic": "Өрісте тек кириллица таңбалары болуы керек",
883
883
  "latin": "Жолақта тек латын таңбалары болуы керек",
package/locales/ru.json CHANGED
@@ -872,7 +872,8 @@
872
872
  "searchType": "Тип поиска",
873
873
  "eventType": "Тип СС",
874
874
  "eventDate": "Дата СС",
875
- "typePolicyholder": "Тип страхователя"
875
+ "typePolicyholder": "Тип страхователя",
876
+ "efoMenuItems": "Основные разделы ЕФО"
876
877
  },
877
878
  "placeholders": {
878
879
  "login": "Логин",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.60",
3
+ "version": "0.0.10-beta.61",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
package/types/enum.ts CHANGED
@@ -108,6 +108,7 @@ export enum Roles {
108
108
  USNSsanctioner = 'USNSsanctioner',
109
109
  Accountant = 'Accountant',
110
110
  BranchDirector = 'BranchDirector',
111
+ RegionDirector = 'RegionDirector',
111
112
  USNSACCINS = 'USNSACCINS',
112
113
  Dsuio = 'Dsuio',
113
114
  HEADDSO = 'HEADDSO',
package/types/index.ts CHANGED
@@ -124,6 +124,17 @@ export type Item = {
124
124
  itemName: string;
125
125
  };
126
126
 
127
+ export type BpmMenuItem = {
128
+ itemCode: string;
129
+ nameRu: string;
130
+ nameKz: string | null;
131
+ descrition: string;
132
+ order: number;
133
+ path: string | null;
134
+ icon: string | null;
135
+ hasChildren: boolean;
136
+ };
137
+
127
138
  export type AnketaBody = {
128
139
  first: EachAnketa;
129
140
  second: AnketaSecond[] | null;