hl-core 0.0.10-beta.25 → 0.0.10-beta.26
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 +0 -33
- package/components/Pages/MemberForm.vue +28 -58
- package/components/Pages/ProductConditions.vue +31 -152
- package/components/Panel/PanelHandler.vue +12 -30
- package/components/Utilities/Chip.vue +1 -1
- package/composables/classes.ts +0 -8
- package/composables/constants.ts +0 -17
- package/composables/index.ts +0 -1
- package/locales/ru.json +1 -4
- package/package.json +1 -1
- package/store/data.store.ts +56 -237
- package/store/member.store.ts +4 -15
- package/types/enum.ts +0 -1
|
@@ -73,21 +73,18 @@
|
|
|
73
73
|
</base-form-section>
|
|
74
74
|
</div>
|
|
75
75
|
<div v-if="!(formStore.signatories.length === 0) && !isQr && !isScansDocuments" :class="[$styles.flexColNav]">
|
|
76
|
-
<div v-if="(processCode == 19 || processCode == 4) && formStore.applicationData.statusCode === 'AttachAppContractForm'" :class="[$styles.blueBgLight]" class="rounded-lg p-4">
|
|
77
|
-
<base-form-toggle v-model="isOnlineEnpf" title="Онлайн подписание согласия для ЕНПФ" :has-border="false" @clicked="setActualEnpf" />
|
|
78
|
-
</div>
|
|
79
76
|
<div :class="[$styles.blueBgLight]" class="rounded-lg p-4">
|
|
80
|
-
<v-expansion-panels v-if="formStore.signatories.length" variant="accordion"
|
|
77
|
+
<v-expansion-panels v-if="formStore.signatories.length" variant="accordion" multiple>
|
|
81
78
|
<v-expansion-panel v-for="(person, index) of formStore.signatories" :key="person.personId!" class="border-[1px]" elevation="0" bg-color="#FFF">
|
|
82
79
|
<v-expansion-panel-title class="h-[80px]" :class="$styles.textTitle">
|
|
83
80
|
{{ person.longName }}
|
|
84
81
|
</v-expansion-panel-title>
|
|
85
82
|
<v-expansion-panel-text class="border-t-[1px]">
|
|
86
83
|
<section class="flex flex-col" :class="$styles.textSimple">
|
|
87
|
-
<v-expansion-panels v-if="person.fileDatas.length" v-model="currentFilePanel"
|
|
84
|
+
<v-expansion-panels v-if="person.fileDatas.length" v-model="currentFilePanel">
|
|
88
85
|
<v-expansion-panel
|
|
89
86
|
v-for="(file, fileIndex) in groupBy(person.fileDatas, 'orderFile')"
|
|
90
|
-
:value="
|
|
87
|
+
:value="fileIndex"
|
|
91
88
|
:disabled="inSigningOrder(person.fileDatas, fileIndex) || file[0].isSigned"
|
|
92
89
|
>
|
|
93
90
|
<v-expansion-panel-title v-for="name in file" class="h-[80px]" :class="$styles.textTitle">
|
|
@@ -252,7 +249,7 @@
|
|
|
252
249
|
import { DocumentItem, Value } from '../../composables/classes';
|
|
253
250
|
import { HubConnectionBuilder } from '@microsoft/signalr';
|
|
254
251
|
import { uuid } from 'vue-uuid';
|
|
255
|
-
import type
|
|
252
|
+
import type { Api, SignUrlType } from '../../types';
|
|
256
253
|
import { CoreEnums } from '../../types/enum';
|
|
257
254
|
|
|
258
255
|
export default defineComponent({
|
|
@@ -275,16 +272,15 @@ export default defineComponent({
|
|
|
275
272
|
const isOfflinePay = ref<boolean>(false);
|
|
276
273
|
const isQrDialog = ref<boolean>(false);
|
|
277
274
|
const email = ref<string>('');
|
|
278
|
-
const signOptions = ref<
|
|
279
|
-
const signingFiles = ref<
|
|
275
|
+
const signOptions = ref<Api.Sign.New.Response>();
|
|
276
|
+
const signingFiles = ref<Api.Sign.New.FileDatas[]>([]);
|
|
280
277
|
const allDocumentsSigned = ref<boolean>(false);
|
|
281
|
-
const isOnlineEnpf = ref<boolean>(true);
|
|
282
278
|
const currentFilePanel = ref<string[]>([]);
|
|
283
279
|
|
|
284
280
|
const vForm = ref<any>();
|
|
285
281
|
const isSendNumberOpen = ref<boolean>(false);
|
|
286
282
|
const phoneNumber = ref<string | null>(formStore.policyholderForm.phoneNumber ?? '');
|
|
287
|
-
const selectedClient = ref<
|
|
283
|
+
const selectedClient = ref<SignUrlType>();
|
|
288
284
|
const documentDict = computed(() => dataStore.dicFileTypeList.find(i => i.nameRu === 'Решение АС'));
|
|
289
285
|
const affiliationDocument = computed(() => formStore.signedDocumentList.find((file: DocumentItem) => file.fileTypeName === 'Решение АС'));
|
|
290
286
|
const affiliationData = ref<{
|
|
@@ -302,7 +298,7 @@ export default defineComponent({
|
|
|
302
298
|
const scansFiles = ref<any[]>([]);
|
|
303
299
|
const processCode = formStore.applicationData.processCode;
|
|
304
300
|
|
|
305
|
-
const openSmsPanel = (signInfo:
|
|
301
|
+
const openSmsPanel = (signInfo: SignUrlType) => {
|
|
306
302
|
if (signInfo) {
|
|
307
303
|
isSendNumberOpen.value = true;
|
|
308
304
|
selectedClient.value = signInfo;
|
|
@@ -516,8 +512,6 @@ export default defineComponent({
|
|
|
516
512
|
}
|
|
517
513
|
}
|
|
518
514
|
if (dataStore.isPension) {
|
|
519
|
-
const isOnlineEnpfAgreement = formStore.applicationData.pensionApp.isOnlineEnpfAgreement;
|
|
520
|
-
isOnlineEnpf.value = isOnlineEnpfAgreement === null ? true : isOnlineEnpfAgreement;
|
|
521
515
|
await dataStore.getSignedDocList(formStore.applicationData.processInstanceId);
|
|
522
516
|
}
|
|
523
517
|
};
|
|
@@ -778,7 +772,7 @@ export default defineComponent({
|
|
|
778
772
|
await dataStore.generateDocument();
|
|
779
773
|
};
|
|
780
774
|
|
|
781
|
-
const convertQr = async (url: string | null, template?:
|
|
775
|
+
const convertQr = async (url: string | null, template?: Api.GenerateShortLink.Templates) => {
|
|
782
776
|
if (url) {
|
|
783
777
|
const shortedUrl = await dataStore.generateShortLink(url, template);
|
|
784
778
|
qrUrl.value = typeof shortedUrl === 'string' && !!shortedUrl ? shortedUrl : url;
|
|
@@ -858,9 +852,9 @@ export default defineComponent({
|
|
|
858
852
|
...formStore.signatories[index],
|
|
859
853
|
signType: signType,
|
|
860
854
|
fileDatas: file,
|
|
861
|
-
}
|
|
855
|
+
};
|
|
862
856
|
try {
|
|
863
|
-
signOptions.value = await dataStore.generalSign(data);
|
|
857
|
+
signOptions.value = await dataStore.api.file.generalSign(data);
|
|
864
858
|
const message = [];
|
|
865
859
|
for (let i of file) {
|
|
866
860
|
message.push(i.fileName);
|
|
@@ -875,7 +869,7 @@ export default defineComponent({
|
|
|
875
869
|
break;
|
|
876
870
|
case CoreEnums.Sign.Types.scans:
|
|
877
871
|
isScansDocuments.value = true;
|
|
878
|
-
signingFiles.value = data.fileDatas
|
|
872
|
+
signingFiles.value = data.fileDatas;
|
|
879
873
|
message.length = 0;
|
|
880
874
|
break;
|
|
881
875
|
case CoreEnums.Sign.Types.qr:
|
|
@@ -913,16 +907,6 @@ export default defineComponent({
|
|
|
913
907
|
loading.value = false;
|
|
914
908
|
};
|
|
915
909
|
|
|
916
|
-
const setActualEnpf = useDebounceFn(async () => {
|
|
917
|
-
try {
|
|
918
|
-
await dataStore.api.file.setActualEnpf({ processId: String(formStore.applicationData.processInstanceId), isOnlineEnpfAgreement: isOnlineEnpf.value });
|
|
919
|
-
await dataStore.generateSign(String(route.params.taskId));
|
|
920
|
-
} catch (err) {
|
|
921
|
-
ErrorHandler(err);
|
|
922
|
-
}
|
|
923
|
-
currentFilePanel.value = [];
|
|
924
|
-
}, 1000);
|
|
925
|
-
|
|
926
910
|
return {
|
|
927
911
|
// State
|
|
928
912
|
formStore,
|
|
@@ -946,7 +930,6 @@ export default defineComponent({
|
|
|
946
930
|
email,
|
|
947
931
|
signOptions,
|
|
948
932
|
signingFiles,
|
|
949
|
-
isOnlineEnpf,
|
|
950
933
|
allDocumentsSigned,
|
|
951
934
|
currentFilePanel,
|
|
952
935
|
|
|
@@ -966,7 +949,6 @@ export default defineComponent({
|
|
|
966
949
|
handlePayAction,
|
|
967
950
|
payEpay,
|
|
968
951
|
convertQr,
|
|
969
|
-
setActualEnpf,
|
|
970
952
|
sendInvoiceToEmail,
|
|
971
953
|
hasConditionsAction,
|
|
972
954
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<label v-if="chip && chip.title" class="transition-all leading-6 px-3
|
|
2
|
+
<label v-if="chip && chip.title" class="transition-all leading-6 px-3 rounded-pill border-[1px] border-white mr-4 whitespace-nowrap" :class="[textSize, color]"
|
|
3
3
|
>{{ chip.title }}<v-tooltip v-if="chip.description" activator="parent" location="bottom" :max-width="maxWidth">{{ chip.description }}</v-tooltip></label
|
|
4
4
|
>
|
|
5
5
|
</template>
|
package/composables/classes.ts
CHANGED
|
@@ -825,7 +825,6 @@ export class ProductConditions {
|
|
|
825
825
|
fixInsSum: number | string | null;
|
|
826
826
|
calcDate: string | null;
|
|
827
827
|
contractEndDate: string | null;
|
|
828
|
-
currency: Value;
|
|
829
828
|
|
|
830
829
|
constructor(
|
|
831
830
|
insuranceCase = null,
|
|
@@ -874,7 +873,6 @@ export class ProductConditions {
|
|
|
874
873
|
fixInsSum = null,
|
|
875
874
|
calcDate = null,
|
|
876
875
|
contractEndDate = null,
|
|
877
|
-
currency = new Value(),
|
|
878
876
|
) {
|
|
879
877
|
this.requestedSumInsuredInDollar = null;
|
|
880
878
|
this.insurancePremiumPerMonthInDollar = null;
|
|
@@ -927,7 +925,6 @@ export class ProductConditions {
|
|
|
927
925
|
this.fixInsSum = fixInsSum;
|
|
928
926
|
this.calcDate = calcDate;
|
|
929
927
|
this.contractEndDate = contractEndDate;
|
|
930
|
-
this.currency = currency;
|
|
931
928
|
}
|
|
932
929
|
|
|
933
930
|
getSingleTripDays() {
|
|
@@ -1386,7 +1383,6 @@ export class FormStoreClass {
|
|
|
1386
1383
|
beneficiaryForm: boolean;
|
|
1387
1384
|
beneficialOwnerForm: boolean;
|
|
1388
1385
|
insuredForm: boolean;
|
|
1389
|
-
slaveInsuredForm: boolean;
|
|
1390
1386
|
policyholdersRepresentativeForm: boolean;
|
|
1391
1387
|
productConditionsForm: boolean;
|
|
1392
1388
|
calculatorForm: boolean;
|
|
@@ -1421,7 +1417,6 @@ export class FormStoreClass {
|
|
|
1421
1417
|
policyAppDto?: Types.PolicyAppDto;
|
|
1422
1418
|
insisWorkDataApp?: Types.InsisWorkDataApp;
|
|
1423
1419
|
addCoverDto?: Types.AddCover[];
|
|
1424
|
-
slave?: any;
|
|
1425
1420
|
};
|
|
1426
1421
|
policyholderForm: Member;
|
|
1427
1422
|
policyholderFormKey: StoreMembers.policyholderForm;
|
|
@@ -1434,7 +1429,6 @@ export class FormStoreClass {
|
|
|
1434
1429
|
beneficialOwnerFormIndex: number;
|
|
1435
1430
|
beneficialOwnerFormKey: StoreMembers.beneficialOwnerForm;
|
|
1436
1431
|
insuredForm: Member[];
|
|
1437
|
-
slaveInsuredForm: Member;
|
|
1438
1432
|
insuredFormKey: StoreMembers.insuredForm;
|
|
1439
1433
|
insuredFormIndex: number;
|
|
1440
1434
|
productConditionsForm: ProductConditions;
|
|
@@ -1511,7 +1505,6 @@ export class FormStoreClass {
|
|
|
1511
1505
|
beneficiaryForm: true,
|
|
1512
1506
|
beneficialOwnerForm: true,
|
|
1513
1507
|
insuredForm: true,
|
|
1514
|
-
slaveInsuredForm: true,
|
|
1515
1508
|
policyholdersRepresentativeForm: true,
|
|
1516
1509
|
productConditionsForm: true,
|
|
1517
1510
|
calculatorForm: true,
|
|
@@ -1540,7 +1533,6 @@ export class FormStoreClass {
|
|
|
1540
1533
|
this.beneficialOwnerFormIndex = 0;
|
|
1541
1534
|
this.beneficialOwnerFormKey = StoreMembers.beneficialOwnerForm;
|
|
1542
1535
|
this.insuredForm = [new Member()];
|
|
1543
|
-
this.slaveInsuredForm = new Member();
|
|
1544
1536
|
this.insuredFormKey = StoreMembers.insuredForm;
|
|
1545
1537
|
this.insuredFormIndex = 0;
|
|
1546
1538
|
this.productConditionsForm = new ProductConditions();
|
package/composables/constants.ts
CHANGED
|
@@ -36,7 +36,6 @@ export const constants = Object.freeze({
|
|
|
36
36
|
returnStatementStatuses: [
|
|
37
37
|
Statuses.ApproveForm,
|
|
38
38
|
Statuses.ActuaryForm,
|
|
39
|
-
Statuses.JuristForm,
|
|
40
39
|
Statuses.DsoUsnsForm,
|
|
41
40
|
Statuses.AccountantForm,
|
|
42
41
|
Statuses.UnderwriterForm,
|
|
@@ -163,20 +162,4 @@ export const constants = Object.freeze({
|
|
|
163
162
|
ids: '',
|
|
164
163
|
},
|
|
165
164
|
],
|
|
166
|
-
currencyList: [
|
|
167
|
-
{
|
|
168
|
-
code: 'KZT',
|
|
169
|
-
id: '1',
|
|
170
|
-
nameKz: 'Тенге',
|
|
171
|
-
nameRu: 'Тенге',
|
|
172
|
-
ids: '',
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
code: 'USD',
|
|
176
|
-
id: '2',
|
|
177
|
-
nameKz: 'С индексацией на курс USD',
|
|
178
|
-
nameRu: 'С индексацией на курс USD',
|
|
179
|
-
ids: '',
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
165
|
});
|
package/composables/index.ts
CHANGED
package/locales/ru.json
CHANGED
|
@@ -395,7 +395,6 @@
|
|
|
395
395
|
"insurancePremiumAmount": "Размер Страховой премии (страховой взнос) в тенге",
|
|
396
396
|
"insurancePremiumAmountInDollar": "Размер Страховой премии (страховой взнос) в долларах",
|
|
397
397
|
"dollarExchangeRateNBRK": "Курс доллара НБРК",
|
|
398
|
-
"exchangeRateSettlementDate": "Курс на дату расчета (USD/KZT)",
|
|
399
398
|
"contractDate": "Дата контракта",
|
|
400
399
|
"guaranteedTermAnnuityPayments": "Гарантированный срок аннуитетных выплат",
|
|
401
400
|
"guaranteedPeriod": "Укажите период гарантированного срока",
|
|
@@ -585,9 +584,7 @@
|
|
|
585
584
|
"signInProcessManager": "Договор будет подписан в течение минуты",
|
|
586
585
|
"transferRegNumber": "Номер и серия договора",
|
|
587
586
|
"contragentSelect": "Выбор контрагента",
|
|
588
|
-
"fileError": "Ошибка прикрепления файла"
|
|
589
|
-
"parentContractNextPay": "Возврат с учетом очередной выплаты",
|
|
590
|
-
"parentContractNextPayDate": "Очередная выплата по графику"
|
|
587
|
+
"fileError": "Ошибка прикрепления файла"
|
|
591
588
|
},
|
|
592
589
|
"agent": {
|
|
593
590
|
"currency": "Валюта",
|