hl-core 0.0.10-beta.5 → 0.0.10-beta.50

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.
Files changed (41) hide show
  1. package/README.md +0 -2
  2. package/api/base.api.ts +327 -137
  3. package/api/interceptors.ts +3 -5
  4. package/components/Dialog/Dialog.vue +5 -1
  5. package/components/Form/DigitalDocument.vue +52 -0
  6. package/components/Form/FormSource.vue +30 -0
  7. package/components/Form/ManagerAttachment.vue +60 -11
  8. package/components/Form/ProductConditionsBlock.vue +12 -6
  9. package/components/Input/Datepicker.vue +5 -0
  10. package/components/Input/FileInput.vue +1 -1
  11. package/components/Input/FormInput.vue +5 -0
  12. package/components/Input/OtpInput.vue +25 -0
  13. package/components/Input/RoundedInput.vue +2 -0
  14. package/components/Input/RoundedSelect.vue +2 -0
  15. package/components/Input/TextAreaField.vue +71 -0
  16. package/components/Menu/MenuNav.vue +1 -1
  17. package/components/Pages/Anketa.vue +207 -176
  18. package/components/Pages/ContragentForm.vue +1 -1
  19. package/components/Pages/Documents.vue +436 -64
  20. package/components/Pages/MemberForm.vue +343 -170
  21. package/components/Pages/ProductConditions.vue +895 -241
  22. package/components/Panel/PanelHandler.vue +282 -124
  23. package/components/Utilities/Chip.vue +1 -1
  24. package/components/Utilities/JsonViewer.vue +1 -2
  25. package/composables/classes.ts +121 -20
  26. package/composables/constants.ts +45 -1
  27. package/composables/index.ts +333 -8
  28. package/composables/styles.ts +8 -24
  29. package/configs/pwa.ts +1 -7
  30. package/layouts/clear.vue +1 -1
  31. package/layouts/default.vue +1 -1
  32. package/layouts/full.vue +1 -1
  33. package/locales/ru.json +82 -19
  34. package/nuxt.config.ts +10 -12
  35. package/package.json +12 -12
  36. package/plugins/head.ts +7 -1
  37. package/store/data.store.ts +867 -525
  38. package/store/member.store.ts +17 -6
  39. package/store/rules.ts +23 -3
  40. package/types/enum.ts +40 -2
  41. package/types/index.ts +110 -56
package/README.md CHANGED
@@ -38,5 +38,3 @@ Locally preview production build:
38
38
  ```bash
39
39
  npm run preview
40
40
  ```
41
-
42
- Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
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,
@@ -299,21 +306,23 @@ export class ApiClass {
299
306
  });
300
307
  }
301
308
 
302
- async getFile(id: string) {
303
- return await this.axiosCall({
309
+ async getDicFileTypeList() {
310
+ return await this.axiosCall<Value[]>({
304
311
  method: Methods.GET,
305
- url: `/File/api/Data/DownloadFile/${id}`,
306
- responseType: 'arraybuffer',
307
- headers: {
308
- 'Content-Type': 'application/pdf',
309
- },
312
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicFileType',
310
313
  });
311
314
  }
312
315
 
313
- async getDicFileTypeList() {
316
+ async getProgramType() {
314
317
  return await this.axiosCall<Value[]>({
315
318
  method: Methods.GET,
316
- url: '/Arm/api/Dictionary/GetDictionaryItems/DicFileType',
319
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicProgramType',
320
+ });
321
+ }
322
+ async getSource() {
323
+ return await this.axiosCall<Value[]>({
324
+ method: Methods.GET,
325
+ url: '/Arm/api/Dictionary/GetDictionaryItems/DicSource',
317
326
  });
318
327
  }
319
328
 
@@ -414,12 +423,14 @@ export class ApiClass {
414
423
  });
415
424
  }
416
425
 
417
- async startApplication(data: any) {
426
+ async startApplication(data: any, processCodeEnum?: number) {
427
+ const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
418
428
  return await this.axiosCall<{
419
429
  processInstanceId: string;
420
430
  }>({
421
431
  method: Methods.POST,
422
432
  url: `/${this.productUrl}/api/Application/StartApplication`,
433
+ params: params,
423
434
  data: data,
424
435
  });
425
436
  }
@@ -453,25 +464,6 @@ export class ApiClass {
453
464
  });
454
465
  }
455
466
 
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
467
  async sendTask(data: Types.SendTask) {
476
468
  return await this.axiosCall<void>({
477
469
  method: Methods.POST,
@@ -486,7 +478,25 @@ export class ApiClass {
486
478
  url: `/${this.productUrl}/api/Application/CheckBeneficiariesInActualPolicy?iin=${iin}`,
487
479
  });
488
480
  }
489
-
481
+ async checkBeneficiariesActualPolicy(id: string) {
482
+ return await this.axiosCall<boolean>({
483
+ method: Methods.GET,
484
+ url: `/${this.productUrl}/api/Application/checkBeneficiariesActualPolicy?processInstanceId=${id}`,
485
+ });
486
+ }
487
+ async isRecalculate(id: string | number) {
488
+ return await this.axiosCall<boolean>({
489
+ method: Methods.GET,
490
+ url: `/${this.productUrl}/api/Application/IsRecalculate?processInstanceId=${id}`,
491
+ });
492
+ }
493
+ async checkCurrencyDate(id: string | number) {
494
+ return await this.axiosCall<boolean>({
495
+ method: Methods.GET,
496
+ url: '/Arm/api/Bpm/CheckCurrencyDate',
497
+ params: { processInstanceId: id },
498
+ });
499
+ }
490
500
  async setMember(whichMember: keyof typeof MemberCodes, data: any) {
491
501
  return await this.axiosCall({
492
502
  method: Methods.POST,
@@ -527,54 +537,26 @@ export class ApiClass {
527
537
  return await this.axiosCall<Types.EpayShortResponse>({
528
538
  method: Methods.POST,
529
539
  url: `/Arm/api/Invoice/SendToEpay/${processInstanceId}`,
540
+ data: {},
530
541
  });
531
542
  }
532
543
 
533
- async signDocument(data: Types.SignDataType[]) {
534
- return await this.axiosCall<Types.SignUrlType[]>({
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) {
544
+ async calculateWithoutApplication(data: Types.RecalculationDataType, product: string | undefined | null = this.productUrl, processCodeEnum?: number) {
545
+ const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
567
546
  return await this.axiosCall<Types.RecalculationResponseType>({
568
547
  method: Methods.POST,
569
548
  url: `/${product}/api/Application/Calculate`,
549
+ params: params,
570
550
  data: data,
571
551
  });
572
552
  }
573
553
 
574
- async getDefaultCalculationData(product: string | undefined | null = this.productUrl) {
554
+ async getDefaultCalculationData(product: string | undefined | null = this.productUrl, processCodeEnum?: number) {
555
+ const params = processCodeEnum !== undefined ? { processCodeEnum } : undefined;
575
556
  return await this.axiosCall<Types.RecalculationDataType>({
576
557
  method: Methods.GET,
577
558
  url: `/${product}/api/Application/DefaultCalculatorValues`,
559
+ params: params,
578
560
  });
579
561
  }
580
562
 
@@ -650,10 +632,6 @@ export class ApiClass {
650
632
  });
651
633
  }
652
634
 
653
- async getProcessTariff(code: number | string = 5) {
654
- return await this.axiosCall({ method: Methods.GET, url: `/Arm/api/Dictionary/ProcessTariff/${code}` });
655
- }
656
-
657
635
  async setConfirmation(data: any) {
658
636
  return await this.axiosCall({
659
637
  method: Methods.POST,
@@ -691,6 +669,13 @@ export class ApiClass {
691
669
  });
692
670
  }
693
671
 
672
+ async filterExecutorByRegion(dictName: string, filterName: string) {
673
+ return await this.axiosCall<Value[]>({
674
+ method: Methods.GET,
675
+ url: `/Ekk/api/ContragentInsis/DictionaryItems/${dictName}?filter=${filterName}`,
676
+ });
677
+ }
678
+
694
679
  async setINSISWorkData(data: Types.InsisWorkDataApp) {
695
680
  return await this.axiosCall({
696
681
  method: Methods.POST,
@@ -706,6 +691,13 @@ export class ApiClass {
706
691
  });
707
692
  }
708
693
 
694
+ async getBankByAccountNumber(accountNumber: string) {
695
+ return await this.axiosCall<Value>({
696
+ method: Methods.GET,
697
+ url: `/Ekk/api/ContragentInsis/GetBankByAccountNumber?accountNumber=${accountNumber}`,
698
+ });
699
+ }
700
+
709
701
  async searchAgentByName(name: string, branchCode?: string) {
710
702
  return await this.axiosCall<Types.AgentData[]>({
711
703
  method: Methods.GET,
@@ -713,6 +705,17 @@ export class ApiClass {
713
705
  });
714
706
  }
715
707
 
708
+ async getContractIdByNumber(insuranceTypeEnum: number, policyNo: string) {
709
+ return await this.axiosCall<number>({
710
+ method: Methods.GET,
711
+ url: `/Ekk/api/PolicyInsis/GetContractIDbyNumber`,
712
+ params: {
713
+ insuranceTypeEnum,
714
+ policyNo,
715
+ },
716
+ });
717
+ }
718
+
716
719
  async isCourseChanged(processInstanceId: string) {
717
720
  return await this.axiosCall<boolean>({
718
721
  method: Methods.GET,
@@ -815,10 +818,10 @@ export class ApiClass {
815
818
  });
816
819
  }
817
820
 
818
- async saveInsuredList(processInstanceId: string | number, data: any) {
821
+ async saveInsuredList(processInstanceId: string | number, newInsureds: boolean, data: any) {
819
822
  return await this.axiosCall({
820
823
  method: Methods.POST,
821
- url: `/${this.productUrl}/api/Application/saveInsuredList/?processInstanceId=${processInstanceId}`,
824
+ url: `/${this.productUrl}/api/Application/saveInsuredList/?processInstanceId=${processInstanceId}&newInsureds=${newInsureds}`,
822
825
  data: data,
823
826
  });
824
827
  }
@@ -831,6 +834,13 @@ export class ApiClass {
831
834
  });
832
835
  }
833
836
 
837
+ async getInsuredsData(processInstanceId: string | number) {
838
+ return await this.axiosCall<Types.ClientV2[]>({
839
+ method: Methods.GET,
840
+ url: `/${this.productUrl}/api/Application/GetInsuredsData/?processInstanceId=${processInstanceId}`,
841
+ });
842
+ }
843
+
834
844
  async getProcessGfot(processCode: string | number) {
835
845
  return await this.axiosCall<Value[]>({
836
846
  method: Methods.GET,
@@ -966,30 +976,6 @@ export class ApiClass {
966
976
  });
967
977
  }
968
978
 
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
979
  async generateShortLink(data: Types.Api.GenerateShortLink.Request) {
994
980
  return await this.axiosCall<Types.Api.GenerateShortLink.Response>({
995
981
  url: '/notification/shorteners',
@@ -999,12 +985,13 @@ export class ApiClass {
999
985
  });
1000
986
  }
1001
987
 
1002
- async checkOsns(bin: string) {
988
+ async checkOsns(bin: string, date: string) {
1003
989
  return await this.axiosCall<boolean>({
1004
990
  method: Methods.GET,
1005
991
  url: `/${this.productUrl}/api/Application/CheckOSNS`,
1006
992
  params: {
1007
993
  bin,
994
+ date,
1008
995
  },
1009
996
  });
1010
997
  }
@@ -1037,28 +1024,6 @@ export class ApiClass {
1037
1024
  });
1038
1025
  }
1039
1026
 
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
1027
  async startRejectedApplication(data: any) {
1063
1028
  return await this.axiosCall({
1064
1029
  method: Methods.POST,
@@ -1067,13 +1032,6 @@ export class ApiClass {
1067
1032
  });
1068
1033
  }
1069
1034
 
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
1035
  async checkSign(id: string) {
1078
1036
  return await this.axiosCall<Types.SignedState>({
1079
1037
  method: Methods.POST,
@@ -1090,21 +1048,253 @@ export class ApiClass {
1090
1048
  });
1091
1049
  }
1092
1050
 
1093
- async getEnpfRedirectUrl(id: string) {
1094
- return await this.axiosCall<{ redirectUrl: string }>({
1051
+ async acceptDeclaration(insuredId: string, accept: boolean) {
1052
+ return await this.axiosCall<boolean>({
1095
1053
  method: Methods.POST,
1096
- // TODO
1097
- baseURL: 'https://products.halyklife.kz/test/efo/api',
1098
- url: `/pensionannuityNew/GetEnpfRedirectUrl?id=${id}`,
1054
+ url: `/${this.productUrl}/api/Application/AcceptDeclaration`,
1055
+ params: {
1056
+ insuredId,
1057
+ accept,
1058
+ },
1099
1059
  });
1100
1060
  }
1101
1061
 
1102
- async setEnpfSharedId(sharedId: string, infoId: string) {
1103
- return await this.axiosCall<void>({
1104
- method: Methods.POST,
1105
- // TODO
1106
- baseURL: 'https://products.halyklife.kz/test/efo/api',
1107
- url: `/pensionannuityNew/SetEnpfSharedId/${sharedId}/${infoId}`,
1062
+ async getParentContractData(policyId: string) {
1063
+ return await this.axiosCall<{ bin: string; name: string }>({
1064
+ method: Methods.GET,
1065
+ url: `/${this.productUrl}/api/Application/GetParentContractData`,
1066
+ params: {
1067
+ policyId,
1068
+ },
1108
1069
  });
1109
1070
  }
1071
+
1072
+ async getContractByBin(bin: string) {
1073
+ return await this.axiosCall<Types.GetContractByBinResponse>({
1074
+ method: Methods.GET,
1075
+ url: `/${this.productUrl}/api/Application/getContractByBin`,
1076
+ params: {
1077
+ bin,
1078
+ },
1079
+ });
1080
+ }
1081
+
1082
+ async checkProActiveService(processInstanceId: string | number, iin: string) {
1083
+ return await this.axiosCall({
1084
+ method: Methods.GET,
1085
+ url: `/${this.productUrl}/api/Application/CheckProActiveService`,
1086
+ params: {
1087
+ processInstanceId,
1088
+ iin,
1089
+ },
1090
+ });
1091
+ }
1092
+
1093
+ async getParentApplication(bin: string) {
1094
+ return await this.axiosCall<any>({
1095
+ method: Methods.GET,
1096
+ url: `/${this.productUrl}/api/Application/GetParentApplication`,
1097
+ params: {
1098
+ bin,
1099
+ },
1100
+ });
1101
+ }
1102
+
1103
+ pensionannuityNew = {
1104
+ base: '/pensionannuityNew',
1105
+ getEnpfRedirectUrl: async (id: string) => {
1106
+ return await this.axiosCall<{ redirectUrl: string }>({
1107
+ method: Methods.POST,
1108
+ baseURL: getStrValuePerEnv('efoBaseApi'),
1109
+ url: `${this.pensionannuityNew.base}/GetEnpfRedirectUrl?id=${id}`,
1110
+ });
1111
+ },
1112
+ setEnpfSharedId: async (sharedId: string, infoId: string, isProd: boolean) => {
1113
+ return await this.axiosCall<void>({
1114
+ method: Methods.POST,
1115
+ baseURL: isProd === false ? getStrValuePerEnv('efoBaseApi').replace('kz/efo', 'kz/test/efo') : getStrValuePerEnv('efoBaseApi'),
1116
+ url: `${this.pensionannuityNew.base}/SetEnpfSharedId/${sharedId}/${infoId}`,
1117
+ });
1118
+ },
1119
+ calcParentContractSums: async (data: any) => {
1120
+ return await this.axiosCall<void>({
1121
+ method: Methods.POST,
1122
+ baseURL: getStrValuePerEnv('efoBaseApi'),
1123
+ url: `${this.pensionannuityNew.base}/CalcParentContractSums`,
1124
+ data: data,
1125
+ });
1126
+ },
1127
+ reCalculateRefund: async (data: any) => {
1128
+ return await this.axiosCall<void>({
1129
+ method: Methods.POST,
1130
+ baseURL: getStrValuePerEnv('efoBaseApi'),
1131
+ url: `${this.pensionannuityNew.base}/ReCalculateRefund`,
1132
+ data: data,
1133
+ });
1134
+ },
1135
+ };
1136
+
1137
+ externalServices = {
1138
+ base: '/externalservices',
1139
+ getOnlineAccess: async (data: { iinBin: string; documentType: string }) => {
1140
+ return await this.axiosCall<{ code: string; message: string }>({
1141
+ method: Methods.POST,
1142
+ url: `${this.externalServices.base}/api/ExternalServices/GetOnlineAccess`,
1143
+ data: data,
1144
+ });
1145
+ },
1146
+ getDigitalDocuments: async (data: { iin: string; processInstanceId: string; code: string }) => {
1147
+ return await this.axiosCall<void>({
1148
+ method: Methods.POST,
1149
+ url: `${this.externalServices.base}/api/ExternalServices/DigitalDocuments`,
1150
+ data: data,
1151
+ });
1152
+ },
1153
+ updateDigitalDocumentsProfile: async (data: { iinBin: string }) => {
1154
+ return await this.axiosCall<void>({
1155
+ method: Methods.POST,
1156
+ url: `${this.externalServices.base}/api/ExternalServices/UpdateDigitalDocumentsProfile`,
1157
+ data: data,
1158
+ });
1159
+ },
1160
+ };
1161
+
1162
+ file = {
1163
+ base: '/File',
1164
+ uploadFilesNew: async (groupId: string, data: any) => {
1165
+ return await this.axiosCall({
1166
+ method: Methods.POST,
1167
+ url: `${this.file.base}/api/GeneralSign/UploadPaper/${groupId}`,
1168
+ headers: {
1169
+ 'Content-Type': 'multipart/form-data',
1170
+ },
1171
+ data: data,
1172
+ });
1173
+ },
1174
+ generalGetDoc: async (groupId: string, documentSignType: number) => {
1175
+ return await this.axiosCall<any>({
1176
+ method: Methods.GET,
1177
+ url: `${this.file.base}/api/GeneralSign/Group/${groupId}/${documentSignType} `,
1178
+ responseType: documentSignType === 5 ? 'json' : 'arraybuffer',
1179
+ });
1180
+ },
1181
+ generalSign: async (data: Types.Api.Sign.New.GeneralResponse) => {
1182
+ return await this.axiosCall<Types.Api.Sign.New.Response>({
1183
+ method: Methods.POST,
1184
+ url: `${this.file.base}/api/GeneralSign/Sign`,
1185
+ data: data,
1186
+ });
1187
+ },
1188
+ generateSign: async (data: Types.Api.Sign.New.Request) => {
1189
+ return await this.axiosCall<Types.Api.Sign.New.GeneralResponse[]>({
1190
+ method: Methods.POST,
1191
+ url: `${this.file.base}/api/GeneralSign/GenerateSign`,
1192
+ data: data,
1193
+ });
1194
+ },
1195
+ uploadDigitalCertificateNca: async (groupId: string, data: any) => {
1196
+ return await this.axiosCall<void>({
1197
+ method: Methods.POST,
1198
+ url: `${this.file.base}/api/GeneralSign/UploadNClayer/${groupId}`,
1199
+ headers: {
1200
+ 'Content-Type': 'multipart/form-data',
1201
+ },
1202
+ data: data,
1203
+ });
1204
+ },
1205
+ uploadXml: async (data: any) => {
1206
+ return await this.axiosCall<void>({
1207
+ url: `${this.file.base}/api/GeneralSign/UploadXml`,
1208
+ method: Methods.POST,
1209
+ data: data,
1210
+ });
1211
+ },
1212
+ signXml: async (data: any) => {
1213
+ return await this.axiosCall<Types.ResponseStructure<any>>({
1214
+ url: `${this.file.base}/api/Sign/SignXml`,
1215
+ method: Methods.POST,
1216
+ data: data,
1217
+ });
1218
+ },
1219
+ signBts: async (data: any) => {
1220
+ return await this.axiosCall<Types.ResponseStructure<Types.SignUrlType[]>>({
1221
+ url: `${this.file.base}/api/Sign/SignBts`,
1222
+ method: Methods.POST,
1223
+ data: data,
1224
+ });
1225
+ },
1226
+ getDoc: async (id: string) => {
1227
+ return await this.axiosCall({
1228
+ method: Methods.GET,
1229
+ url: `${this.file.base}/api/Data/DownloadFile/${id}`,
1230
+ responseType: 'arraybuffer',
1231
+ headers: {
1232
+ 'Content-Type': 'application/pdf',
1233
+ },
1234
+ });
1235
+ },
1236
+ getDocNew: async (id: string) => {
1237
+ return await this.axiosCall({
1238
+ method: Methods.GET,
1239
+ url: `${this.file.base}/api/GeneralSign/DownloadFile/${id}`,
1240
+ responseType: 'arraybuffer',
1241
+ headers: {
1242
+ 'Content-Type': 'application/pdf',
1243
+ },
1244
+ });
1245
+ },
1246
+ deleteFile: async (data: any) => {
1247
+ return await this.axiosCall<void>({
1248
+ method: Methods.POST,
1249
+ url: `${this.file.base}/api/Data/DeleteFiles`,
1250
+ data: data,
1251
+ });
1252
+ },
1253
+ uploadFiles: async (data: any) => {
1254
+ return await this.axiosCall({
1255
+ method: Methods.POST,
1256
+ url: `${this.file.base}/api/Data/UploadFiles`,
1257
+ headers: {
1258
+ 'Content-Type': 'multipart/form-data',
1259
+ },
1260
+ data: data,
1261
+ });
1262
+ },
1263
+ signDocument: async (data: Types.SignDataType[]) => {
1264
+ return await this.axiosCall<Types.SignUrlType[]>({
1265
+ method: Methods.POST,
1266
+ url: `${this.file.base}/api/Document/SignBts`,
1267
+ data: data,
1268
+ });
1269
+ },
1270
+ signQR: async (data: Types.SignDataType[]) => {
1271
+ return await this.axiosCall<Types.ResponseStructure<any>>({
1272
+ method: Methods.POST,
1273
+ url: `${this.file.base}/api/Sign/SignQr`,
1274
+ data: data,
1275
+ });
1276
+ },
1277
+ generateDocument: async (data: Types.SignDataType) => {
1278
+ return await this.axiosCall<void>({
1279
+ method: Methods.POST,
1280
+ url: `${this.file.base}/api/Document/Generate`,
1281
+ responseType: 'arraybuffer',
1282
+ data: data,
1283
+ });
1284
+ },
1285
+ getSignedDocList: async (data: { processInstanceId: string | number }) => {
1286
+ return await this.axiosCall<IDocument[]>({
1287
+ method: Methods.POST,
1288
+ url: `${this.file.base}/api/Data/List`,
1289
+ data: data,
1290
+ });
1291
+ },
1292
+ setActualEnpf: async (data: { processId: string; isOnlineEnpfAgreement: boolean }) => {
1293
+ return await this.axiosCall<void>({
1294
+ method: Methods.POST,
1295
+ url: `${this.file.base}/api/GeneralSign/SetActualEnpfAgreement`,
1296
+ data: data,
1297
+ });
1298
+ },
1299
+ };
1110
1300
  }
@@ -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="true">
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() {