hl-core 0.0.10-beta.6 → 0.0.10-beta.60
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/README.md +0 -2
- package/api/base.api.ts +357 -137
- package/api/interceptors.ts +3 -5
- package/components/Dialog/Dialog.vue +5 -1
- package/components/Dialog/FamilyDialog.vue +15 -4
- package/components/Form/DigitalDocument.vue +52 -0
- package/components/Form/FormSource.vue +30 -0
- package/components/Form/ManagerAttachment.vue +60 -11
- package/components/Form/ProductConditionsBlock.vue +12 -6
- package/components/Input/Datepicker.vue +5 -0
- package/components/Input/FileInput.vue +1 -1
- package/components/Input/FormInput.vue +7 -0
- package/components/Input/OtpInput.vue +25 -0
- package/components/Input/RoundedInput.vue +2 -0
- package/components/Input/RoundedSelect.vue +2 -0
- package/components/Input/TextAreaField.vue +71 -0
- package/components/Menu/MenuNav.vue +2 -1
- package/components/Pages/Anketa.vue +207 -176
- package/components/Pages/ContragentForm.vue +1 -1
- package/components/Pages/Documents.vue +486 -64
- package/components/Pages/MemberForm.vue +424 -182
- package/components/Pages/ProductConditions.vue +1180 -257
- package/components/Panel/PanelHandler.vue +319 -125
- package/components/Utilities/Chip.vue +1 -1
- package/components/Utilities/JsonViewer.vue +1 -2
- package/composables/classes.ts +125 -21
- package/composables/constants.ts +166 -1
- package/composables/index.ts +343 -9
- package/composables/styles.ts +8 -24
- package/configs/i18n.ts +2 -0
- package/configs/pwa.ts +1 -7
- package/layouts/clear.vue +1 -1
- package/layouts/default.vue +1 -1
- package/layouts/full.vue +1 -1
- package/locales/kz.json +1236 -0
- package/locales/ru.json +108 -20
- package/nuxt.config.ts +8 -6
- package/package.json +12 -12
- package/plugins/head.ts +7 -1
- package/plugins/helperFunctionsPlugins.ts +1 -0
- package/store/data.store.ts +948 -527
- package/store/member.store.ts +17 -6
- package/store/rules.ts +54 -3
- package/types/enum.ts +45 -2
- package/types/index.ts +115 -5
package/README.md
CHANGED
package/api/base.api.ts
CHANGED
|
@@ -182,7 +182,7 @@ export class ApiClass {
|
|
|
182
182
|
async getContragent(queryData: Types.GetContragentRequest) {
|
|
183
183
|
return await this.axiosCall<Types.GetContragentResponse>({
|
|
184
184
|
method: Methods.GET,
|
|
185
|
-
url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}`,
|
|
185
|
+
url: `/Ekk/api/Contragentinsis/Contragent?Iin=${queryData.iin}&FirstName=${queryData.firstName}&LastName=${queryData.lastName}&MiddleName=${queryData.middleName}&BirthDate=${queryData.birthDate ?? ''}`,
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -221,6 +221,13 @@ export class ApiClass {
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
async getQuestionListSecondById(surveyType: string, processInstanceId: string | number, insuredId: number | string, id: string) {
|
|
225
|
+
return await this.axiosCall<Types.AnketaSecond[]>({
|
|
226
|
+
method: Methods.GET,
|
|
227
|
+
url: `/${this.productUrl}/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}/${id}`,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
224
231
|
async definedAnswers(filter: string) {
|
|
225
232
|
return await this.axiosCall({
|
|
226
233
|
method: Methods.GET,
|
|
@@ -278,6 +285,13 @@ export class ApiClass {
|
|
|
278
285
|
});
|
|
279
286
|
}
|
|
280
287
|
|
|
288
|
+
async getProcessDividendPeriods(processCode: string | number) {
|
|
289
|
+
return await this.axiosCall<Value[]>({
|
|
290
|
+
method: Methods.GET,
|
|
291
|
+
url: `/Arm/api/Dictionary/ProcessDividendPeriod/${processCode}`,
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
|
|
281
295
|
async getContragentById(id: number) {
|
|
282
296
|
return await this.axiosCall<Types.GetContragentResponse>({
|
|
283
297
|
method: Methods.GET,
|
|
@@ -299,21 +313,23 @@ export class ApiClass {
|
|
|
299
313
|
});
|
|
300
314
|
}
|
|
301
315
|
|
|
302
|
-
async
|
|
303
|
-
return await this.axiosCall({
|
|
316
|
+
async getDicFileTypeList() {
|
|
317
|
+
return await this.axiosCall<Value[]>({
|
|
304
318
|
method: Methods.GET,
|
|
305
|
-
url:
|
|
306
|
-
responseType: 'arraybuffer',
|
|
307
|
-
headers: {
|
|
308
|
-
'Content-Type': 'application/pdf',
|
|
309
|
-
},
|
|
319
|
+
url: '/Arm/api/Dictionary/GetDictionaryItems/DicFileType',
|
|
310
320
|
});
|
|
311
321
|
}
|
|
312
322
|
|
|
313
|
-
async
|
|
323
|
+
async getProgramType() {
|
|
314
324
|
return await this.axiosCall<Value[]>({
|
|
315
325
|
method: Methods.GET,
|
|
316
|
-
url: '/Arm/api/Dictionary/GetDictionaryItems/
|
|
326
|
+
url: '/Arm/api/Dictionary/GetDictionaryItems/DicProgramType',
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
async getSource() {
|
|
330
|
+
return await this.axiosCall<Value[]>({
|
|
331
|
+
method: Methods.GET,
|
|
332
|
+
url: '/Arm/api/Dictionary/GetDictionaryItems/DicSource',
|
|
317
333
|
});
|
|
318
334
|
}
|
|
319
335
|
|
|
@@ -414,12 +430,14 @@ export class ApiClass {
|
|
|
414
430
|
});
|
|
415
431
|
}
|
|
416
432
|
|
|
417
|
-
async startApplication(data: any) {
|
|
433
|
+
async startApplication(data: any, processCodeEnum?: number) {
|
|
434
|
+
const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
|
|
418
435
|
return await this.axiosCall<{
|
|
419
436
|
processInstanceId: string;
|
|
420
437
|
}>({
|
|
421
438
|
method: Methods.POST,
|
|
422
439
|
url: `/${this.productUrl}/api/Application/StartApplication`,
|
|
440
|
+
params: params,
|
|
423
441
|
data: data,
|
|
424
442
|
});
|
|
425
443
|
}
|
|
@@ -453,25 +471,6 @@ export class ApiClass {
|
|
|
453
471
|
});
|
|
454
472
|
}
|
|
455
473
|
|
|
456
|
-
async deleteFile(data: any) {
|
|
457
|
-
return await this.axiosCall<void>({
|
|
458
|
-
method: Methods.POST,
|
|
459
|
-
url: '/File/api/Data/DeleteFiles',
|
|
460
|
-
data: data,
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
async uploadFiles(data: any) {
|
|
465
|
-
return await this.axiosCall({
|
|
466
|
-
method: Methods.POST,
|
|
467
|
-
url: '/File/api/Data/UploadFiles',
|
|
468
|
-
headers: {
|
|
469
|
-
'Content-Type': 'multipart/form-data',
|
|
470
|
-
},
|
|
471
|
-
data: data,
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
|
|
475
474
|
async sendTask(data: Types.SendTask) {
|
|
476
475
|
return await this.axiosCall<void>({
|
|
477
476
|
method: Methods.POST,
|
|
@@ -486,7 +485,25 @@ export class ApiClass {
|
|
|
486
485
|
url: `/${this.productUrl}/api/Application/CheckBeneficiariesInActualPolicy?iin=${iin}`,
|
|
487
486
|
});
|
|
488
487
|
}
|
|
489
|
-
|
|
488
|
+
async checkBeneficiariesActualPolicy(id: string) {
|
|
489
|
+
return await this.axiosCall<boolean>({
|
|
490
|
+
method: Methods.GET,
|
|
491
|
+
url: `/${this.productUrl}/api/Application/checkBeneficiariesActualPolicy?processInstanceId=${id}`,
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
async isRecalculate(id: string | number) {
|
|
495
|
+
return await this.axiosCall<boolean>({
|
|
496
|
+
method: Methods.GET,
|
|
497
|
+
url: `/${this.productUrl}/api/Application/IsRecalculate?processInstanceId=${id}`,
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
async checkCurrencyDate(id: string | number) {
|
|
501
|
+
return await this.axiosCall<boolean>({
|
|
502
|
+
method: Methods.GET,
|
|
503
|
+
url: '/Arm/api/Bpm/CheckCurrencyDate',
|
|
504
|
+
params: { processInstanceId: id },
|
|
505
|
+
});
|
|
506
|
+
}
|
|
490
507
|
async setMember(whichMember: keyof typeof MemberCodes, data: any) {
|
|
491
508
|
return await this.axiosCall({
|
|
492
509
|
method: Methods.POST,
|
|
@@ -527,54 +544,26 @@ export class ApiClass {
|
|
|
527
544
|
return await this.axiosCall<Types.EpayShortResponse>({
|
|
528
545
|
method: Methods.POST,
|
|
529
546
|
url: `/Arm/api/Invoice/SendToEpay/${processInstanceId}`,
|
|
547
|
+
data: {},
|
|
530
548
|
});
|
|
531
549
|
}
|
|
532
550
|
|
|
533
|
-
async
|
|
534
|
-
|
|
535
|
-
method: Methods.POST,
|
|
536
|
-
url: '/File/api/Document/SignBts',
|
|
537
|
-
data: data,
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
async signQR(data: Types.SignDataType[]) {
|
|
542
|
-
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
543
|
-
method: Methods.POST,
|
|
544
|
-
url: '/File/api/Sign/SignQr',
|
|
545
|
-
data: data,
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
async generateDocument(data: Types.SignDataType) {
|
|
550
|
-
return await this.axiosCall<void>({
|
|
551
|
-
method: Methods.POST,
|
|
552
|
-
url: '/File/api/Document/Generate',
|
|
553
|
-
responseType: 'arraybuffer',
|
|
554
|
-
data: data,
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
async getSignedDocList(data: { processInstanceId: string | number }) {
|
|
559
|
-
return await this.axiosCall<IDocument[]>({
|
|
560
|
-
method: Methods.POST,
|
|
561
|
-
url: '/File/api/Data/List',
|
|
562
|
-
data: data,
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
async calculateWithoutApplication(data: Types.RecalculationDataType, product: string | undefined | null = this.productUrl) {
|
|
551
|
+
async calculateWithoutApplication(data: Types.RecalculationDataType, product: string | undefined | null = this.productUrl, processCodeEnum?: number) {
|
|
552
|
+
const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
|
|
567
553
|
return await this.axiosCall<Types.RecalculationResponseType>({
|
|
568
554
|
method: Methods.POST,
|
|
569
555
|
url: `/${product}/api/Application/Calculate`,
|
|
556
|
+
params: params,
|
|
570
557
|
data: data,
|
|
571
558
|
});
|
|
572
559
|
}
|
|
573
560
|
|
|
574
|
-
async getDefaultCalculationData(product: string | undefined | null = this.productUrl) {
|
|
561
|
+
async getDefaultCalculationData(product: string | undefined | null = this.productUrl, processCodeEnum?: number) {
|
|
562
|
+
const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
|
|
575
563
|
return await this.axiosCall<Types.RecalculationDataType>({
|
|
576
564
|
method: Methods.GET,
|
|
577
565
|
url: `/${product}/api/Application/DefaultCalculatorValues`,
|
|
566
|
+
params: params,
|
|
578
567
|
});
|
|
579
568
|
}
|
|
580
569
|
|
|
@@ -650,10 +639,6 @@ export class ApiClass {
|
|
|
650
639
|
});
|
|
651
640
|
}
|
|
652
641
|
|
|
653
|
-
async getProcessTariff(code: number | string = 5) {
|
|
654
|
-
return await this.axiosCall({ method: Methods.GET, url: `/Arm/api/Dictionary/ProcessTariff/${code}` });
|
|
655
|
-
}
|
|
656
|
-
|
|
657
642
|
async setConfirmation(data: any) {
|
|
658
643
|
return await this.axiosCall({
|
|
659
644
|
method: Methods.POST,
|
|
@@ -691,6 +676,13 @@ export class ApiClass {
|
|
|
691
676
|
});
|
|
692
677
|
}
|
|
693
678
|
|
|
679
|
+
async filterExecutorByRegion(dictName: string, filterName: string) {
|
|
680
|
+
return await this.axiosCall<Value[]>({
|
|
681
|
+
method: Methods.GET,
|
|
682
|
+
url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}?filter=${filterName}`,
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
|
|
694
686
|
async setINSISWorkData(data: Types.InsisWorkDataApp) {
|
|
695
687
|
return await this.axiosCall({
|
|
696
688
|
method: Methods.POST,
|
|
@@ -706,6 +698,13 @@ export class ApiClass {
|
|
|
706
698
|
});
|
|
707
699
|
}
|
|
708
700
|
|
|
701
|
+
async getBankByAccountNumber(accountNumber: string) {
|
|
702
|
+
return await this.axiosCall<Value>({
|
|
703
|
+
method: Methods.GET,
|
|
704
|
+
url: `/Ekk/api/ContragentInsis/GetBankByAccountNumber?accountNumber=${accountNumber}`,
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
|
|
709
708
|
async searchAgentByName(name: string, branchCode?: string) {
|
|
710
709
|
return await this.axiosCall<Types.AgentData[]>({
|
|
711
710
|
method: Methods.GET,
|
|
@@ -713,6 +712,17 @@ export class ApiClass {
|
|
|
713
712
|
});
|
|
714
713
|
}
|
|
715
714
|
|
|
715
|
+
async getGlobalIdByNumber(insuranceTypeEnum: number, policyNo: string) {
|
|
716
|
+
return await this.axiosCall<number>({
|
|
717
|
+
method: Methods.GET,
|
|
718
|
+
url: `/Ekk/api/PolicyInsis/GetGlobalIDbyNumber`,
|
|
719
|
+
params: {
|
|
720
|
+
insuranceTypeEnum,
|
|
721
|
+
policyNo,
|
|
722
|
+
},
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
|
|
716
726
|
async isCourseChanged(processInstanceId: string) {
|
|
717
727
|
return await this.axiosCall<boolean>({
|
|
718
728
|
method: Methods.GET,
|
|
@@ -815,10 +825,10 @@ export class ApiClass {
|
|
|
815
825
|
});
|
|
816
826
|
}
|
|
817
827
|
|
|
818
|
-
async saveInsuredList(processInstanceId: string | number, data: any) {
|
|
828
|
+
async saveInsuredList(processInstanceId: string | number, newInsureds: boolean, data: any) {
|
|
819
829
|
return await this.axiosCall({
|
|
820
830
|
method: Methods.POST,
|
|
821
|
-
url: `/${this.productUrl}/api/Application/saveInsuredList/?processInstanceId=${processInstanceId}`,
|
|
831
|
+
url: `/${this.productUrl}/api/Application/saveInsuredList/?processInstanceId=${processInstanceId}&newInsureds=${newInsureds}`,
|
|
822
832
|
data: data,
|
|
823
833
|
});
|
|
824
834
|
}
|
|
@@ -831,6 +841,13 @@ export class ApiClass {
|
|
|
831
841
|
});
|
|
832
842
|
}
|
|
833
843
|
|
|
844
|
+
async getInsuredsData(processInstanceId: string | number) {
|
|
845
|
+
return await this.axiosCall<Types.ClientV2[]>({
|
|
846
|
+
method: Methods.GET,
|
|
847
|
+
url: `/${this.productUrl}/api/Application/GetInsuredsData/?processInstanceId=${processInstanceId}`,
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
|
|
834
851
|
async getProcessGfot(processCode: string | number) {
|
|
835
852
|
return await this.axiosCall<Value[]>({
|
|
836
853
|
method: Methods.GET,
|
|
@@ -966,30 +983,6 @@ export class ApiClass {
|
|
|
966
983
|
});
|
|
967
984
|
}
|
|
968
985
|
|
|
969
|
-
async uploadXml(data: any) {
|
|
970
|
-
return await this.axiosCall<void>({
|
|
971
|
-
url: `/File/api/Document/UploadXml`,
|
|
972
|
-
method: Methods.POST,
|
|
973
|
-
data: data,
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
async signXml(data: any) {
|
|
978
|
-
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
979
|
-
url: `/File/api/Sign/SignXml`,
|
|
980
|
-
method: Methods.POST,
|
|
981
|
-
data: data,
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
async signBts(data: any) {
|
|
986
|
-
return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
|
|
987
|
-
url: `/File/api/Sign/SignBts`,
|
|
988
|
-
method: Methods.POST,
|
|
989
|
-
data: data,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
|
|
993
986
|
async generateShortLink(data: Types.Api.GenerateShortLink.Request) {
|
|
994
987
|
return await this.axiosCall<Types.Api.GenerateShortLink.Response>({
|
|
995
988
|
url: '/notification/shorteners',
|
|
@@ -999,12 +992,13 @@ export class ApiClass {
|
|
|
999
992
|
});
|
|
1000
993
|
}
|
|
1001
994
|
|
|
1002
|
-
async checkOsns(bin: string) {
|
|
995
|
+
async checkOsns(bin: string, date: string) {
|
|
1003
996
|
return await this.axiosCall<boolean>({
|
|
1004
997
|
method: Methods.GET,
|
|
1005
998
|
url: `/${this.productUrl}/api/Application/CheckOSNS`,
|
|
1006
999
|
params: {
|
|
1007
1000
|
bin,
|
|
1001
|
+
date,
|
|
1008
1002
|
},
|
|
1009
1003
|
});
|
|
1010
1004
|
}
|
|
@@ -1037,28 +1031,6 @@ export class ApiClass {
|
|
|
1037
1031
|
});
|
|
1038
1032
|
}
|
|
1039
1033
|
|
|
1040
|
-
async uploadDigitalCertifijcate(data: any) {
|
|
1041
|
-
return await this.axiosCall<any>({
|
|
1042
|
-
method: Methods.POST,
|
|
1043
|
-
url: '/File/api/Document/UploadDigitalCertifijcate',
|
|
1044
|
-
headers: {
|
|
1045
|
-
'Content-Type': 'multipart/form-data',
|
|
1046
|
-
},
|
|
1047
|
-
data: data,
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
async uploadDigitalCertificatePensionAnnuityNew(data: any) {
|
|
1052
|
-
return await this.axiosCall<any>({
|
|
1053
|
-
method: Methods.POST,
|
|
1054
|
-
url: '/File/api/Document/UploadDigitalCertificatePensionAnnuityNew',
|
|
1055
|
-
headers: {
|
|
1056
|
-
'Content-Type': 'multipart/form-data',
|
|
1057
|
-
},
|
|
1058
|
-
data: data,
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
1034
|
async startRejectedApplication(data: any) {
|
|
1063
1035
|
return await this.axiosCall({
|
|
1064
1036
|
method: Methods.POST,
|
|
@@ -1067,13 +1039,6 @@ export class ApiClass {
|
|
|
1067
1039
|
});
|
|
1068
1040
|
}
|
|
1069
1041
|
|
|
1070
|
-
async getDocumentsByEdsXmlId(edsXmlId: string) {
|
|
1071
|
-
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
1072
|
-
method: Methods.GET,
|
|
1073
|
-
url: `/File/api/Sign/GetDocumentsByEdsXmlId/${edsXmlId}`,
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
1042
|
async checkSign(id: string) {
|
|
1078
1043
|
return await this.axiosCall<Types.SignedState>({
|
|
1079
1044
|
method: Methods.POST,
|
|
@@ -1090,21 +1055,276 @@ export class ApiClass {
|
|
|
1090
1055
|
});
|
|
1091
1056
|
}
|
|
1092
1057
|
|
|
1093
|
-
async
|
|
1094
|
-
return await this.axiosCall<
|
|
1058
|
+
async acceptDeclaration(insuredId: string, accept: boolean) {
|
|
1059
|
+
return await this.axiosCall<boolean>({
|
|
1095
1060
|
method: Methods.POST,
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1061
|
+
url: `/${this.productUrl}/api/Application/AcceptDeclaration`,
|
|
1062
|
+
params: {
|
|
1063
|
+
insuredId,
|
|
1064
|
+
accept,
|
|
1065
|
+
},
|
|
1099
1066
|
});
|
|
1100
1067
|
}
|
|
1101
1068
|
|
|
1102
|
-
async
|
|
1103
|
-
return await this.axiosCall<
|
|
1104
|
-
method: Methods.
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1069
|
+
async getParentContractData(policyId: string) {
|
|
1070
|
+
return await this.axiosCall<{ bin: string; name: string }>({
|
|
1071
|
+
method: Methods.GET,
|
|
1072
|
+
url: `/${this.productUrl}/api/Application/GetParentContractData`,
|
|
1073
|
+
params: {
|
|
1074
|
+
policyId,
|
|
1075
|
+
},
|
|
1108
1076
|
});
|
|
1109
1077
|
}
|
|
1078
|
+
|
|
1079
|
+
async getContractByBin(bin: string) {
|
|
1080
|
+
return await this.axiosCall<Types.GetContractByBinResponse>({
|
|
1081
|
+
method: Methods.GET,
|
|
1082
|
+
url: `/${this.productUrl}/api/Application/getContractByBin`,
|
|
1083
|
+
params: {
|
|
1084
|
+
bin,
|
|
1085
|
+
},
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
async checkProActiveService(processInstanceId: string | number, iin: string) {
|
|
1090
|
+
return await this.axiosCall({
|
|
1091
|
+
method: Methods.GET,
|
|
1092
|
+
url: `/${this.productUrl}/api/Application/CheckProActiveService`,
|
|
1093
|
+
params: {
|
|
1094
|
+
processInstanceId,
|
|
1095
|
+
iin,
|
|
1096
|
+
},
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
async getParentApplication(bin: string) {
|
|
1101
|
+
return await this.axiosCall<any>({
|
|
1102
|
+
method: Methods.GET,
|
|
1103
|
+
url: `/${this.productUrl}/api/Application/GetParentApplication`,
|
|
1104
|
+
params: {
|
|
1105
|
+
bin,
|
|
1106
|
+
},
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
pensionannuityNew = {
|
|
1111
|
+
base: '/pensionannuityNew',
|
|
1112
|
+
getEnpfRedirectUrl: async (id: string) => {
|
|
1113
|
+
return await this.axiosCall<{ redirectUrl: string }>({
|
|
1114
|
+
method: Methods.POST,
|
|
1115
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1116
|
+
url: `${this.pensionannuityNew.base}/GetEnpfRedirectUrl?id=${id}`,
|
|
1117
|
+
});
|
|
1118
|
+
},
|
|
1119
|
+
setEnpfSharedId: async (sharedId: string, infoId: string, isProd: boolean) => {
|
|
1120
|
+
return await this.axiosCall<void>({
|
|
1121
|
+
method: Methods.POST,
|
|
1122
|
+
baseURL: isProd === false ? getStrValuePerEnv('efoBaseApi').replace('kz/efo', 'kz/test/efo') : getStrValuePerEnv('efoBaseApi'),
|
|
1123
|
+
url: `${this.pensionannuityNew.base}/SetEnpfSharedId/${sharedId}/${infoId}`,
|
|
1124
|
+
});
|
|
1125
|
+
},
|
|
1126
|
+
calcParentContractSums: async (data: any) => {
|
|
1127
|
+
return await this.axiosCall<void>({
|
|
1128
|
+
method: Methods.POST,
|
|
1129
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1130
|
+
url: `${this.pensionannuityNew.base}/CalcParentContractSums`,
|
|
1131
|
+
data: data,
|
|
1132
|
+
});
|
|
1133
|
+
},
|
|
1134
|
+
reCalculateRefund: async (data: any) => {
|
|
1135
|
+
return await this.axiosCall<void>({
|
|
1136
|
+
method: Methods.POST,
|
|
1137
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1138
|
+
url: `${this.pensionannuityNew.base}/ReCalculateRefund`,
|
|
1139
|
+
data: data,
|
|
1140
|
+
});
|
|
1141
|
+
},
|
|
1142
|
+
getDividendSchedule: async (processInstanceId: string | number) => {
|
|
1143
|
+
return await this.axiosCall<{
|
|
1144
|
+
scheduleDividend: Value[] | null;
|
|
1145
|
+
scheduleDividend2: Value[] | null;
|
|
1146
|
+
}>({
|
|
1147
|
+
method: Methods.GET,
|
|
1148
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1149
|
+
url: `${this.pensionannuityNew.base}/GetDividendSchedule`,
|
|
1150
|
+
params: { processInstanceId: processInstanceId },
|
|
1151
|
+
});
|
|
1152
|
+
},
|
|
1153
|
+
setOppvCount: async (processInstanceId: string, data: any) => {
|
|
1154
|
+
return await this.axiosCall<{ oppvCount: number; errocCode: number; errorMsg: string }>({
|
|
1155
|
+
method: Methods.POST,
|
|
1156
|
+
baseURL: getStrValuePerEnv('efoBaseApi'),
|
|
1157
|
+
url: `${this.pensionannuityNew.base}/SetOppvCount`,
|
|
1158
|
+
headers: {
|
|
1159
|
+
'Content-Type': 'multipart/form-data',
|
|
1160
|
+
},
|
|
1161
|
+
params: { processInstanceId },
|
|
1162
|
+
data: data,
|
|
1163
|
+
});
|
|
1164
|
+
},
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
externalServices = {
|
|
1168
|
+
base: '/externalservices',
|
|
1169
|
+
getOnlineAccess: async (data: { iinBin: string; documentType: string }) => {
|
|
1170
|
+
return await this.axiosCall<{ code: string; message: string }>({
|
|
1171
|
+
method: Methods.POST,
|
|
1172
|
+
url: `${this.externalServices.base}/api/ExternalServices/GetOnlineAccess`,
|
|
1173
|
+
data: data,
|
|
1174
|
+
});
|
|
1175
|
+
},
|
|
1176
|
+
getDigitalDocuments: async (data: { iin: string; processInstanceId: string; code: string }) => {
|
|
1177
|
+
return await this.axiosCall<void>({
|
|
1178
|
+
method: Methods.POST,
|
|
1179
|
+
url: `${this.externalServices.base}/api/ExternalServices/DigitalDocuments`,
|
|
1180
|
+
data: data,
|
|
1181
|
+
});
|
|
1182
|
+
},
|
|
1183
|
+
updateDigitalDocumentsProfile: async (data: { iinBin: string }) => {
|
|
1184
|
+
return await this.axiosCall<void>({
|
|
1185
|
+
method: Methods.POST,
|
|
1186
|
+
url: `${this.externalServices.base}/api/ExternalServices/UpdateDigitalDocumentsProfile`,
|
|
1187
|
+
data: data,
|
|
1188
|
+
});
|
|
1189
|
+
},
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
file = {
|
|
1193
|
+
base: '/File',
|
|
1194
|
+
uploadFilesNew: async (groupId: string, data: any) => {
|
|
1195
|
+
return await this.axiosCall({
|
|
1196
|
+
method: Methods.POST,
|
|
1197
|
+
url: `${this.file.base}/api/GeneralSign/UploadPaper/${groupId}`,
|
|
1198
|
+
headers: {
|
|
1199
|
+
'Content-Type': 'multipart/form-data',
|
|
1200
|
+
},
|
|
1201
|
+
data: data,
|
|
1202
|
+
});
|
|
1203
|
+
},
|
|
1204
|
+
generalGetDoc: async (groupId: string, documentSignType: number) => {
|
|
1205
|
+
return await this.axiosCall<any>({
|
|
1206
|
+
method: Methods.GET,
|
|
1207
|
+
url: `${this.file.base}/api/GeneralSign/Group/${groupId}/${documentSignType} `,
|
|
1208
|
+
responseType: documentSignType === 5 ? 'json' : 'arraybuffer',
|
|
1209
|
+
});
|
|
1210
|
+
},
|
|
1211
|
+
generalSign: async (data: Types.Api.Sign.New.GeneralResponse) => {
|
|
1212
|
+
return await this.axiosCall<Types.Api.Sign.New.Response>({
|
|
1213
|
+
method: Methods.POST,
|
|
1214
|
+
url: `${this.file.base}/api/GeneralSign/Sign`,
|
|
1215
|
+
data: data,
|
|
1216
|
+
});
|
|
1217
|
+
},
|
|
1218
|
+
generateSign: async (data: Types.Api.Sign.New.Request) => {
|
|
1219
|
+
return await this.axiosCall<Types.Api.Sign.New.GeneralResponse[]>({
|
|
1220
|
+
method: Methods.POST,
|
|
1221
|
+
url: `${this.file.base}/api/GeneralSign/GenerateSign`,
|
|
1222
|
+
data: data,
|
|
1223
|
+
});
|
|
1224
|
+
},
|
|
1225
|
+
uploadDigitalCertificateNca: async (groupId: string, data: any) => {
|
|
1226
|
+
return await this.axiosCall<void>({
|
|
1227
|
+
method: Methods.POST,
|
|
1228
|
+
url: `${this.file.base}/api/GeneralSign/UploadNClayer/${groupId}`,
|
|
1229
|
+
headers: {
|
|
1230
|
+
'Content-Type': 'multipart/form-data',
|
|
1231
|
+
},
|
|
1232
|
+
data: data,
|
|
1233
|
+
});
|
|
1234
|
+
},
|
|
1235
|
+
uploadXml: async (data: any) => {
|
|
1236
|
+
return await this.axiosCall<void>({
|
|
1237
|
+
url: `${this.file.base}/api/GeneralSign/UploadXml`,
|
|
1238
|
+
method: Methods.POST,
|
|
1239
|
+
data: data,
|
|
1240
|
+
});
|
|
1241
|
+
},
|
|
1242
|
+
signXml: async (data: any) => {
|
|
1243
|
+
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
1244
|
+
url: `${this.file.base}/api/Sign/SignXml`,
|
|
1245
|
+
method: Methods.POST,
|
|
1246
|
+
data: data,
|
|
1247
|
+
});
|
|
1248
|
+
},
|
|
1249
|
+
signBts: async (data: any) => {
|
|
1250
|
+
return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
|
|
1251
|
+
url: `${this.file.base}/api/Sign/SignBts`,
|
|
1252
|
+
method: Methods.POST,
|
|
1253
|
+
data: data,
|
|
1254
|
+
});
|
|
1255
|
+
},
|
|
1256
|
+
getDoc: async (id: string) => {
|
|
1257
|
+
return await this.axiosCall({
|
|
1258
|
+
method: Methods.GET,
|
|
1259
|
+
url: `${this.file.base}/api/Data/DownloadFile/${id}`,
|
|
1260
|
+
responseType: 'arraybuffer',
|
|
1261
|
+
headers: {
|
|
1262
|
+
'Content-Type': 'application/pdf',
|
|
1263
|
+
},
|
|
1264
|
+
});
|
|
1265
|
+
},
|
|
1266
|
+
getDocNew: async (id: string) => {
|
|
1267
|
+
return await this.axiosCall({
|
|
1268
|
+
method: Methods.GET,
|
|
1269
|
+
url: `${this.file.base}/api/GeneralSign/DownloadFile/${id}`,
|
|
1270
|
+
responseType: 'arraybuffer',
|
|
1271
|
+
headers: {
|
|
1272
|
+
'Content-Type': 'application/pdf',
|
|
1273
|
+
},
|
|
1274
|
+
});
|
|
1275
|
+
},
|
|
1276
|
+
deleteFile: async (data: any) => {
|
|
1277
|
+
return await this.axiosCall<void>({
|
|
1278
|
+
method: Methods.POST,
|
|
1279
|
+
url: `${this.file.base}/api/Data/DeleteFiles`,
|
|
1280
|
+
data: data,
|
|
1281
|
+
});
|
|
1282
|
+
},
|
|
1283
|
+
uploadFiles: async (data: any) => {
|
|
1284
|
+
return await this.axiosCall({
|
|
1285
|
+
method: Methods.POST,
|
|
1286
|
+
url: `${this.file.base}/api/Data/UploadFiles`,
|
|
1287
|
+
headers: {
|
|
1288
|
+
'Content-Type': 'multipart/form-data',
|
|
1289
|
+
},
|
|
1290
|
+
data: data,
|
|
1291
|
+
});
|
|
1292
|
+
},
|
|
1293
|
+
signDocument: async (data: Types.SignDataType[]) => {
|
|
1294
|
+
return await this.axiosCall<Types.SignUrlType[]>({
|
|
1295
|
+
method: Methods.POST,
|
|
1296
|
+
url: `${this.file.base}/api/Document/SignBts`,
|
|
1297
|
+
data: data,
|
|
1298
|
+
});
|
|
1299
|
+
},
|
|
1300
|
+
signQR: async (data: Types.SignDataType[]) => {
|
|
1301
|
+
return await this.axiosCall<Types.ResponseStructure<any>>({
|
|
1302
|
+
method: Methods.POST,
|
|
1303
|
+
url: `${this.file.base}/api/Sign/SignQr`,
|
|
1304
|
+
data: data,
|
|
1305
|
+
});
|
|
1306
|
+
},
|
|
1307
|
+
generateDocument: async (data: Types.SignDataType) => {
|
|
1308
|
+
return await this.axiosCall<void>({
|
|
1309
|
+
method: Methods.POST,
|
|
1310
|
+
url: `${this.file.base}/api/Document/Generate`,
|
|
1311
|
+
responseType: 'arraybuffer',
|
|
1312
|
+
data: data,
|
|
1313
|
+
});
|
|
1314
|
+
},
|
|
1315
|
+
getSignedDocList: async (data: { processInstanceId: string | number }) => {
|
|
1316
|
+
return await this.axiosCall<IDocument[]>({
|
|
1317
|
+
method: Methods.POST,
|
|
1318
|
+
url: `${this.file.base}/api/Data/List`,
|
|
1319
|
+
data: data,
|
|
1320
|
+
});
|
|
1321
|
+
},
|
|
1322
|
+
setActualEnpf: async (data: { processId: string; isOnlineEnpfAgreement: boolean }) => {
|
|
1323
|
+
return await this.axiosCall<void>({
|
|
1324
|
+
method: Methods.POST,
|
|
1325
|
+
url: `${this.file.base}/api/GeneralSign/SetActualEnpfAgreement`,
|
|
1326
|
+
data: data,
|
|
1327
|
+
});
|
|
1328
|
+
},
|
|
1329
|
+
};
|
|
1110
1330
|
}
|
package/api/interceptors.ts
CHANGED
|
@@ -65,14 +65,12 @@ export default function (axios: AxiosInstance) {
|
|
|
65
65
|
dataStore.sendToParent(constants.postActions.Error401, 401);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
if (error.response.status >= 500) {
|
|
69
|
-
if (router.currentRoute.value.name !== 'Auth') {
|
|
70
|
-
dataStore.showToaster('error', error.stack ?? dataStore.t('toaster.error'), 5000);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
68
|
if (error.response.status === 403 && error.response.config.url) {
|
|
74
69
|
dataStore.showToaster('error', `Нет доступа на запрос: ${error.response.config.url.substring(error.response.config.url.lastIndexOf('/') + 1)}`, 5000);
|
|
75
70
|
}
|
|
71
|
+
if (error.response.status === 413) {
|
|
72
|
+
dataStore.showToaster('error', dataStore.t('error.exceedUploadLimitFile'), 5000);
|
|
73
|
+
}
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
return Promise.reject(error);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-dialog class="base-dialog" :model-value="Boolean(modelValue)" @update:modelValue="$emit('update:modelValue', $event)" :persistent="
|
|
2
|
+
<v-dialog class="base-dialog" :model-value="Boolean(modelValue)" @update:modelValue="$emit('update:modelValue', $event)" :persistent="persistent">
|
|
3
3
|
<v-card class="self-center w-full sm:w-4/4 md:w-2/3 lg:w-[35%] xl:w-[500px] rounded-lg !p-[36px]">
|
|
4
4
|
<div class="flex sm:flex-row flex-col place-items-center sm:place-items-start">
|
|
5
5
|
<div class="h-20 w-20 place-items-start pt-1">
|
|
@@ -44,6 +44,10 @@ export default defineComponent({
|
|
|
44
44
|
type: Boolean as PropType<boolean | null>,
|
|
45
45
|
default: false,
|
|
46
46
|
},
|
|
47
|
+
persistent: {
|
|
48
|
+
type: Boolean as PropType<boolean>,
|
|
49
|
+
default: true,
|
|
50
|
+
},
|
|
47
51
|
title: {
|
|
48
52
|
type: String,
|
|
49
53
|
default() {
|