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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { MemberCodes, Methods } from '../types/enum';
2
2
  import { useAxiosInstance } from '../composables/axios';
3
- import { Value, IDocument } from '../composables/classes';
3
+ import { Value, IDocument } from '../composables';
4
4
  import type * as Types from '../types';
5
5
 
6
6
  export class ApiClass {
@@ -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,
@@ -85,7 +85,7 @@
85
85
 
86
86
  <script lang="ts">
87
87
  import { StoreMembers } from '../../types/enum';
88
- import { Member } from '../../composables/classes';
88
+ import { Member } from '../../composables';
89
89
 
90
90
  export default defineComponent({
91
91
  props: {
@@ -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>
@@ -119,7 +119,7 @@
119
119
  </template>
120
120
 
121
121
  <script lang="ts">
122
- import { Value } from '../../composables/classes';
122
+ import { Value } from '../../composables';
123
123
  import { watchDebounced } from '@vueuse/core';
124
124
  import type { AgentData } from '../../types';
125
125
 
@@ -38,7 +38,7 @@
38
38
  </template>
39
39
 
40
40
  <script lang="ts">
41
- import { Value } from '../../composables/classes';
41
+ import { Value } from '../../composables';
42
42
  import type { InputTypes, InputVariants } from '../../types';
43
43
 
44
44
  export default defineComponent({
@@ -20,7 +20,7 @@
20
20
  </template>
21
21
 
22
22
  <script lang="ts">
23
- import { MenuItem } from '../../composables/classes';
23
+ import { MenuItem } from '../../composables';
24
24
 
25
25
  export default defineComponent({
26
26
  props: {
@@ -21,7 +21,7 @@
21
21
  </template>
22
22
 
23
23
  <script lang="ts">
24
- import { MenuItem } from '../../composables/classes';
24
+ import { MenuItem } from '../../composables';
25
25
 
26
26
  export default defineComponent({
27
27
  emits: ['clicked'],
@@ -9,7 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script lang="ts">
12
- import { MenuItem } from '../../composables/classes';
12
+ import { MenuItem } from '../../composables';
13
13
 
14
14
  export default defineComponent({
15
15
  props: {
@@ -61,7 +61,7 @@
61
61
  </template>
62
62
 
63
63
  <script lang="ts">
64
- import { MenuItem } from '../../composables/classes';
64
+ import { MenuItem } from '../../composables';
65
65
  import { type RouteLocationNormalized } from 'vue-router';
66
66
 
67
67
  export default defineComponent({
@@ -19,7 +19,7 @@
19
19
  </template>
20
20
 
21
21
  <script lang="ts">
22
- import { MenuItem } from '../../composables/classes';
22
+ import { MenuItem } from '../../composables';
23
23
 
24
24
  export default defineComponent({
25
25
  props: {
@@ -236,7 +236,7 @@
236
236
  </template>
237
237
 
238
238
  <script lang="ts">
239
- import { Value } from '../../composables/classes';
239
+ import { Value } from '../../composables';
240
240
  import type { AnketaBody, AnketaSecond, AnswerName } from '../../types';
241
241
 
242
242
  export default defineComponent({
@@ -288,7 +288,7 @@
288
288
 
289
289
  <script lang="ts">
290
290
  import { StoreMembers } from '../../types/enum';
291
- import { Member, Value } from '../../composables/classes';
291
+ import { Member, Value } from '../../composables';
292
292
  import type { ESBDValidationType } from '../../types';
293
293
 
294
294
  export default defineComponent({
@@ -263,8 +263,8 @@
263
263
  </template>
264
264
 
265
265
  <script lang="ts">
266
- import { DocumentItem, Value } from '../../composables/classes';
267
- import type { IDocument, Member } from '../../composables/classes';
266
+ import { DocumentItem, Value } from '../../composables';
267
+ import type { IDocument, Member } from '../../composables';
268
268
  import { uuid } from 'vue-uuid';
269
269
  import type { Base, FileActions } from '../../types';
270
270
 
@@ -813,7 +813,7 @@
813
813
  </template>
814
814
 
815
815
  <script lang="ts">
816
- import { Value, DocumentItem, Member } from '../../composables/classes';
816
+ import { Value, DocumentItem, Member } from '../../composables';
817
817
  import { uuid } from 'vue-uuid';
818
818
  import { StoreMembers, CoreEnums } from '../../types/enum';
819
819
  import type { Api, ContragentType, Dicts, ESBDValidationType, FileActions, MultipleMember } from '../../types';
@@ -55,7 +55,10 @@
55
55
  <base-form-input v-model="insured.gender.nameRu" class="mb-4" :label="$dataStore.t('form.gender')" :readonly="true" />
56
56
  </div>
57
57
  </base-form-section>
58
- <base-form-section v-if="isUnderwriterRole && whichProduct !== 'pensionannuitynew' && whichProduct !== 'balam' && whichProduct !== 'tumar'" :title="$dataStore.t('recalculationInfo')">
58
+ <base-form-section
59
+ v-if="isUnderwriterRole && whichProduct !== 'pensionannuitynew' && whichProduct !== 'balam' && whichProduct !== 'tumar'"
60
+ :title="$dataStore.t('recalculationInfo')"
61
+ >
59
62
  <base-form-input
60
63
  v-model="productConditionsForm.lifeMultiply"
61
64
  :maska="$maska.numbers"
@@ -865,7 +868,7 @@
865
868
  </template>
866
869
 
867
870
  <script lang="ts">
868
- import { Member, Value, CountryValue, CalculatorForm, TransferContract } from '../../composables/classes';
871
+ import { Member, Value, CountryValue, CalculatorForm, TransferContract } from '../../composables';
869
872
  import type { Projects, AddCover, AddCoverAnswer } from '../../types';
870
873
 
871
874
  type PensionCalculation = {
@@ -250,7 +250,7 @@
250
250
  </template>
251
251
 
252
252
  <script lang="ts">
253
- import { DocumentItem, Value } from '../../composables/classes';
253
+ import { DocumentItem, Value } from '../../composables';
254
254
  import { HubConnectionBuilder } from '@microsoft/signalr';
255
255
  import { uuid } from 'vue-uuid';
256
256
  import type * as Types from '../../types';