hl-core 0.0.10-beta.61 → 0.0.10-beta.63
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 +8 -1
- package/components/Pages/MemberForm.vue +1 -1
- package/components/Pages/ProductConditions.vue +21 -5
- package/components/Panel/PanelHandler.vue +0 -1
- package/composables/classes.ts +3 -0
- package/composables/constants.ts +1 -0
- package/locales/kz.json +22 -20
- package/locales/ru.json +4 -2
- package/package.json +1 -1
- package/store/data.store.ts +14 -10
- package/store/rules.ts +4 -4
- package/types/index.ts +1 -0
package/api/base.api.ts
CHANGED
|
@@ -501,6 +501,13 @@ export class ApiClass {
|
|
|
501
501
|
url: `/${this.productUrl}/api/Application/IsRecalculate?processInstanceId=${id}`,
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
+
|
|
505
|
+
async availableToAccureStartEducationalCapital(id: string | number) {
|
|
506
|
+
return await this.axiosCall<boolean>({
|
|
507
|
+
method: Methods.GET,
|
|
508
|
+
url: `/${this.productUrl}/api/Application/AvailableToAccureStartEducationalCapital?processInstanceId=${id}`,
|
|
509
|
+
});
|
|
510
|
+
}
|
|
504
511
|
async checkCurrencyDate(id: string | number) {
|
|
505
512
|
return await this.axiosCall<boolean>({
|
|
506
513
|
method: Methods.GET,
|
|
@@ -1316,7 +1323,7 @@ export class ApiClass {
|
|
|
1316
1323
|
data: data,
|
|
1317
1324
|
});
|
|
1318
1325
|
},
|
|
1319
|
-
getSignedDocList: async (data: { processInstanceId: string | number }) => {
|
|
1326
|
+
getSignedDocList: async (data: { processInstanceId: string | number | undefined }) => {
|
|
1320
1327
|
return await this.axiosCall<IDocument[]>({
|
|
1321
1328
|
method: Methods.POST,
|
|
1322
1329
|
url: `${this.file.base}/api/Data/List`,
|
|
@@ -121,6 +121,14 @@
|
|
|
121
121
|
@append="openPanel($dataStore.t('productConditionsForm.riskGroup'), $dataStore.riskGroup, 'riskGroup')"
|
|
122
122
|
/>
|
|
123
123
|
</base-form-section>
|
|
124
|
+
<base-form-section v-if="hasEduCapitalConsent">
|
|
125
|
+
<base-form-toggle
|
|
126
|
+
v-model="productConditionsForm.accureStartEducationCapital"
|
|
127
|
+
:disabled="isDisabled"
|
|
128
|
+
:has-border="false"
|
|
129
|
+
:title="$dataStore.t('form.educationFundConsent')"
|
|
130
|
+
/>
|
|
131
|
+
</base-form-section>
|
|
124
132
|
<base-form-section v-if="hasDefault" :title="defaultText">
|
|
125
133
|
<div v-if="isCalculator && ($route.params.taskId === '0' || $dataStore.isCalculator || fromIndexPage)">
|
|
126
134
|
<base-form-input
|
|
@@ -1041,6 +1049,7 @@ export default defineComponent({
|
|
|
1041
1049
|
const amountRefunded = ref<string | number | null>(null);
|
|
1042
1050
|
const amountPaid = ref<string | number | null>(null);
|
|
1043
1051
|
const deletionDialog = ref<boolean>(false);
|
|
1052
|
+
const hasEduCapitalConsent = ref<boolean>(false);
|
|
1044
1053
|
|
|
1045
1054
|
const additionalTerms = ref<AddCover[]>([]);
|
|
1046
1055
|
|
|
@@ -1091,7 +1100,7 @@ export default defineComponent({
|
|
|
1091
1100
|
return disabilityGroup;
|
|
1092
1101
|
}
|
|
1093
1102
|
});
|
|
1094
|
-
const enpfNoteFile = computed(() => formStore.signedDocumentList.find(i => i.fileTypeCode === '8'));
|
|
1103
|
+
const enpfNoteFile = computed(() => formStore.signedDocumentList.find(i => i.fileTypeCode === '8' && i.iin === contragentData.value?.iin));
|
|
1095
1104
|
const isEnpfSum = pensionForm.value?.isEnpfSum ?? false;
|
|
1096
1105
|
|
|
1097
1106
|
const transferContracts = ref<TransferContract[]>([]);
|
|
@@ -1322,7 +1331,7 @@ export default defineComponent({
|
|
|
1322
1331
|
return baseCondition.concat(dataStore.rules.coverPeriodFrom3to20);
|
|
1323
1332
|
}
|
|
1324
1333
|
if (whichProduct.value === 'halykkazyna') {
|
|
1325
|
-
return baseCondition.concat(dataStore.rules.
|
|
1334
|
+
return baseCondition.concat(dataStore.rules.coverPeriodFrom1to20);
|
|
1326
1335
|
}
|
|
1327
1336
|
if (whichProduct.value === 'amuletlife') {
|
|
1328
1337
|
return baseCondition.concat(dataStore.rules.coverPeriodFrom1or5to15);
|
|
@@ -2317,10 +2326,13 @@ export default defineComponent({
|
|
|
2317
2326
|
if (file.type !== constants.fileTypes.pdf) {
|
|
2318
2327
|
return dataStore.showToaster('error', dataStore.t('toaster.onlyPDF'), 6000);
|
|
2319
2328
|
}
|
|
2320
|
-
const result = await dataStore.setOppvCount(
|
|
2329
|
+
const result = await dataStore.setOppvCount(
|
|
2330
|
+
{ file },
|
|
2331
|
+
isSlavePensionForm.value ? formStore.applicationData.slave.processInstanceId : formStore.applicationData.processInstanceId,
|
|
2332
|
+
);
|
|
2321
2333
|
if (typeof result === 'number') {
|
|
2322
2334
|
pensionForm.value.compulsoryProfMonthCount = result;
|
|
2323
|
-
await dataStore.getSignedDocList(formStore.applicationData.processInstanceId);
|
|
2335
|
+
await dataStore.getSignedDocList(formStore.applicationData.processInstanceId, formStore.applicationData.slave?.processInstanceId);
|
|
2324
2336
|
dataStore.showToaster('success', dataStore.t('toaster.successOperation'));
|
|
2325
2337
|
}
|
|
2326
2338
|
}
|
|
@@ -2353,7 +2365,7 @@ export default defineComponent({
|
|
|
2353
2365
|
dataStore.rightPanel.open = false;
|
|
2354
2366
|
dataStore.panelAction = null;
|
|
2355
2367
|
pensionForm.value.compulsoryProfMonthCount = '';
|
|
2356
|
-
await dataStore.getSignedDocList(formStore.applicationData.processInstanceId);
|
|
2368
|
+
await dataStore.getSignedDocList(formStore.applicationData.processInstanceId, formStore.applicationData.slave?.processInstanceId);
|
|
2357
2369
|
}
|
|
2358
2370
|
};
|
|
2359
2371
|
|
|
@@ -2430,6 +2442,9 @@ export default defineComponent({
|
|
|
2430
2442
|
}, 0),
|
|
2431
2443
|
);
|
|
2432
2444
|
}
|
|
2445
|
+
if (whichProduct.value === 'gons') {
|
|
2446
|
+
hasEduCapitalConsent.value = await dataStore.api.availableToAccureStartEducationalCapital(formStore.applicationData.processInstanceId);
|
|
2447
|
+
}
|
|
2433
2448
|
if (whichProduct.value === 'pensionannuitynew') {
|
|
2434
2449
|
contractDate.value = reformatDate(pensionForm.value.contractDate ?? '');
|
|
2435
2450
|
dateOfBegin.value = reformatDate(pensionForm.value.dateOfBegin);
|
|
@@ -2667,6 +2682,7 @@ export default defineComponent({
|
|
|
2667
2682
|
amountPaid,
|
|
2668
2683
|
amountRefunded,
|
|
2669
2684
|
transferMaxDate,
|
|
2685
|
+
hasEduCapitalConsent,
|
|
2670
2686
|
guaranteedPeriodList,
|
|
2671
2687
|
isFileActionsPanelOpen,
|
|
2672
2688
|
isEnpfSum,
|
|
@@ -546,7 +546,6 @@ export default defineComponent({
|
|
|
546
546
|
if (formStore.applicationData.pensionApp) {
|
|
547
547
|
const isOnlineEnpfAgreement = formStore.applicationData.pensionApp.isOnlineEnpfAgreement;
|
|
548
548
|
isOnlineEnpf.value = formStore.hasRepresentative ? false : true;
|
|
549
|
-
await dataStore.getSignedDocList(formStore.applicationData.processInstanceId);
|
|
550
549
|
}
|
|
551
550
|
}
|
|
552
551
|
};
|
package/composables/classes.ts
CHANGED
|
@@ -833,6 +833,7 @@ export class ProductConditions {
|
|
|
833
833
|
calcDate: string | null;
|
|
834
834
|
contractEndDate: string | null;
|
|
835
835
|
currency: Value;
|
|
836
|
+
accureStartEducationCapital: boolean;
|
|
836
837
|
|
|
837
838
|
constructor(
|
|
838
839
|
insuranceCase = null,
|
|
@@ -883,6 +884,7 @@ export class ProductConditions {
|
|
|
883
884
|
calcDate = null,
|
|
884
885
|
contractEndDate = null,
|
|
885
886
|
currency = new Value(),
|
|
887
|
+
accureStartEducationCapital = false,
|
|
886
888
|
) {
|
|
887
889
|
this.requestedSumInsuredInDollar = null;
|
|
888
890
|
this.insurancePremiumPerMonthInDollar = null;
|
|
@@ -937,6 +939,7 @@ export class ProductConditions {
|
|
|
937
939
|
this.calcDate = calcDate;
|
|
938
940
|
this.contractEndDate = contractEndDate;
|
|
939
941
|
this.currency = currency;
|
|
942
|
+
this.accureStartEducationCapital = accureStartEducationCapital;
|
|
940
943
|
}
|
|
941
944
|
|
|
942
945
|
getSingleTripDays() {
|
package/composables/constants.ts
CHANGED
package/locales/kz.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"error": {
|
|
23
23
|
"title": "Қате 404",
|
|
24
|
-
"description": "Сіз сұраған бет жоқ немесе
|
|
24
|
+
"description": "Сіз сұраған бет жоқ немесе ескірген",
|
|
25
25
|
"connectionLost": "Интернет байланысы жоқ",
|
|
26
26
|
"checkConnection": "Байланысты тексеріңіз",
|
|
27
27
|
"noOtpResponse": "OTP кодын жіберген кезде жауап жоқ",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"deleteAML": "Алып тасталсын",
|
|
168
168
|
"deleteRelative": "Туысын алып тастау",
|
|
169
169
|
"editRelative": "Туысқанды өзгерту",
|
|
170
|
-
"userLogin": "
|
|
170
|
+
"userLogin": "Логин",
|
|
171
171
|
"password": "Пароль",
|
|
172
172
|
"login": "Жүйеге кіру",
|
|
173
173
|
"exit": "Шығу",
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"riskGroup": "Тәуекел тобы",
|
|
412
412
|
"requestedProductConditions": "Сұратылған сақтандыру шарттары",
|
|
413
413
|
"coverPeriodFrom3to20": "Сақтандыру мерзімі (3 жылдан 20 жылға дейін)",
|
|
414
|
-
"
|
|
414
|
+
"coverPeriodFrom1to20": "Сақтандыру мерзімі (1 жылдан 20 жылға дейін)",
|
|
415
415
|
"coverPeriodFrom1or5to15": "Сақтандыру мерзімі (1 жыл немесе 5 жылдан 15 жылға дейін)",
|
|
416
416
|
"insurancePremiumAmount": "Сақтандыру сыйлықақысының (сақтандыру жарнасының) теңгедегі мөлшері",
|
|
417
417
|
"insurancePremiumAmountInDollar": "Сақтандыру сыйлықақысының (сақтандыру жарнасының) доллардағы мөлшері",
|
|
@@ -759,12 +759,12 @@
|
|
|
759
759
|
"premiumSum": "Сыйлықақы сомасы",
|
|
760
760
|
"department": "Департамент",
|
|
761
761
|
"fromDate": "Бастап күні",
|
|
762
|
-
"toDate": "
|
|
762
|
+
"toDate": "Аяқталған күні",
|
|
763
763
|
"newVersion": "Жаңа нұсқа",
|
|
764
764
|
"code": "Код",
|
|
765
765
|
"codes": "Кодтар",
|
|
766
766
|
"listType": "Тізім түрі",
|
|
767
|
-
"editDate": "
|
|
767
|
+
"editDate": "Өзгертілген күні",
|
|
768
768
|
"addDate": "Қосылған күні",
|
|
769
769
|
"type": "Түрі",
|
|
770
770
|
"number": "Нөмір",
|
|
@@ -879,23 +879,23 @@
|
|
|
879
879
|
"rules": {
|
|
880
880
|
"required": "Толтыру міндетті",
|
|
881
881
|
"fileRequired": "Файл міндетті",
|
|
882
|
-
"cyrillic": "
|
|
883
|
-
"latin": "
|
|
884
|
-
"email": "Қате электрондық пошта
|
|
885
|
-
"numbers": "
|
|
886
|
-
"latinAndNumber": "
|
|
887
|
-
"latinNumberSymbol": "
|
|
888
|
-
"numbersSymbols": "
|
|
889
|
-
"ageExceeds": "
|
|
882
|
+
"cyrillic": "Тек кириллица таңбалары болуы керек",
|
|
883
|
+
"latin": "Тек латын таңбалары болуы керек",
|
|
884
|
+
"email": "Қате электрондық пошта",
|
|
885
|
+
"numbers": "Тек сандар болуы керек",
|
|
886
|
+
"latinAndNumber": "Тек сандар мен латын таңбалары болуы керек",
|
|
887
|
+
"latinNumberSymbol": "Тек сандар мен латын әріптерін, таңбаларды(/,-) қамтуы керек",
|
|
888
|
+
"numbersSymbols": "Сандар болуы керек",
|
|
889
|
+
"ageExceeds": "Жасы 50 жастан аспауы керек",
|
|
890
890
|
"ageExceeds80": "Жасы 80 жастан аспауы керек",
|
|
891
891
|
"age18": "Контрагент кәмелетке толған болуы керек",
|
|
892
|
-
"sums": "
|
|
892
|
+
"sums": "Тек сандар болуы керек",
|
|
893
893
|
"iinRight": "ЖСН/БСН 12 цифрдан тұруы тиіс",
|
|
894
|
-
"onlySymbols": "
|
|
894
|
+
"onlySymbols": "Нөмір болмауы керек",
|
|
895
895
|
"phoneFormat": "Телефон нөмірі 11 нөмірден тұруы керек",
|
|
896
896
|
"date": "Күннің форматы дұрыс емес",
|
|
897
|
-
"age": "
|
|
898
|
-
"exceedDate": "
|
|
897
|
+
"age": "Тек сан болуы керек",
|
|
898
|
+
"exceedDate": "Дата бүгінгі күннен аспауы керек",
|
|
899
899
|
"coverPeriod": "Сақтандырудың ең төменгі мерзімі 5 жыл",
|
|
900
900
|
"fillData": "Мәліметтерді толтырыңыз",
|
|
901
901
|
"requestedSumInsuredMycar": "Максималды сома 60 миллионнан аспауы керек",
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
"guaranteedPeriodLimit": "Кепілдендірілген мерзім аннуитеттік төлемдер мерзімінен аспауы керек",
|
|
907
907
|
"noResidentOffline": "Резидент еместі оффлайн рәсімдеу үшін филиалға хабарласыңыз",
|
|
908
908
|
"calculationPreliminary": "Есептеу алдын ала. Барлық қажетті деректерді толтыру қажет",
|
|
909
|
-
"planDate": "
|
|
909
|
+
"planDate": "Дата бүгінгі күннен асуы керек",
|
|
910
910
|
"iik": "ЖСК 20 таңбадан тұруы керек",
|
|
911
911
|
"dataInPast": "Құжаттың қолданылу мерзімі аяқталды",
|
|
912
912
|
"agentCommission": "Агенттік комиссия 50-ден аспауы тиіс",
|
|
@@ -914,7 +914,7 @@
|
|
|
914
914
|
"checkDate": "Дұрыс күнді көрсетіңіз",
|
|
915
915
|
"searchQueryLen": "Лауазымды іздеу кем дегенде {len} таңбаларының сұранысы бойынша жүргізілуі керек",
|
|
916
916
|
"fixInsSumLimit": "Тіркелген сома {sum}теңгеден аспауы тиіс",
|
|
917
|
-
"invalidKazakhPassport": "
|
|
917
|
+
"invalidKazakhPassport": "Паспорт нөмері дұрыс емес",
|
|
918
918
|
"lengthLimit": "Таңбалар шегі асып кетті. Ұзындығы {len} таңбадан аспайтын мәтінді енгізіңіз"
|
|
919
919
|
},
|
|
920
920
|
"code": "КЭС",
|
|
@@ -957,6 +957,7 @@
|
|
|
957
957
|
"fullName": "АТЫ-жөні",
|
|
958
958
|
"notChosen": "Таңдалған жоқ",
|
|
959
959
|
"personalData": "Дербес деректер",
|
|
960
|
+
"applicantRepresentative": "Өтініш берушінің өкілі",
|
|
960
961
|
"iin": "ЖСН",
|
|
961
962
|
"lastName": "Тегі",
|
|
962
963
|
"firstName": "Аты",
|
|
@@ -1055,7 +1056,8 @@
|
|
|
1055
1056
|
"individualOwnerData": "ЖК иесінің деректері",
|
|
1056
1057
|
"chooseChild": "Баланы таңдаңыз",
|
|
1057
1058
|
"addChild": "Баланы қосу",
|
|
1058
|
-
"addBeneficiary": "Бенефициарды қосу"
|
|
1059
|
+
"addBeneficiary": "Бенефициарды қосу",
|
|
1060
|
+
"educationFundConsent": "Бастапқы білім беру капиталының есептелуіне келісемін"
|
|
1059
1061
|
},
|
|
1060
1062
|
"bankDetailsForm": {
|
|
1061
1063
|
"title": "Банктік деректемелер",
|
package/locales/ru.json
CHANGED
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"riskGroup": "Группа риска",
|
|
413
413
|
"requestedProductConditions": "Запрашиваемые условия страхования",
|
|
414
414
|
"coverPeriodFrom3to20": "Срок страхования (от 3-х до 20 лет)",
|
|
415
|
-
"
|
|
415
|
+
"coverPeriodFrom1to20": "Срок страхования (от 1 до 20 лет)",
|
|
416
416
|
"coverPeriodFrom1or5to15": "Срок страхования (1 год или от 5 до 15 лет)",
|
|
417
417
|
"insurancePremiumAmount": "Размер Страховой премии (страховой взнос) в тенге",
|
|
418
418
|
"insurancePremiumAmountInDollar": "Размер Страховой премии (страховой взнос) в долларах",
|
|
@@ -963,6 +963,7 @@
|
|
|
963
963
|
"fullName": "ФИО",
|
|
964
964
|
"notChosen": "Не выбран",
|
|
965
965
|
"personalData": "Персональные данные",
|
|
966
|
+
"applicantRepresentative": "Представитель заявителя",
|
|
966
967
|
"iin": "ИИН",
|
|
967
968
|
"lastName": "Фамилия",
|
|
968
969
|
"firstName": "Имя",
|
|
@@ -1061,7 +1062,8 @@
|
|
|
1061
1062
|
"individualOwnerData": "Данные владельца ИП",
|
|
1062
1063
|
"chooseChild": "Выберите ребёнка",
|
|
1063
1064
|
"addChild": "Добавить ребёнка",
|
|
1064
|
-
"addBeneficiary": "Добавить выгодоприобретателя"
|
|
1065
|
+
"addBeneficiary": "Добавить выгодоприобретателя",
|
|
1066
|
+
"educationFundConsent": "Согласен на начисление стартового образовательного капитала",
|
|
1065
1067
|
},
|
|
1066
1068
|
"bankDetailsForm": {
|
|
1067
1069
|
"title": "Банковские реквизиты",
|
package/package.json
CHANGED
package/store/data.store.ts
CHANGED
|
@@ -1146,6 +1146,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1146
1146
|
if (isNaN(String(this.formStore.productConditionsForm.insurancePremiumPerMonth).replace(/\s/g, ''))) {
|
|
1147
1147
|
conditionsData.policyAppDto.premium = parseFloat(String(this.formStore.productConditionsForm.insurancePremiumPerMonth).replace(/\s/g, '').replace(',', '.'));
|
|
1148
1148
|
}
|
|
1149
|
+
conditionsData.policyAppDto.accureStartEducationCapital = this.formStore.productConditionsForm.accureStartEducationCapital;
|
|
1149
1150
|
}
|
|
1150
1151
|
if (this.isLiferenta) {
|
|
1151
1152
|
conditionsData.policyAppDto.guaranteedPaymentPeriod = this.formStore.productConditionsForm.guaranteedPeriod || 0;
|
|
@@ -2125,10 +2126,10 @@ export const useDataStore = defineStore('data', {
|
|
|
2125
2126
|
this.isLoading = false;
|
|
2126
2127
|
}
|
|
2127
2128
|
},
|
|
2128
|
-
async setOppvCount(data: any) {
|
|
2129
|
+
async setOppvCount(data: any, processInstanceId: string) {
|
|
2129
2130
|
this.isLoading = true;
|
|
2130
2131
|
try {
|
|
2131
|
-
const response = await this.api.pensionannuityNew.setOppvCount(
|
|
2132
|
+
const response = await this.api.pensionannuityNew.setOppvCount(processInstanceId, data);
|
|
2132
2133
|
if (response.oppvCount === 0 && response.errocCode !== 0) {
|
|
2133
2134
|
return ErrorHandler(response.errorMsg);
|
|
2134
2135
|
} else {
|
|
@@ -2520,6 +2521,7 @@ export const useDataStore = defineStore('data', {
|
|
|
2520
2521
|
this.formStore.productConditionsForm.statePremium7 = this.getNumberWithSpaces(govPremiums.statePremium7 === null ? null : govPremiums.statePremium7);
|
|
2521
2522
|
const currency = constants.currencyList.find(item => item.code === applicationData.policyAppDto.currency);
|
|
2522
2523
|
this.formStore.productConditionsForm.currency = currency ? currency : new Value();
|
|
2524
|
+
this.formStore.productConditionsForm.accureStartEducationCapital = applicationData.policyAppDto.accureStartEducationCapital;
|
|
2523
2525
|
}
|
|
2524
2526
|
|
|
2525
2527
|
if (this.isKazyna || this.isGons) {
|
|
@@ -3084,15 +3086,17 @@ export const useDataStore = defineStore('data', {
|
|
|
3084
3086
|
this.isLoading = false;
|
|
3085
3087
|
}
|
|
3086
3088
|
},
|
|
3087
|
-
async getSignedDocList(
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3089
|
+
async getSignedDocList(...processInstanceIds: (string | number | undefined)[]) {
|
|
3090
|
+
const validIds = processInstanceIds.filter(id => id && id !== 0);
|
|
3091
|
+
try {
|
|
3092
|
+
for (const id of validIds) {
|
|
3093
|
+
const result = await this.api.file.getSignedDocList({ processInstanceId: id });
|
|
3094
|
+
const existingIds = new Set(this.formStore.signedDocumentList.map(doc => doc.id));
|
|
3095
|
+
const newDocs = result.filter(doc => !existingIds.has(doc.id));
|
|
3096
|
+
this.formStore.signedDocumentList.push(...newDocs);
|
|
3095
3097
|
}
|
|
3098
|
+
} catch (err) {
|
|
3099
|
+
console.log(err);
|
|
3096
3100
|
}
|
|
3097
3101
|
},
|
|
3098
3102
|
setFormsDisabled(isDisabled: boolean) {
|
package/store/rules.ts
CHANGED
|
@@ -170,15 +170,15 @@ export const rules = {
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
],
|
|
173
|
-
|
|
173
|
+
coverPeriodFrom1to20: [
|
|
174
174
|
(v: any) => {
|
|
175
175
|
if (v !== null) {
|
|
176
|
-
if (v <
|
|
177
|
-
return t('productConditionsForm.
|
|
176
|
+
if (v < 1 || v > 20) {
|
|
177
|
+
return t('productConditionsForm.coverPeriodFrom1to20');
|
|
178
178
|
}
|
|
179
179
|
return true;
|
|
180
180
|
} else {
|
|
181
|
-
return t('productConditionsForm.
|
|
181
|
+
return t('productConditionsForm.coverPeriodFrom1to20');
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
],
|