hl-core 0.0.10-beta.59 → 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.
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
<base-panel-input
|
|
145
145
|
v-if="hasGender"
|
|
146
146
|
v-model="productConditionsForm.gender"
|
|
147
|
-
:value="productConditionsForm.gender?.nameRu"
|
|
147
|
+
:value="locale === 'ru' ? productConditionsForm.gender?.nameRu : productConditionsForm.gender?.nameKz"
|
|
148
148
|
:readonly="isDisabled"
|
|
149
149
|
:clearable="!isDisabled"
|
|
150
150
|
:label="$dataStore.t('form.gender')"
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
<base-panel-input
|
|
157
157
|
v-if="hasCurrency"
|
|
158
158
|
v-model="productConditionsForm.currency"
|
|
159
|
-
:value="productConditionsForm.currency.nameRu"
|
|
159
|
+
:value="locale === 'ru' ? productConditionsForm.currency.nameRu : productConditionsForm.currency.nameKz"
|
|
160
160
|
:readonly="isDisabled"
|
|
161
161
|
:clearable="!isDisabled"
|
|
162
162
|
:label="$dataStore.t('agent.currency')"
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
<base-panel-input
|
|
197
197
|
v-if="hasPaymentPeriod"
|
|
198
198
|
v-model="productConditionsForm.paymentPeriod"
|
|
199
|
-
:value="productConditionsForm.paymentPeriod?.nameRu"
|
|
199
|
+
:value="locale === 'ru' ? productConditionsForm.paymentPeriod?.nameRu : productConditionsForm.paymentPeriod?.nameKz"
|
|
200
200
|
:readonly="isDisabledPaymentPeriod"
|
|
201
201
|
:clearable="!isDisabledPaymentPeriod"
|
|
202
202
|
:rules="$rules.objectRequired"
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
<base-panel-input
|
|
795
795
|
v-if="filterTermConditions(term)"
|
|
796
796
|
v-model="additionalTerms[index]"
|
|
797
|
-
:value="term.coverSumName"
|
|
797
|
+
:value="locale === 'ru' ? term.coverSumName : term.coverSumNameKz"
|
|
798
798
|
:readonly="isTermsDisabled"
|
|
799
799
|
:clearable="false"
|
|
800
800
|
:label="coverTypeName(term)"
|
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
<base-panel-select-item
|
|
895
895
|
v-for="(item, index) of panelList.filter(i => i.nameRu && (i.nameRu as string).match(new RegExp(searchQuery, 'i')))"
|
|
896
896
|
:key="index"
|
|
897
|
-
:text="String(item.nameRu)"
|
|
897
|
+
:text="locale === 'ru' ? String(item.nameRu) : String(item.nameKz)"
|
|
898
898
|
:selected="item.nameRu === panelValue.nameRu"
|
|
899
899
|
@click="pickPanelValue(item)"
|
|
900
900
|
/>
|
|
@@ -940,7 +940,13 @@
|
|
|
940
940
|
</v-expansion-panel-text>
|
|
941
941
|
</v-expansion-panel>
|
|
942
942
|
</v-expansion-panels>
|
|
943
|
-
<base-panel-select-item
|
|
943
|
+
<base-panel-select-item
|
|
944
|
+
v-else
|
|
945
|
+
:key="index"
|
|
946
|
+
:text="locale === 'ru' ? String(item.nameRu) : String(item.nameKz)"
|
|
947
|
+
:selected="item.nameRu === termValue?.coverSumName"
|
|
948
|
+
@click="pickTermValue(item)"
|
|
949
|
+
/>
|
|
944
950
|
</div>
|
|
945
951
|
</div>
|
|
946
952
|
<base-loader v-if="isPanelLoading" class="absolute mt-10" :size="50" />
|
|
@@ -981,6 +987,7 @@
|
|
|
981
987
|
<script lang="ts">
|
|
982
988
|
import { Member, Value, CountryValue, CalculatorForm, TransferContract, DocumentItem } from '../../composables/classes';
|
|
983
989
|
import type { Projects, AddCover, AddCoverAnswer, FileActions } from '../../types';
|
|
990
|
+
import { useI18n } from 'vue-i18n';
|
|
984
991
|
|
|
985
992
|
type PensionCalculation = {
|
|
986
993
|
compulsoryContractAmount: number | string | null;
|
|
@@ -1009,6 +1016,7 @@ export default defineComponent({
|
|
|
1009
1016
|
const formStore = useFormStore();
|
|
1010
1017
|
const dataStore = useDataStore();
|
|
1011
1018
|
const memberStore = useMemberStore();
|
|
1019
|
+
const { locale } = useI18n();
|
|
1012
1020
|
|
|
1013
1021
|
const whichProduct = ref<Projects | null>(dataStore.isCalculator ? props.product : dataStore.product!);
|
|
1014
1022
|
const isCalculating = ref<boolean>(false);
|
|
@@ -1653,6 +1661,7 @@ export default defineComponent({
|
|
|
1653
1661
|
|
|
1654
1662
|
additionalTerms.value[currentIndex.value].coverSumId = item.id as string;
|
|
1655
1663
|
additionalTerms.value[currentIndex.value].coverSumName = item.nameRu as string;
|
|
1664
|
+
additionalTerms.value[currentIndex.value].coverSumNameKz = item.nameKz as string;
|
|
1656
1665
|
|
|
1657
1666
|
if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
|
|
1658
1667
|
if (termValue.value && item.code === 'fixedinssum') {
|
|
@@ -1990,7 +1999,7 @@ export default defineComponent({
|
|
|
1990
1999
|
if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
|
|
1991
2000
|
return String(term.coverTypeNameRu);
|
|
1992
2001
|
}
|
|
1993
|
-
return term.coverTypeName;
|
|
2002
|
+
return locale.value === 'ru' ? term.coverTypeName ?? '' : term.coverTypeNameKz ?? '';
|
|
1994
2003
|
};
|
|
1995
2004
|
|
|
1996
2005
|
const addTransferContract = () => {
|
|
@@ -2036,7 +2045,12 @@ export default defineComponent({
|
|
|
2036
2045
|
};
|
|
2037
2046
|
|
|
2038
2047
|
const submitForm = async () => {
|
|
2039
|
-
if (
|
|
2048
|
+
if (
|
|
2049
|
+
whichProduct.value === 'pensionannuitynew' &&
|
|
2050
|
+
(formStore.applicationData.statusCode === 'StartForm' ||
|
|
2051
|
+
formStore.applicationData.statusCode === 'EditForm' ||
|
|
2052
|
+
formStore.applicationData.statusCode === 'EditBeneficiaryForm')
|
|
2053
|
+
) {
|
|
2040
2054
|
if (!enpfNoteFile.value) {
|
|
2041
2055
|
dataStore.showToaster('error', 'Необходимо вложить Выписка ЕНПФ');
|
|
2042
2056
|
return;
|
|
@@ -2618,6 +2632,7 @@ export default defineComponent({
|
|
|
2618
2632
|
// State
|
|
2619
2633
|
formStore,
|
|
2620
2634
|
vForm,
|
|
2635
|
+
locale,
|
|
2621
2636
|
isLoading,
|
|
2622
2637
|
whichProduct,
|
|
2623
2638
|
productConditionsForm,
|
package/composables/classes.ts
CHANGED
|
@@ -1276,7 +1276,7 @@ export class DataStoreClass {
|
|
|
1276
1276
|
this.ipdl = [new Value(1, null), new Value(2, 'Да'), new Value(3, 'Нет')];
|
|
1277
1277
|
this.economySectorCode = [];
|
|
1278
1278
|
this.economicActivityType = [];
|
|
1279
|
-
this.gender = [new Value(0, null), new Value(1, 'Мужской'), new Value(2, 'Женский')];
|
|
1279
|
+
this.gender = [new Value(0, null), new Value(1, 'Мужской', 'Ер'), new Value(2, 'Женский', 'Әйел')];
|
|
1280
1280
|
this.authorityBasis = [];
|
|
1281
1281
|
this.fontSize = 14;
|
|
1282
1282
|
this.isFontChangerOpen = false;
|
package/composables/constants.ts
CHANGED
|
@@ -315,14 +315,14 @@ export const constants = Object.freeze({
|
|
|
315
315
|
{
|
|
316
316
|
code: 'KZT',
|
|
317
317
|
id: '1',
|
|
318
|
-
nameKz: '
|
|
318
|
+
nameKz: 'Теңге',
|
|
319
319
|
nameRu: 'Тенге',
|
|
320
320
|
ids: '',
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
code: 'USD',
|
|
324
324
|
id: '2',
|
|
325
|
-
nameKz: '
|
|
325
|
+
nameKz: 'USD бағамына индексациямен',
|
|
326
326
|
nameRu: 'С индексацией на курс USD',
|
|
327
327
|
ids: '',
|
|
328
328
|
},
|
package/package.json
CHANGED
package/store/data.store.ts
CHANGED
|
@@ -1360,7 +1360,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1360
1360
|
if (this.isLifetrip) return await this.getFromApi('dicAllCountries', 'getArmDicts', 'DicCountry');
|
|
1361
1361
|
},
|
|
1362
1362
|
async getDicTripType() {
|
|
1363
|
-
if (this.isLifetrip) return await this.getFromApi('types', 'getArmDicts', 'DicTripType');
|
|
1363
|
+
if (this.isLifetrip || this.isCalculator) return await this.getFromApi('types', 'getArmDicts', 'DicTripType');
|
|
1364
1364
|
},
|
|
1365
1365
|
async getDicTripPurpose() {
|
|
1366
1366
|
if (this.isLifetrip) return await this.getFromApi('purposes', 'getArmDicts', 'DicTripPurpose');
|
|
@@ -1502,7 +1502,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1502
1502
|
if (this.isPension) return await this.getFromApi('transferContractCompanies', 'getInsuranceCompanies');
|
|
1503
1503
|
},
|
|
1504
1504
|
async getProcessIndexRate() {
|
|
1505
|
-
const makeCall = (this.isBaiterek || this.isBolashak || this.isGons) && this.processCode;
|
|
1505
|
+
const makeCall = (this.isBaiterek || this.isBolashak || this.isGons || this.isCalculator) && this.processCode;
|
|
1506
1506
|
if (makeCall) return await this.getFromApi('processIndexRate', 'getProcessIndexRate', this.processCode);
|
|
1507
1507
|
},
|
|
1508
1508
|
async getProcessPaymentPeriod() {
|
|
@@ -1520,7 +1520,7 @@ export const useDataStore = defineStore('data', {
|
|
|
1520
1520
|
return await this.getFromApi('dicAnnuityTypeList', 'getDicAnnuityTypeList');
|
|
1521
1521
|
},
|
|
1522
1522
|
async getProcessAnnuityPaymentPeriod() {
|
|
1523
|
-
const makeCall = this.isLiferenta && this.processCode;
|
|
1523
|
+
const makeCall = (this.isLiferenta || this.isCalculator) && this.processCode;
|
|
1524
1524
|
if (makeCall) return await this.getFromApi('processAnnuityPaymentPeriod', 'getProcessAnnuityPaymentPeriod', this.processCode);
|
|
1525
1525
|
},
|
|
1526
1526
|
async getInsurancePay() {
|