hl-core 0.0.10-beta.41 → 0.0.10-beta.41-2
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 +8 -2
- package/components/Form/FormBlock.vue +1 -1
- package/components/Form/FormSource.vue +30 -0
- package/components/Form/ManagerAttachment.vue +1 -1
- package/components/Input/PanelInput.vue +1 -1
- package/components/Layout/Header.vue +1 -1
- package/components/Menu/InfoMenu.vue +1 -1
- package/components/Menu/MenuHover.vue +1 -1
- package/components/Menu/MenuNav.vue +1 -1
- package/components/Menu/MenuNavItem.vue +1 -1
- package/components/Pages/Anketa.vue +1 -1
- package/components/Pages/ContragentForm.vue +1 -1
- package/components/Pages/Documents.vue +2 -2
- package/components/Pages/MemberForm.vue +1 -1
- package/components/Pages/ProductConditions.vue +5 -2
- package/components/Panel/PanelHandler.vue +1 -1
- package/composables/index.ts +1905 -134
- package/layouts/default.vue +1 -1
- package/locales/ru.json +1 -0
- package/package.json +1 -1
- package/store/data.store.ts +12 -1
- package/store/form.store.ts +1 -1
- package/store/member.store.ts +1 -1
- package/types/enum.ts +5 -1
- package/types/index.ts +2 -2
- package/composables/classes.ts +0 -1830
package/layouts/default.vue
CHANGED
package/locales/ru.json
CHANGED
package/package.json
CHANGED
package/store/data.store.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { rules } from './rules';
|
|
|
3
3
|
import { i18n } from '../configs/i18n';
|
|
4
4
|
import { Toast, Types as ToastTypes, Positions, ToastOptions } from './toast';
|
|
5
5
|
import { isValidGUID, yearEnding, jwtDecode, ErrorHandler, getKeyWithPattern, getNumber, getAgeByBirthDate, RoleController, ProcessController, sanitize } from '../composables';
|
|
6
|
-
import { DataStoreClass, DocumentItem, Member, Value, CountryValue, PolicyholderActivity, BeneficialOwner, PolicyholderClass, GroupMember } from '../composables
|
|
6
|
+
import { DataStoreClass, DocumentItem, Member, Value, CountryValue, PolicyholderActivity, BeneficialOwner, PolicyholderClass, GroupMember } from '../composables';
|
|
7
7
|
import { ApiClass } from '../api';
|
|
8
8
|
import { useFormStore } from './form.store';
|
|
9
9
|
import { AxiosError } from 'axios';
|
|
@@ -1523,6 +1523,9 @@ export const useDataStore = defineStore('data', {
|
|
|
1523
1523
|
const makeCall = (this.isLifeBusiness || this.isGns) && this.processCode;
|
|
1524
1524
|
if (makeCall) return await this.getFromApi('processGfot', 'getProcessGfot', this.processCode);
|
|
1525
1525
|
},
|
|
1526
|
+
async getSource() {
|
|
1527
|
+
return await this.getFromApi('Source', 'getSource');
|
|
1528
|
+
},
|
|
1526
1529
|
async getCurrencies() {
|
|
1527
1530
|
try {
|
|
1528
1531
|
const currencies = await this.api.getCurrencies();
|
|
@@ -1584,6 +1587,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1584
1587
|
this.getDicTripPurpose(),
|
|
1585
1588
|
this.getCurrencies(),
|
|
1586
1589
|
this.getProcessGfot(),
|
|
1590
|
+
this.getSource(),
|
|
1587
1591
|
this.getBanks(),
|
|
1588
1592
|
this.getInsuranceCompanies(),
|
|
1589
1593
|
this.getEconomicActivityType(),
|
|
@@ -2196,6 +2200,13 @@ export const useDataStore = defineStore('data', {
|
|
|
2196
2200
|
this.formStore.SaleChanellPolicy.ids = applicationData.insisWorkDataApp.saleChanellPolicy;
|
|
2197
2201
|
this.formStore.AgentData.fullName = applicationData.insisWorkDataApp.agentName;
|
|
2198
2202
|
this.formStore.AgentData.agentId = applicationData.insisWorkDataApp.agentId;
|
|
2203
|
+
if ('sourceId' in applicationData.insisWorkDataApp && applicationData.insisWorkDataApp.sourceId !== null) {
|
|
2204
|
+
const source = this.Source.find((i: Value) => i.id === applicationData.insisWorkDataApp.sourceId);
|
|
2205
|
+
this.formStore.Source = source ? source : new Value();
|
|
2206
|
+
} else {
|
|
2207
|
+
const sourceEfo = this.Source.find((i: Value) => i.id === '3f9e5327-328c-4bc7-8d28-fa25c36ba153');
|
|
2208
|
+
this.formStore.Source = sourceEfo ? sourceEfo : new Value();
|
|
2209
|
+
}
|
|
2199
2210
|
|
|
2200
2211
|
const clientData = applicationData.clientApp;
|
|
2201
2212
|
const insuredData: any[] = applicationData.insuredApp;
|
package/store/form.store.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
|
-
import { BeneficialOwner, FormStoreClass, PolicyholderActivity } from '../composables
|
|
2
|
+
import { BeneficialOwner, FormStoreClass, PolicyholderActivity } from '../composables';
|
|
3
3
|
|
|
4
4
|
export const useFormStore = defineStore('forms', {
|
|
5
5
|
state: () => ({
|
package/store/member.store.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { useDataStore } from './data.store';
|
|
|
3
3
|
import { useFormStore } from './form.store';
|
|
4
4
|
import { ErrorHandler } from '../composables';
|
|
5
5
|
import { AxiosError } from 'axios';
|
|
6
|
-
import { Member } from '../composables
|
|
6
|
+
import { Member } from '../composables';
|
|
7
7
|
import { MemberAppCodes, MemberCodes, StoreMembers } from '../types/enum';
|
|
8
8
|
import type { MultipleMember, SendOtpResponse } from '../types';
|
|
9
9
|
|
package/types/enum.ts
CHANGED
|
@@ -117,7 +117,11 @@ export enum Roles {
|
|
|
117
117
|
ManagerAuletti = 'ManagerAuletti',
|
|
118
118
|
HeadOfDso = 'HeadOfDso',
|
|
119
119
|
URSP = 'URSP',
|
|
120
|
-
ExecutorGPH = 'ExecutorGPH'
|
|
120
|
+
ExecutorGPH = 'ExecutorGPH',
|
|
121
|
+
DsuioOrv = 'DsuioOrv',
|
|
122
|
+
UKP = 'UKP',
|
|
123
|
+
DpDirector = 'DpDirector',
|
|
124
|
+
Security = 'Security',
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
export enum Statuses {
|
package/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Value } from '../composables
|
|
2
|
-
import type { IDocument } from '../composables
|
|
1
|
+
import { Value } from '../composables';
|
|
2
|
+
import type { IDocument } from '../composables';
|
|
3
3
|
import type { RouteLocationNormalizedLoaded, RouteLocationNormalized } from 'vue-router';
|
|
4
4
|
import type { AxiosRequestConfig } from 'axios';
|
|
5
5
|
import { Methods, CoreEnums, Actions, Statuses } from './enum';
|