hl-core 0.0.9-beta.11 → 0.0.9-beta.13

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/index.ts CHANGED
@@ -1,621 +1,4 @@
1
- import { MemberCodes } from '../types/enum';
2
- import { useAxiosInstance } from '../composables/axios';
3
- import { Value, IDocument } from '../composables/classes';
4
- import { AxiosRequestConfig } from 'axios';
1
+ import { ApiClass } from './base.api';
2
+ import { EfoApiClass } from './efo.api';
5
3
 
6
- enum Methods {
7
- GET = 'GET',
8
- POST = 'POST',
9
- }
10
-
11
- export class ApiClass {
12
- private readonly baseURL: string = import.meta.env.VITE_BASE_URL as string;
13
- private readonly productUrl: string = import.meta.env.VITE_PRODUCT_URL as string;
14
-
15
- private async axiosCall<T>(config: AxiosRequestConfig): Promise<T> {
16
- const { data } = await useAxiosInstance(this.baseURL).request<T>(config);
17
- return data;
18
- }
19
-
20
- async loginUser(data: { login: string; password: string; numAttempt: number }) {
21
- return await this.axiosCall<{ refreshToken: string; accessToken: string }>({
22
- method: Methods.POST,
23
- url: '/identity/api/Account/login',
24
- data: data,
25
- });
26
- }
27
-
28
- async getNewAccessToken({ refreshToken, accessToken }: { refreshToken: string; accessToken: string }) {
29
- return await this.axiosCall<{ refreshToken: string; accessToken: string }>({
30
- method: Methods.POST,
31
- url: '/identity/api/Account/refresh',
32
- headers: {
33
- 'X-Refresh-Token': refreshToken,
34
- 'X-Access-Token': accessToken,
35
- },
36
- });
37
- }
38
-
39
- async getCountries() {
40
- return await this.axiosCall<Value[]>({
41
- method: Methods.GET,
42
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Country',
43
- });
44
- }
45
-
46
- async getCitizenshipCountries() {
47
- return await this.axiosCall<Value[]>({
48
- method: Methods.GET,
49
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500012',
50
- });
51
- }
52
-
53
- async getTaxCountries() {
54
- return await this.axiosCall<Value[]>({
55
- method: Methods.GET,
56
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500014',
57
- });
58
- }
59
-
60
- async getAdditionalTaxCountries() {
61
- return await this.axiosCall<Value[]>({
62
- method: Methods.GET,
63
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=507777',
64
- });
65
- }
66
-
67
- async getStates() {
68
- return await this.axiosCall<Value[]>({
69
- method: Methods.GET,
70
- url: '/Ekk/api/Contragentinsis/DictionaryItems/State',
71
- });
72
- }
73
-
74
- async getRegions() {
75
- return await this.axiosCall<Value[]>({
76
- method: Methods.GET,
77
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Region',
78
- });
79
- }
80
-
81
- async getCities() {
82
- return await this.axiosCall<Value[]>({
83
- method: Methods.GET,
84
- url: '/Ekk/api/Contragentinsis/DictionaryItems/CityVillage',
85
- });
86
- }
87
-
88
- async getLocalityTypes() {
89
- return await this.axiosCall<Value[]>({
90
- method: Methods.GET,
91
- url: '/Ekk/api/Contragentinsis/DictionaryItems/LocalityType',
92
- });
93
- }
94
-
95
- async getDocumentTypes() {
96
- return await this.axiosCall<Value[]>({
97
- method: Methods.GET,
98
- url: '/Ekk/api/Contragentinsis/DictionaryItems/DocumentTypePhys',
99
- });
100
- }
101
-
102
- async getDocumentIssuers() {
103
- return await this.axiosCall<Value[]>({
104
- method: Methods.GET,
105
- url: '/Ekk/api/Contragentinsis/DictionaryItems/DocIssuer',
106
- });
107
- }
108
-
109
- async getResidents() {
110
- return await this.axiosCall<Value[]>({
111
- method: Methods.GET,
112
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500011',
113
- });
114
- }
115
-
116
- async getSectorCode() {
117
- return await this.axiosCall<Value[]>({
118
- method: Methods.GET,
119
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=500003',
120
- });
121
- }
122
-
123
- async getFamilyStatuses() {
124
- return await this.axiosCall<Value[]>({
125
- method: Methods.GET,
126
- url: '/Arm/api/Dictionary/GetDictionaryItems/DicFamilyStatus',
127
- });
128
- }
129
-
130
- async getRelationTypes() {
131
- return await this.axiosCall<Value[]>({
132
- method: Methods.GET,
133
- url: '/Ekk/api/Contragentinsis/DictionaryItems/Relation',
134
- });
135
- }
136
-
137
- async getDicAnnuityTypeList() {
138
- return await this.axiosCall<Value[]>({
139
- method: Methods.GET,
140
- url: '/Arm/api/Dictionary/GetDictionaryItems/DicAnnuityType',
141
- });
142
- }
143
-
144
- async getCurrencies() {
145
- return await this.axiosCall<{ eur: number; usd: number }>({
146
- method: Methods.GET,
147
- url: '/Ekk/api/Currency/GetExchange',
148
- });
149
- }
150
-
151
- async getContragent(queryData: GetContragentRequest) {
152
- return await this.axiosCall<GetContragentResponse>({
153
- method: Methods.GET,
154
- url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}`,
155
- });
156
- }
157
-
158
- async getInsurancePay() {
159
- return await this.axiosCall<Value[]>({
160
- method: Methods.GET,
161
- url: '/Arm/api/Dictionary/GetDictionaryItems/DicBeneficiaryInsurancePay',
162
- });
163
- }
164
-
165
- async getQuestionList(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
166
- return await this.axiosCall<AnketaFirst>({
167
- method: Methods.GET,
168
- url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
169
- });
170
- }
171
-
172
- async getClientQuestionList(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
173
- return await this.axiosCall<AnketaFirst>({
174
- method: Methods.GET,
175
- url: `/${this.productUrl}/api/Application/AnketaClient/${surveyType}/${processInstanceId}/${insuredId}`,
176
- });
177
- }
178
-
179
- async getQuestionListSecond(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
180
- return await this.axiosCall<AnketaSecond[]>({
181
- method: Methods.GET,
182
- url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
183
- });
184
- }
185
-
186
- async getClientQuestionListSecond(surveyType: string, processInstanceId: string | number, insuredId: number | string) {
187
- return await this.axiosCall<AnketaSecond[]>({
188
- method: Methods.GET,
189
- url: `/${this.productUrl}/api/Application/AnketaClient/${surveyType}/${processInstanceId}/${insuredId}`,
190
- });
191
- }
192
-
193
- async definedAnswers(filter: string) {
194
- return await this.axiosCall({
195
- method: Methods.GET,
196
- url: `/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=${filter}`,
197
- });
198
- }
199
-
200
- async setSurvey(surveyData: AnketaFirst) {
201
- return await this.axiosCall<string>({
202
- method: Methods.POST,
203
- data: surveyData,
204
- url: `/${this.productUrl}/api/Application/SetAnketa`,
205
- });
206
- }
207
-
208
- async getQuestionRefs(id: string | number) {
209
- return await this.axiosCall<Value[]>({
210
- method: Methods.GET,
211
- url: `/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=${id}`,
212
- });
213
- }
214
-
215
- async getProcessIndexRate(processCode: string | number) {
216
- return await this.axiosCall({
217
- method: Methods.GET,
218
- url: `/Arm/api/Dictionary/ProcessIndexRate/${processCode}`,
219
- });
220
- }
221
-
222
- async getAdditionalInsuranceTermsAnswers(processCode: string | number, questionId: string) {
223
- return await this.axiosCall<AddCoverAnswer[]>({
224
- method: Methods.GET,
225
- url: `/Arm/api/Dictionary/ProcessCoverTypeSum/${processCode}/${questionId}`,
226
- });
227
- }
228
-
229
- async getProcessPaymentPeriod(processCode: string | number) {
230
- return await this.axiosCall({
231
- method: Methods.GET,
232
- url: `/Arm/api/Dictionary/ProcessPaymentPeriod/${processCode}`,
233
- });
234
- }
235
-
236
- async getProcessAnnuityPaymentPeriod(processCode: string | number) {
237
- return await this.axiosCall({
238
- method: Methods.GET,
239
- url: `/Arm/api/Dictionary/ProcessAnnuityPaymentPeriod/${processCode}`,
240
- });
241
- }
242
-
243
- async getContragentById(id: number) {
244
- return await this.axiosCall<GetContragentResponse>({
245
- method: Methods.GET,
246
- url: `/Ekk/api/Contragentinsis/Contragent?PersonId=${id}`,
247
- });
248
- }
249
-
250
- async saveContragent(data: {
251
- contragent: ContragentType;
252
- questionaries: ContragentQuestionaries[];
253
- contacts: ContragentContacts[];
254
- documents: ContragentDocuments[];
255
- addresses: ContragentAddress[];
256
- }) {
257
- return await this.axiosCall<number>({
258
- method: Methods.POST,
259
- url: `/Ekk/api/Contragentinsis/SaveContragent`,
260
- data: data,
261
- });
262
- }
263
-
264
- async getFile(id: string) {
265
- return await this.axiosCall({
266
- method: Methods.GET,
267
- url: `/File/api/Data/DownloadFile/${id}`,
268
- responseType: 'arraybuffer',
269
- headers: {
270
- 'Content-Type': 'application/pdf',
271
- },
272
- });
273
- }
274
-
275
- async getDicFileTypeList() {
276
- return await this.axiosCall<Value[]>({
277
- method: Methods.GET,
278
- url: '/Arm/api/Dictionary/GetDictionaryItems/DicFileType',
279
- });
280
- }
281
-
282
- async getContrAgentData(personId: string | number) {
283
- return await this.axiosCall<ContragentQuestionaries[]>({
284
- method: Methods.GET,
285
- url: `/Ekk/api/Contragentinsis/Questionaries?PersonId=${personId}`,
286
- });
287
- }
288
-
289
- async getContrAgentContacts(personId: string | number) {
290
- return await this.axiosCall<ContragentContacts[]>({
291
- method: Methods.GET,
292
- url: `/Ekk/api/Contragentinsis/Contacts?PersonId=${personId}`,
293
- });
294
- }
295
-
296
- async getContrAgentDocuments(personId: string | number) {
297
- return await this.axiosCall<ContragentDocuments[]>({
298
- method: Methods.GET,
299
- url: `/Ekk/api/Contragentinsis/Documents?PersonId=${personId}`,
300
- });
301
- }
302
-
303
- async getContrAgentAddress(personId: string | number) {
304
- return await this.axiosCall<ContragentAddress[]>({
305
- method: Methods.GET,
306
- url: `/Ekk/api/Contragentinsis/Address?PersonId=${personId}`,
307
- });
308
- }
309
-
310
- async getTaskList(data: any) {
311
- return await this.axiosCall<{ items: TaskListItem[]; totalItems: number }>({
312
- method: Methods.POST,
313
- url: `/Arm/api/Bpm/TaskList`,
314
- data: data,
315
- });
316
- }
317
-
318
- async getProcessHistory(id: string) {
319
- return await this.axiosCall<TaskHistory[]>({
320
- url: `/Arm/api/Bpm/GetProcessHistory?processInstanceId=${id}`,
321
- });
322
- }
323
-
324
- async registerNumber(data: RegNumberDataType) {
325
- return await this.axiosCall<string>({
326
- method: Methods.POST,
327
- url: `/${this.productUrl}/api/Application/FinCenterRegNumberSave`,
328
- data: data,
329
- });
330
- }
331
-
332
- async sendSms(data: SmsDataType) {
333
- return await this.axiosCall<void>({
334
- method: Methods.POST,
335
- url: '/Arm/api/Otp/SmsText',
336
- data: data,
337
- });
338
- }
339
-
340
- async getUserGroups() {
341
- return await this.axiosCall<Item[]>({
342
- method: Methods.GET,
343
- url: '/Arm/api/Bpm/TaskGroups',
344
- });
345
- }
346
-
347
- async getOtpStatus(data: OtpDataType) {
348
- return await this.axiosCall<boolean>({
349
- method: Methods.POST,
350
- url: '/Arm/api/Otp/OtpLifeStatus',
351
- data: data,
352
- });
353
- }
354
-
355
- async sendOtp(data: OtpDataType) {
356
- return await this.axiosCall<SendOtpResponse>({
357
- method: Methods.POST,
358
- url: '/Arm/api/Otp/Get',
359
- data: data,
360
- });
361
- }
362
-
363
- async checkOtp(data: { tokenId: string; phoneNumber: string; code: string }) {
364
- return await this.axiosCall<SendOtpResponse>({
365
- method: Methods.POST,
366
- url: '/Arm/api/Otp/Check',
367
- data: data,
368
- });
369
- }
370
-
371
- async getProcessList() {
372
- return await this.axiosCall<Item[]>({
373
- method: Methods.GET,
374
- url: '/Arm/api/Bpm/ProcessList',
375
- });
376
- }
377
-
378
- async startApplication(data: StartApplicationType) {
379
- return await this.axiosCall<{
380
- processInstanceId: string;
381
- }>({
382
- method: Methods.POST,
383
- url: `/${this.productUrl}/api/Application/StartApplication`,
384
- data: data,
385
- });
386
- }
387
-
388
- async getApplicationData(id: string) {
389
- return await this.axiosCall<any>({
390
- url: `/${this.productUrl}/api/Application/applicationData?Id=${id} `,
391
- });
392
- }
393
-
394
- async getCalculation(id: string) {
395
- return await this.axiosCall<number>({
396
- method: Methods.POST,
397
- url: `/${this.productUrl}/api/Application/Calculator?processInstanceId=${id}`,
398
- });
399
- }
400
-
401
- async setApplication(data: { policyAppDto: PolicyAppDto; addCoversDto: AddCover[] }) {
402
- return await this.axiosCall<void>({
403
- method: Methods.POST,
404
- url: `/${this.productUrl}/api/Application/SetApplicationData`,
405
- data,
406
- responseType: 'blob',
407
- });
408
- }
409
-
410
- async deleteFile(data: any) {
411
- return await this.axiosCall({
412
- method: Methods.POST,
413
- url: '/File/api/Data/DeleteFiles',
414
- data: data,
415
- });
416
- }
417
-
418
- async uploadFiles(data: any) {
419
- return await this.axiosCall({
420
- method: Methods.POST,
421
- url: '/File/api/Data/UploadFiles',
422
- headers: {
423
- 'Content-Type': 'multipart/form-data',
424
- },
425
- data: data,
426
- });
427
- }
428
-
429
- async sendTask(data: SendTask) {
430
- return await this.axiosCall<void>({
431
- method: Methods.POST,
432
- url: `/${this.productUrl}/api/Application/SendTask`,
433
- data: data,
434
- });
435
- }
436
-
437
- async setMember(whichMember: keyof typeof MemberCodes, data: any) {
438
- return await this.axiosCall({
439
- method: Methods.POST,
440
- url: `/Arm/api/BpmMembers/Set${whichMember}`,
441
- data: data,
442
- });
443
- }
444
-
445
- async deleteMember(whichMember: keyof typeof MemberCodes, id: number | string) {
446
- return await this.axiosCall({
447
- method: Methods.POST,
448
- url: `/Arm/api/BpmMembers/Delete${whichMember}/${id}`,
449
- });
450
- }
451
-
452
- async getInvoiceData(processInstanceId: string | number) {
453
- return await this.axiosCall<EpayResponse>({
454
- method: Methods.GET,
455
- url: `/Arm/api/Invoice/InvoiceData?processInstanceId=${processInstanceId}`,
456
- });
457
- }
458
-
459
- async getProcessHistoryLog(historyId: string) {
460
- return await this.axiosCall({
461
- method: Methods.GET,
462
- url: `/Arm/api/Bpm/ProcessHistoryLog/${historyId}`,
463
- });
464
- }
465
-
466
- async createInvoice(processInstanceId: string | number, amount: number | string) {
467
- return await this.axiosCall<string>({
468
- method: Methods.POST,
469
- url: `/Arm/api/Invoice/CreateInvoice/${processInstanceId}/${amount}`,
470
- });
471
- }
472
-
473
- async sendToEpay(processInstanceId: string | number) {
474
- return await this.axiosCall<EpayShortResponse>({
475
- method: Methods.POST,
476
- url: `/Arm/api/Invoice/SendToEpay/${processInstanceId}`,
477
- });
478
- }
479
-
480
- async signDocument(data: SignDataType[]) {
481
- return await this.axiosCall<SignUrlType[]>({
482
- method: Methods.POST,
483
- url: '/File/api/Document/SignBts',
484
- data: data,
485
- });
486
- }
487
-
488
- async getSignedDocList(data: { processInstanceId: string | number }) {
489
- return await this.axiosCall<IDocument[]>({
490
- method: Methods.POST,
491
- url: '/File/api/Data/List',
492
- data: data,
493
- });
494
- }
495
-
496
- async calculateWithoutApplication(data: RecalculationDataType, product: string | undefined | null = this.productUrl) {
497
- return await this.axiosCall<RecalculationResponseType>({
498
- method: Methods.POST,
499
- url: `/${product}/api/Application/Calculate`,
500
- data: data,
501
- });
502
- }
503
-
504
- async getDefaultCalculationData(product: string | undefined | null = this.productUrl) {
505
- return await this.axiosCall<RecalculationDataType>({
506
- method: Methods.GET,
507
- url: `/${product}/api/Application/DefaultCalculatorValues`,
508
- });
509
- }
510
-
511
- async reCalculate(data: any) {
512
- return await this.axiosCall({
513
- method: Methods.POST,
514
- url: `/${this.productUrl}/api/Application/Recalculate`,
515
- data: data,
516
- });
517
- }
518
-
519
- async getValidateClientESBD(data: ESBDValidationType) {
520
- return await this.axiosCall<ESBDResponseType>({
521
- method: Methods.POST,
522
- url: '/externalservices/api/ExternalServices/GetValidateClientEsbd',
523
- data: data,
524
- });
525
- }
526
-
527
- async isClaimTask(taskId: string) {
528
- return await this.axiosCall<boolean>({
529
- method: Methods.POST,
530
- url: '/Arm/api/Bpm/IsClaimTask',
531
- params: { TaskId: taskId },
532
- });
533
- }
534
-
535
- async claimTask(taskId: string) {
536
- return await this.axiosCall({
537
- method: Methods.POST,
538
- url: '/Arm/api/Bpm/ClaimTaskUser',
539
- params: { TaskId: taskId },
540
- });
541
- }
542
-
543
- async getContragentFromGBDFL(data: { iin: string; phoneNumber: string }) {
544
- return await this.axiosCall<GBDFLResponse>({
545
- method: Methods.POST,
546
- url: '/externalservices/api/ExternalServices/GetGbdflToken',
547
- data: data,
548
- });
549
- }
550
-
551
- async getFamilyInfo(data: { iin: string; phoneNumber: string }) {
552
- return await this.axiosCall<FamilyInfoGKB>({
553
- method: Methods.POST,
554
- url: '/externalservices/api/ExternalServices/GetFamilyInfoToken',
555
- data: data,
556
- });
557
- }
558
-
559
- async getProcessTariff(code: number | string = 5) {
560
- return await this.axiosCall({ url: `/Arm/api/Dictionary/ProcessTariff/${code}` });
561
- }
562
-
563
- async setConfirmation(data: any) {
564
- return await this.axiosCall({
565
- method: Methods.POST,
566
- url: '/Arm/api/UnderwritingCouncil/SetConfirmation',
567
- data: data,
568
- });
569
- }
570
-
571
- async getUnderwritingCouncilData(id: string | number) {
572
- return await this.axiosCall({
573
- method: Methods.GET,
574
- url: `/Arm/api/UnderwritingCouncil/ApplicationData?Id=${id}`,
575
- });
576
- }
577
-
578
- async sendUnderwritingCouncilTask(data: Partial<SendTask>) {
579
- return await this.axiosCall<void>({
580
- method: Methods.POST,
581
- url: '/Arm/api/UnderwritingCouncil/SendTask',
582
- data: data,
583
- });
584
- }
585
-
586
- async getDictionaryItems(dictName: string) {
587
- return await this.axiosCall<Value[]>({
588
- method: Methods.GET,
589
- url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}`,
590
- });
591
- }
592
-
593
- async filterManagerByRegion(dictName: string, filterName: string) {
594
- return await this.axiosCall<Value[]>({
595
- method: Methods.GET,
596
- url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}?filter=${filterName}`,
597
- });
598
- }
599
-
600
- async setINSISWorkData(data: InsisWorkDataApp) {
601
- return await this.axiosCall({
602
- method: Methods.POST,
603
- url: `/Arm/api/Bpm/SetInsisWorkData`,
604
- data: data,
605
- });
606
- }
607
-
608
- async searchAgentByName(name: string) {
609
- return await this.axiosCall<AgentData[]>({
610
- method: Methods.GET,
611
- url: `/Ekk/api/ContragentInsis/AgentByName?fullName=${name}`,
612
- });
613
- }
614
-
615
- async isCourseChanged(processInstanceId: string) {
616
- return await this.axiosCall<boolean>({
617
- method: Methods.GET,
618
- url: `/${this.productUrl}/api/Application/IsCourseChanged?processInstanceId=${processInstanceId}`,
619
- });
620
- }
621
- }
4
+ export { ApiClass, EfoApiClass };
@@ -6,7 +6,7 @@
6
6
  <div
7
7
  v-if="isMultiple && more && !isShort && isActionsAvailable"
8
8
  :class="[$styles.blueBg, $styles.whiteText, $styles.textSimple, disabled ? $styles.disabled : 'cursor-pointer']"
9
- class="lg:flex transition-all rounded-lg h-[36px] flex items-center font-medium justify-center opacity-50 hover:opacity-90 w-[120px]"
9
+ class="hidden lg:flex transition-all rounded-lg h-[36px] items-center font-medium justify-center opacity-50 hover:opacity-90 w-[120px]"
10
10
  @click="!disabled && memberStore.addMember(whichForm)"
11
11
  >
12
12
  {{ $dataStore.t('buttons.add') }}
@@ -33,7 +33,7 @@
33
33
  :class="[isShort ? 'grid-cols-2 md:gap-5 md:grid-cols-2 lg:grid-cols-2' : 'grid-cols-4 md:gap-5 md:grid-cols-4 lg:grid-cols-7']"
34
34
  >
35
35
  <span :class="[getMemberInfo(each).fullName === null && $styles.emptyBlockCol]">{{ getMemberInfo(each).fullName }}</span>
36
- <span :class="[getMemberInfo(each).iin === null && $styles.emptyBlockCol]">{{ getMemberInfo(each).iin }}</span>
36
+ <span :class="[getMemberInfo(each).iin === null && $styles.emptyBlockCol]">{{ getMemberIIN(each) }}</span>
37
37
  <span v-if="!isShort" :class="[getMemberInfo(each).gender === null && $styles.emptyBlockCol]" class="hidden lg:block">{{ getMemberInfo(each).gender }} </span>
38
38
  <span v-if="!isShort" :class="[getMemberInfo(each).birthDate === null && $styles.emptyBlockCol]"> {{ getMemberInfo(each).birthDate }} </span>
39
39
  <span v-if="!isShort" :class="[getMemberInfo(each).birthPlace === null && $styles.emptyBlockCol]" class="hidden lg:block"> {{ getMemberInfo(each).birthPlace }} </span>
@@ -75,7 +75,7 @@
75
75
  <div
76
76
  v-if="isMultiple && more && !isShort && isActionsAvailable"
77
77
  :class="[$styles.blueBg, $styles.whiteText, $styles.textSimple, disabled ? $styles.disabled : 'cursor-pointer']"
78
- class="lg:hidden transition-all rounded-b-lg h-[36px] flex items-center font-medium justify-center opacity-50 hover:opacity-90"
78
+ class="flex lg:hidden transition-all rounded-b-lg h-[36px] items-center font-medium justify-center opacity-50 hover:opacity-90"
79
79
  @click="!disabled && memberStore.addMember(whichForm)"
80
80
  >
81
81
  {{ $dataStore.t('buttons.add') }}
@@ -116,6 +116,7 @@ export default defineComponent({
116
116
  },
117
117
  emits: ['onMore', 'addMember'],
118
118
  setup(props) {
119
+ const dataStore = useDataStore();
119
120
  const formStore = useFormStore();
120
121
  const memberStore = useMemberStore();
121
122
  const isMultiple = computed(() => [StoreMembers.insuredForm, StoreMembers.beneficiaryForm, StoreMembers.beneficialOwnerForm].includes(props.whichForm as StoreMembers));
@@ -128,6 +129,13 @@ export default defineComponent({
128
129
 
129
130
  const isShort = computed(() => props.type === 'short');
130
131
  const isActionsAvailable = computed(() => memberStore.isStatementEditible(props.whichForm));
132
+ const getMemberIIN = (each: Member) => {
133
+ const iin = getMemberInfo(each).iin;
134
+ if (dataStore.isFinCenter() && iin) {
135
+ return iin.replaceAll('-', '');
136
+ }
137
+ return iin;
138
+ };
131
139
 
132
140
  const getMemberInfo = (memberData: Member) => {
133
141
  return {
@@ -153,6 +161,7 @@ export default defineComponent({
153
161
  isActionsAvailable,
154
162
 
155
163
  // Functions
164
+ getMemberIIN,
156
165
  getMemberInfo,
157
166
  };
158
167
  },