hl-core 0.0.10-beta.41 → 0.0.10-beta.41-1
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 +7 -1
- package/components/Form/FormSource.vue +30 -0
- package/composables/classes.ts +13 -6
- package/composables/index.ts +44 -108
- package/locales/ru.json +1 -0
- package/package.json +1 -1
- package/store/data.store.ts +11 -0
- package/types/enum.ts +5 -1
package/api/base.api.ts
CHANGED
|
@@ -312,6 +312,12 @@ export class ApiClass {
|
|
|
312
312
|
url: '/Arm/api/Dictionary/GetDictionaryItems/DicProgramType',
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
|
+
async getSource() {
|
|
316
|
+
return await this.axiosCall<Value[]>({
|
|
317
|
+
method: Methods.GET,
|
|
318
|
+
url: '/Arm/api/Dictionary/GetDictionaryItems/DicSource',
|
|
319
|
+
});
|
|
320
|
+
}
|
|
315
321
|
|
|
316
322
|
async getContrAgentData(personId: string | number) {
|
|
317
323
|
return await this.axiosCall<Types.ContragentQuestionaries[]>({
|
|
@@ -642,7 +648,7 @@ export class ApiClass {
|
|
|
642
648
|
url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}?filter=${filterName}`,
|
|
643
649
|
});
|
|
644
650
|
}
|
|
645
|
-
|
|
651
|
+
|
|
646
652
|
async filterExecutorByRegion(dictName: string, filterName: string) {
|
|
647
653
|
return await this.axiosCall<Value[]>({
|
|
648
654
|
method: Methods.GET,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<base-panel-input
|
|
3
|
+
class="source-form-input"
|
|
4
|
+
v-model="formStore.Source"
|
|
5
|
+
:value="formStore.Source?.nameRu"
|
|
6
|
+
:readonly="true"
|
|
7
|
+
:clearable="false"
|
|
8
|
+
:label="$dataStore.t('form.source')"
|
|
9
|
+
/>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
export default defineComponent({
|
|
14
|
+
setup(props) {
|
|
15
|
+
const formStore = useFormStore();
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
// State
|
|
19
|
+
formStore,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.source-form-input {
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
border: 1px solid #e5e7eb;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
package/composables/classes.ts
CHANGED
|
@@ -51,12 +51,6 @@ class MenuItemConfig {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export class MenuItem extends MenuItemConfig {
|
|
55
|
-
constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip }: MenuItemConfig = new MenuItemConfig()) {
|
|
56
|
-
super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
54
|
export class Value {
|
|
61
55
|
id: string | number | null;
|
|
62
56
|
code: string | number | null;
|
|
@@ -1008,6 +1002,8 @@ export class DataStoreClass {
|
|
|
1008
1002
|
hasChooseSign: boolean;
|
|
1009
1003
|
// Выбор метода оплаты
|
|
1010
1004
|
hasChoosePay: boolean;
|
|
1005
|
+
// Блок источник
|
|
1006
|
+
hasSource: boolean;
|
|
1011
1007
|
};
|
|
1012
1008
|
members: {
|
|
1013
1009
|
clientApp: MemberSettings;
|
|
@@ -1111,6 +1107,7 @@ export class DataStoreClass {
|
|
|
1111
1107
|
AgentData: Types.AgentData[];
|
|
1112
1108
|
riskGroup: Value[];
|
|
1113
1109
|
DicCoverTypePeriod: Value[];
|
|
1110
|
+
Source: Value[];
|
|
1114
1111
|
currencies: {
|
|
1115
1112
|
eur: number | null;
|
|
1116
1113
|
usd: number | null;
|
|
@@ -1178,6 +1175,7 @@ export class DataStoreClass {
|
|
|
1178
1175
|
hasAffiliation: true,
|
|
1179
1176
|
hasChooseSign: false,
|
|
1180
1177
|
hasChoosePay: false,
|
|
1178
|
+
hasSource: false,
|
|
1181
1179
|
};
|
|
1182
1180
|
this.iframeLoading = false;
|
|
1183
1181
|
this.hasLayoutMargins = true;
|
|
@@ -1194,6 +1192,7 @@ export class DataStoreClass {
|
|
|
1194
1192
|
this.ExecutorGPH = [];
|
|
1195
1193
|
this.AgentData = [];
|
|
1196
1194
|
this.DicCoverTypePeriod = [];
|
|
1195
|
+
this.Source = [];
|
|
1197
1196
|
this.product = import.meta.env.VITE_PRODUCT ? (import.meta.env.VITE_PRODUCT as Types.Projects) : null;
|
|
1198
1197
|
this.parentProduct = import.meta.env.VITE_PARENT_PRODUCT ? import.meta.env.VITE_PARENT_PRODUCT : 'efo';
|
|
1199
1198
|
this.showNav = true;
|
|
@@ -1392,6 +1391,7 @@ export class FormStoreClass {
|
|
|
1392
1391
|
RegionPolicy: Value;
|
|
1393
1392
|
ManagerPolicy: Value;
|
|
1394
1393
|
ExecutorGPH: Value;
|
|
1394
|
+
Source: Value;
|
|
1395
1395
|
isDisabled: {
|
|
1396
1396
|
policyholderForm: boolean;
|
|
1397
1397
|
beneficiaryForm: boolean;
|
|
@@ -1523,6 +1523,7 @@ export class FormStoreClass {
|
|
|
1523
1523
|
this.RegionPolicy = new Value();
|
|
1524
1524
|
this.ManagerPolicy = new Value();
|
|
1525
1525
|
this.ExecutorGPH = new Value();
|
|
1526
|
+
this.Source = new Value();
|
|
1526
1527
|
this.isDisabled = {
|
|
1527
1528
|
policyholderForm: true,
|
|
1528
1529
|
beneficiaryForm: true,
|
|
@@ -1828,3 +1829,9 @@ export class TransferContract {
|
|
|
1828
1829
|
export class RequiredDocument extends Value {
|
|
1829
1830
|
iin: string = '';
|
|
1830
1831
|
}
|
|
1832
|
+
|
|
1833
|
+
export class MenuItem extends MenuItemConfig {
|
|
1834
|
+
constructor({ id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip }: MenuItemConfig = new MenuItemConfig()) {
|
|
1835
|
+
super(id, title, link, hasLine, description, url, initial, icon, action, disabled, color, show, chip);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
package/composables/index.ts
CHANGED
|
@@ -739,120 +739,54 @@ export class RoleController {
|
|
|
739
739
|
})();
|
|
740
740
|
return this.isManager() || this.isAgent() || this.isAgentMycar() || this.isManagerHalykBank() || this.isServiceManager() || this.isAgentAuletti() || hasAccessByProduct;
|
|
741
741
|
};
|
|
742
|
-
isManager = () =>
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
isAnalyst = () => {
|
|
782
|
-
return this.isRole(constants.roles.Analyst);
|
|
783
|
-
};
|
|
784
|
-
isUpk = () => {
|
|
785
|
-
return this.isRole(constants.roles.UPK);
|
|
786
|
-
};
|
|
787
|
-
isUrp = () => {
|
|
788
|
-
return this.isRole(constants.roles.URP);
|
|
789
|
-
};
|
|
790
|
-
isUsns = () => {
|
|
791
|
-
return this.isRole(constants.roles.USNS);
|
|
792
|
-
};
|
|
793
|
-
isAccountant = () => {
|
|
794
|
-
return this.isRole(constants.roles.Accountant);
|
|
795
|
-
};
|
|
796
|
-
isDrn = () => {
|
|
797
|
-
return this.isRole(constants.roles.DRNSJ);
|
|
798
|
-
};
|
|
799
|
-
isSupport = () => {
|
|
800
|
-
return this.isRole(constants.roles.Support);
|
|
801
|
-
};
|
|
802
|
-
isFinCenter = () => {
|
|
803
|
-
return this.isRole(constants.roles.FinCenter);
|
|
804
|
-
};
|
|
805
|
-
isSupervisor = () => {
|
|
806
|
-
return this.isRole(constants.roles.Supervisor);
|
|
807
|
-
};
|
|
808
|
-
isHeadManager = () => {
|
|
809
|
-
return this.isRole(constants.roles.HeadManager);
|
|
810
|
-
};
|
|
811
|
-
isBranchDirector = () => {
|
|
812
|
-
return this.isRole(constants.roles.BranchDirector);
|
|
813
|
-
};
|
|
814
|
-
isUSNSACCINS = () => {
|
|
815
|
-
return this.isRole(constants.roles.USNSACCINS);
|
|
816
|
-
};
|
|
817
|
-
isDsuio = () => {
|
|
818
|
-
return this.isRole(constants.roles.Dsuio);
|
|
819
|
-
};
|
|
820
|
-
isHeadDso = () => {
|
|
821
|
-
return this.isRole(constants.roles.HEADDSO);
|
|
822
|
-
};
|
|
823
|
-
isAdjuster = () => {
|
|
824
|
-
return this.isRole(constants.roles.SettlementLosses);
|
|
825
|
-
};
|
|
826
|
-
isHeadAdjuster = () => {
|
|
827
|
-
return this.isRole(constants.roles.HeadSettlementLosses);
|
|
828
|
-
};
|
|
829
|
-
isDsoDirector = () => {
|
|
830
|
-
return this.isRole(constants.roles.DsoDirector);
|
|
831
|
-
};
|
|
832
|
-
isArchivist = () => {
|
|
833
|
-
return this.isRole(constants.roles.Archivist);
|
|
834
|
-
};
|
|
835
|
-
isAccountantDirector = () => {
|
|
836
|
-
return this.isRole(constants.roles.AccountantDirector);
|
|
837
|
-
};
|
|
838
|
-
isHeadOfDso = () => {
|
|
839
|
-
return this.isRole(constants.roles.HeadOfDso);
|
|
840
|
-
};
|
|
841
|
-
isUrsp = () => {
|
|
842
|
-
return this.isRole(constants.roles.URSP);
|
|
843
|
-
};
|
|
844
|
-
isExecutor = () => {
|
|
845
|
-
return this.isRole(constants.roles.ExecutorGPH);
|
|
846
|
-
};
|
|
742
|
+
isManager = () => this.isRole(constants.roles.Manager);
|
|
743
|
+
isCompliance = () => this.isRole(constants.roles.Compliance);
|
|
744
|
+
isAdmin = () => this.isRole(constants.roles.Admin);
|
|
745
|
+
isJurist = () => this.isRole(constants.roles.Jurist);
|
|
746
|
+
isAgent = () => this.isRole(constants.roles.Agent);
|
|
747
|
+
isManagerHalykBank = () => this.isRole(constants.roles.ManagerHalykBank);
|
|
748
|
+
isServiceManager = () => this.isRole(constants.roles.ServiceManager);
|
|
749
|
+
isUSNSsanctioner = () => this.isRole(constants.roles.USNSsanctioner);
|
|
750
|
+
isUnderwriter = () => this.isRole(constants.roles.Underwriter);
|
|
751
|
+
isActuary = () => this.isRole(constants.roles.Actuary);
|
|
752
|
+
isAgentMycar = () => this.isRole(constants.roles.AgentMycar);
|
|
753
|
+
isAgentAuletti = () => this.isRole(constants.roles.AgentAuletti);
|
|
754
|
+
isManagerAuletti = () => this.isRole(constants.roles.ManagerAuletti);
|
|
755
|
+
isAnalyst = () => this.isRole(constants.roles.Analyst);
|
|
756
|
+
isUpk = () => this.isRole(constants.roles.UPK);
|
|
757
|
+
isUrp = () => this.isRole(constants.roles.URP);
|
|
758
|
+
isUsns = () => this.isRole(constants.roles.USNS);
|
|
759
|
+
isAccountant = () => this.isRole(constants.roles.Accountant);
|
|
760
|
+
isDrn = () => this.isRole(constants.roles.DRNSJ);
|
|
761
|
+
isSupport = () => this.isRole(constants.roles.Support);
|
|
762
|
+
isFinCenter = () => this.isRole(constants.roles.FinCenter);
|
|
763
|
+
isSupervisor = () => this.isRole(constants.roles.Supervisor);
|
|
764
|
+
isHeadManager = () => this.isRole(constants.roles.HeadManager);
|
|
765
|
+
isBranchDirector = () => this.isRole(constants.roles.BranchDirector);
|
|
766
|
+
isUSNSACCINS = () => this.isRole(constants.roles.USNSACCINS);
|
|
767
|
+
isDsuio = () => this.isRole(constants.roles.Dsuio);
|
|
768
|
+
isHeadDso = () => this.isRole(constants.roles.HEADDSO);
|
|
769
|
+
isAdjuster = () => this.isRole(constants.roles.SettlementLosses);
|
|
770
|
+
isHeadAdjuster = () => this.isRole(constants.roles.HeadSettlementLosses);
|
|
771
|
+
isDsoDirector = () => this.isRole(constants.roles.DsoDirector);
|
|
772
|
+
isArchivist = () => this.isRole(constants.roles.Archivist);
|
|
773
|
+
isAccountantDirector = () => this.isRole(constants.roles.AccountantDirector);
|
|
774
|
+
isHeadOfDso = () => this.isRole(constants.roles.HeadOfDso);
|
|
775
|
+
isUrsp = () => this.isRole(constants.roles.URSP);
|
|
776
|
+
isExecutor = () => this.isRole(constants.roles.ExecutorGPH);
|
|
777
|
+
isDsuioOrv = () => this.isRole(constants.roles.DsuioOrv);
|
|
778
|
+
isUKP = () => this.isRole(constants.roles.UKP);
|
|
779
|
+
isDpDirector = () => this.isRole(constants.roles.DpDirector);
|
|
780
|
+
isSecurity = () => this.isRole(constants.roles.Security);
|
|
847
781
|
hasAccess = () => {
|
|
848
|
-
const baseAccessRoles = this.isAdmin() || this.isSupport() || this.isAnalyst() || this.isDrn();
|
|
782
|
+
const baseAccessRoles = this.isAdmin() || this.isSupport() || this.isAnalyst() || this.isDrn() || this.isDsuioOrv();
|
|
849
783
|
return {
|
|
850
784
|
invoiceInfo: this.isAdmin() || this.isSupport(),
|
|
851
785
|
toLKA: this.isAgent() || this.isManagerHalykBank() || baseAccessRoles,
|
|
852
786
|
toAML: this.isCompliance() || baseAccessRoles,
|
|
853
787
|
toAULETTI: this.isAgentAuletti() || this.isManagerAuletti() || baseAccessRoles,
|
|
854
788
|
toLKA_A: this.isAgentAuletti() || baseAccessRoles,
|
|
855
|
-
toUU: this.isServiceManager() || this.isAccountant() || this.isAdjuster() || this.isHeadAdjuster() || this.isArchivist() || baseAccessRoles,
|
|
789
|
+
toUU: this.isServiceManager() || this.isAccountant() || this.isAdjuster() || this.isHeadAdjuster() || this.isArchivist() || this.isSecurity() || baseAccessRoles,
|
|
856
790
|
toDSO:
|
|
857
791
|
this.isDsuio() ||
|
|
858
792
|
this.isActuary() ||
|
|
@@ -896,7 +830,9 @@ export class RoleController {
|
|
|
896
830
|
this.isHeadOfDso() ||
|
|
897
831
|
this.isUrsp() ||
|
|
898
832
|
this.isExecutor() ||
|
|
899
|
-
this.isArchivist()
|
|
833
|
+
this.isArchivist() ||
|
|
834
|
+
this.isUKP() ||
|
|
835
|
+
this.isDpDirector(),
|
|
900
836
|
};
|
|
901
837
|
};
|
|
902
838
|
}
|
package/locales/ru.json
CHANGED
package/package.json
CHANGED
package/store/data.store.ts
CHANGED
|
@@ -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/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 {
|