From cef9c7bc781e8aea8e14e9e89c5615889e29e739 Mon Sep 17 00:00:00 2001
From: merelendor
Date: Mon, 5 Sep 2022 19:37:16 +0300
Subject: [PATCH 1/2] updates
---
pages/components/Header/index.js | 1 +
.../change/components/Comparison/index.js | 10 +++++-
pages/contract/components/InnerMenu/index.js | 24 +++++++-------
pages/settings/admin.js | 2 +-
pages/settings/components/InnerMenu/index.js | 33 +++++++++++++++----
pages/support/components/InnerMenu/index.js | 26 ++++++++++++---
.../components/SuccessMessage/index.js | 2 +-
7 files changed, 71 insertions(+), 27 deletions(-)
diff --git a/pages/components/Header/index.js b/pages/components/Header/index.js
index 3c3bd05..f55d7e7 100644
--- a/pages/components/Header/index.js
+++ b/pages/components/Header/index.js
@@ -53,6 +53,7 @@ class Header extends React.Component
if (route.indexOf("/documents/") > -1) return "Взаиморасчеты и закрывающие документы";
if (route.indexOf("/settings/") > -1) return "Настройки";
if (route.indexOf("/contract") === 0) return "Договоры";
+ if (route.indexOf("/support") === 0) return "Обращения";
return null;
};
diff --git a/pages/contract/change/components/Comparison/index.js b/pages/contract/change/components/Comparison/index.js
index e8d0117..654fe4f 100644
--- a/pages/contract/change/components/Comparison/index.js
+++ b/pages/contract/change/components/Comparison/index.js
@@ -96,6 +96,14 @@ export default class Comparison extends React.Component
this.setState({ show_previous: true });
}
+ _handle_onDownloadPDF = () =>
+ {
+ console.log("this.props");
+ console.log(this.props);
+ console.log("this.state");
+ console.log(this.state);
+ }
+
render()
{
const { calculation, mixed_index, today, show_previous, signatories_show_all } = this.state;
@@ -108,7 +116,7 @@ export default class Comparison extends React.Component
Выбранный(ые) варианты изменения графика
Вернуться к параметрам изменения графика
- Скачать PDF
+ Скачать PDF
{ calculation !== undefined && calculation !== null && calculation.fix_last_payment_available_comment !== null && (
diff --git a/pages/contract/components/InnerMenu/index.js b/pages/contract/components/InnerMenu/index.js
index 67a153e..387bde4 100644
--- a/pages/contract/components/InnerMenu/index.js
+++ b/pages/contract/components/InnerMenu/index.js
@@ -15,18 +15,11 @@ export default class InnerMenu extends React.Component
};
}
- _handle_onToggleMenu = () =>
- {
- this.setState({
- menuOpened: !this.state.menuOpened,
- });
- };
-
componentDidMount()
{
let l = 0;
let m = 0;
- const menu = ["payments", "services", "agreement", "documents", "materials","events","change"];
+ const menu = ["payments", "services", "agreement", "documents", "materials", "events", "change"];
for(let i in menu)
{
@@ -44,6 +37,13 @@ export default class InnerMenu extends React.Component
this.menuRef.current.scrollLeft = l - 50;
}
+ _handle_onToggleMenu = () =>
+ {
+ this.setState({
+ menuOpened: !this.state.menuOpened,
+ });
+ };
+
_getActiveLink = (route) =>
{
if (route.indexOf("/payments") > -1) return "График платежей";
@@ -60,15 +60,15 @@ export default class InnerMenu extends React.Component
render()
{
- const { menuOpened, count_events, count_fines } = this.state;
const { number, status } = this.props;
+ const { menuOpened, count_events, count_fines } = this.state;
return (
-
- { this.props.router && this._getActiveLink(this.props.router.route) }
+
+ { this.props.router && this._getActiveLink(this.props.router.asPath) }
-
+
-1 ? "active" : "" }>График платежей
diff --git a/pages/settings/admin.js b/pages/settings/admin.js
index 6c2860d..2f06b8a 100644
--- a/pages/settings/admin.js
+++ b/pages/settings/admin.js
@@ -423,7 +423,7 @@ class AdminPage extends React.Component
return (
{ entry.name } (Вы)
-
{ entry.email } [{user.email}]
+
{ entry.email }
{ entry.is_admin ? "Администратор" : "Пользователь" }
Все организации
{ entry.is_admin ? "Активен" : entry.last !== null ? "Активен" : "Приглашен" }
diff --git a/pages/settings/components/InnerMenu/index.js b/pages/settings/components/InnerMenu/index.js
index 3e89123..260ffb8 100644
--- a/pages/settings/components/InnerMenu/index.js
+++ b/pages/settings/components/InnerMenu/index.js
@@ -12,12 +12,11 @@ export default class InnerMenu extends React.Component
constructor(props)
{
super(props);
+ this.state = {
+ menuOpened: false,
+ };
+
this.menuRef = React.createRef();
-
- menu.forEach(item =>
- {
- this[item.id] = React.createRef();
- });
}
componentDidMount()
@@ -41,6 +40,22 @@ export default class InnerMenu extends React.Component
this.menuRef.current.scrollLeft = l - 50;
}
+ _handle_onToggleMenu = () =>
+ {
+ this.setState({
+ menuOpened: !this.state.menuOpened,
+ });
+ };
+
+ _getActiveLink = (route) =>
+ {
+ if (route.indexOf("/phone") > -1) return "Номер телефона";
+ if (route.indexOf("/password") > -1) return "Пароль";
+ if (route.indexOf("/admin") > -1) return "Настройки доступа";
+
+ return null;
+ };
+
scrollToCategory = id => {
};
@@ -48,16 +63,20 @@ export default class InnerMenu extends React.Component
render()
{
const { user, observer } = this.props;
+ const { menuOpened, } = this.state;
return (
-
+
+ { this.props.router && this._getActiveLink(this.props.router.asPath) }
+
+
{ menu.map(item =>
{
if(item.type === "admin" && !observer && !user.is_admin) { return null; }
return (
- this.scrollToCategory(item.id)}>
+
-1)
+ if(this.props.router.asPath.indexOf(menu[i].link) > -1)
{
m = i;
}
@@ -43,6 +42,21 @@ class InnerMenu extends React.Component
this.menuRef.current.scrollLeft = l - 50;
}
+ _handle_onToggleMenu = () =>
+ {
+ this.setState({
+ menuOpened: !this.state.menuOpened,
+ });
+ };
+
+ _getActiveLink = (route) =>
+ {
+ if (route.indexOf("/faq") > -1) return "FAQ";
+ if (route.indexOf("/appeals") > -1) return "Мои обращения";
+
+ return null;
+ };
+
_handle_onNewAppeal = () =>
{
this.props.router.push('/support/request/');
@@ -50,13 +64,15 @@ class InnerMenu extends React.Component
render()
{
- const { appeals } = this.state;
+ const { menuOpened, appeals } = this.state;
const { number } = this.props;
return (
- Меню
-
+
+ { this.props.router && this._getActiveLink(this.props.router.asPath) }
+
+
-1 ? "active" : "" }>FAQ
diff --git a/pages/support/components/SuccessMessage/index.js b/pages/support/components/SuccessMessage/index.js
index 4da5903..42f1084 100644
--- a/pages/support/components/SuccessMessage/index.js
+++ b/pages/support/components/SuccessMessage/index.js
@@ -19,7 +19,7 @@ export default class SuccessMessage extends React.Component
{ comment }
-
Сообщение успешно отправлено, ожидайте, пожалуйста, ответа от ответсвенного сотрудника Отдела по работе с клиентами. Перейти к списку обращений
+
Сообщение успешно отправлено, ожидайте, пожалуйста, ответа от ответственного сотрудника Службы клиентского сервиса. После обработки обращение появится в списке обращений.
);
From 7fb9ba59d72dc51d1ee31a9b0ed30d6102bcf9f5 Mon Sep 17 00:00:00 2001
From: merelendor
Date: Tue, 6 Sep 2022 07:44:21 +0300
Subject: [PATCH 2/2] fixes for graphic comparison
---
.../Events/NotificationMessage/index.js | 2 +-
.../change/components/Comparison/index.js | 194 +++++++++-----
pages/contract/components/InnerMenu/index.js | 2 +-
pages/contract/services.js | 238 +++++++++---------
pages/settings/components/InnerMenu/index.js | 1 +
pages/support/components/InnerMenu/index.js | 1 +
6 files changed, 262 insertions(+), 176 deletions(-)
diff --git a/pages/components/Events/NotificationMessage/index.js b/pages/components/Events/NotificationMessage/index.js
index 14db0de..181faba 100644
--- a/pages/components/Events/NotificationMessage/index.js
+++ b/pages/components/Events/NotificationMessage/index.js
@@ -110,7 +110,7 @@ export default class NotificationMessage extends React.Component
{
return (
- Сформировано новое ДС №{ event.add_info} от { moment(event.event_date).format("DD.MM.YYYY") } по договору №{ event.contract_number }. Срок подписания (НЕТ ДАТЫ).
+ Сформировано новое ДС №{ event.add_info} от { moment(event.event_date).format("DD.MM.YYYY") } по договору №{ event.contract_number }.
{ event.important && (Важное
) }
{ moment(event.event_date).format("DD.MM.YYYY") }
diff --git a/pages/contract/change/components/Comparison/index.js b/pages/contract/change/components/Comparison/index.js
index 654fe4f..f550d9a 100644
--- a/pages/contract/change/components/Comparison/index.js
+++ b/pages/contract/change/components/Comparison/index.js
@@ -20,20 +20,22 @@ export default class Comparison extends React.Component
show_previous: false,
mixed_index: 0,
signatories_show_all: false,
+ opened: [],
};
}
componentDidMount()
{
- if(this.props.signer === undefined)
+ const { signer, signatories, calculations, calculation_id, current } = this.props;
+ const { today } = this.state;
+ if(signer === undefined)
{
- if(this.props.signatories !== undefined && this.props.signatories !== null)
+ if(signatories !== undefined && signatories !== null)
{
- this._handle_onSigner(this.props.signatories[0].signatoryid);
+ this._handle_onSigner(signatories[0].signatoryid);
}
}
- const { calculations, calculation_id, } = this.props;
let calculation = null;
for(let i in calculations)
@@ -45,7 +47,17 @@ export default class Comparison extends React.Component
}
}
- this.setState({ calculation : calculation });
+ const opened = [];
+ for(let i in current)
+ {
+ if(moment(current[i].plandate) >= today)
+ {
+ opened.push(current[i].name);
+ break;
+ }
+ }
+
+ this.setState({ calculation, opened });
}
componentDidUpdate(prevProps, prevState)
@@ -88,7 +100,18 @@ export default class Comparison extends React.Component
_handle_onMixedPayment = (index) =>
{
- this.setState({ mixed_index: index });
+ const opened = [ ...this.state.opened ];
+
+ if(opened.indexOf(index) > -1)
+ {
+ opened.splice(opened.indexOf(index));
+ }
+ else
+ {
+ opened.push(index);
+ }
+
+ this.setState({ opened });
}
_handle_onShowPrevious = () =>
@@ -104,6 +127,82 @@ export default class Comparison extends React.Component
console.log(this.state);
}
+ _renderMixedPayments = () =>
+ {
+ const { calculation, mixed_index, opened, today, show_previous, } = this.state;
+ const { current, calculated } = this.props;
+
+ if(current !== undefined && current !== null && calculated !== undefined && calculated !== null)
+ {
+ console.log("_renderMixedPayments", "current.length", current.length, "calculated.length", calculated.length);
+
+ if(current.length > calculated.length)
+ {
+ return (
+ <>
+ { current.map((payment, index) =>
+ {
+ if(!show_previous && moment(payment.plandate) < today) { return null; }
+ else
+ {
+ return (
+
-1 && "opened" }` } onClick={ () => this._handle_onMixedPayment(payment.name) }>
+
Платеж №{ payment.name }
+
+
+
Текущий график { moment(payment.plandate, "YYYY.MM.DD").format("DD.MM.YYYY") }
+
На сумму { numeral(payment.sum).format(' ., ') } ₽
+
Сумма досрочного выкупа { numeral(payment.early_repayment_sum).format(' ., ') } ₽
+
+
+
Новый график { calculated[index] !== undefined ? moment(calculated[index].plandate, "YYYY.MM.DD").format("DD.MM.YYYY") : (`-`) }
+
На сумму { calculated[index] !== undefined ? (<>{ numeral(calculated[index].sum).format(' ., ') } ₽>) : (`-`) }
+
Сумма досрочного выкупа { calculated[index] !== undefined ? (<>{ numeral(calculated[index].early_repayment_sum).format(' ., ') } ₽>) : (`-`) }
+
+
+
+ )
+ }
+ }) }
+ >
+ )
+ }
+ else
+ {
+ return (
+ <>
+ { calculated.map((payment, index) =>
+ {
+ if(!show_previous && moment(payment.plandate) < today) { return null; }
+ else
+ {
+ return (
+ -1 && "opened" }` } onClick={ () => this._handle_onMixedPayment(payment.name) }>
+
Платеж №{ payment.name }
+
+
+
Текущий график { current[index] !== undefined ? moment(current[index].plandate, "YYYY.MM.DD").format("DD.MM.YYYY") : (`-`) }
+
На сумму { current[index] !== undefined ? (<>{ numeral(current[index].sum).format(' ., ') } ₽>) : (`-`) }
+
Сумма досрочного выкупа { current[index] !== undefined ? (<>{ numeral(current[index].early_repayment_sum).format(' ., ') } ₽>) : (`-`) }
+
+
+
Новый график { moment(payment.plandate, "YYYY.MM.DD").format("DD.MM.YYYY") }
+
На сумму { numeral(payment.sum).format(' ., ') } ₽
+
Сумма досрочного выкупа { numeral(payment.early_repayment_sum).format(' ., ') } ₽
+
+
+
+ )
+ }
+ }) }
+ >
+ )
+ }
+ }
+
+ return null;
+ }
+
render()
{
const { calculation, mixed_index, today, show_previous, signatories_show_all } = this.state;
@@ -189,21 +288,19 @@ export default class Comparison extends React.Component
) }
- { current !== undefined &&
- current !== null &&
- current.map((payment, index) =>
- {
- if(!show_previous && moment(payment.plandate) < today) { return null; }
- return (
-
-
{ payment.name }
-
{ moment(payment.plandate, "YYYY.MM.DD").format("DD.MM.YYYY") }
-
{ numeral(payment.sum).format(' ., ') } ₽
-
{ numeral(payment.early_repayment_sum).format(' ., ') } ₽
-
- )
- })
- }
+ { current !== undefined && current !== null && current.map((payment, index) =>
+ {
+ if(!show_previous && moment(payment.plandate) < today) { return null; }
+
+ return (
+
+
{ payment.name }
+
{ moment(payment.plandate, "YYYY.MM.DD").format("DD.MM.YYYY") }
+
{ numeral(payment.sum).format(' ., ') } ₽
+
{ numeral(payment.early_repayment_sum).format(' ., ') } ₽
+
+ )
+ }) }
@@ -226,21 +323,19 @@ export default class Comparison extends React.Component
) }
- { calculated !== undefined &&
- calculated !== null &&
- calculated.map((payment, index) =>
- {
- if(!show_previous && moment(payment.plandate) < today) { return null; }
- return (
-
-
{ payment.name }
-
{ moment(payment.plandate, "YYYY.MM.DD").format("DD.MM.YYYY") }
-
{ numeral(payment.sum).format(' ., ') } ₽
-
{ numeral(payment.early_repayment_sum).format(' ., ') } ₽
-
- )
- })
- }
+ { calculated !== undefined && calculated !== null && calculated.map((payment, index) =>
+ {
+ if(!show_previous && moment(payment.plandate) < today) { return null; }
+
+ return (
+
+
{ payment.name }
+
{ moment(payment.plandate, "YYYY.MM.DD").format("DD.MM.YYYY") }
+
{ numeral(payment.sum).format(' ., ') } ₽
+
{ numeral(payment.early_repayment_sum).format(' ., ') } ₽
+
+ )
+ }) }
@@ -250,32 +345,7 @@ export default class Comparison extends React.Component
Показать прошедшие платежи
) }
- { current !== undefined &&
- current !== null &&
- calculated !== undefined &&
- calculated !== null &&
- current.map((payment, index) =>
- {
- if(!show_previous && moment(payment.plandate) < today) { return null; }
- return (
-
this._handle_onMixedPayment(index) }>
-
Платеж №{ payment.name }
-
-
-
Текущий график { moment(payment.plandate, "YYYY.MM.DD").format("DD.MM.YYYY") }
-
На сумму { numeral(payment.sum).format(' ., ') } ₽
-
Сумма досрочного выкупа { numeral(payment.early_repayment_sum).format(' ., ') } ₽
-
-
-
Новый график { calculated[index] !== undefined ? moment(calculated[index].plandate, "YYYY.MM.DD").format("DD.MM.YYYY") : (`-`) }
-
На сумму { calculated[index] !== undefined ? (<>{ numeral(calculated[index].sum).format(' ., ') } ₽>) : (`-`) }
-
Сумма досрочного выкупа { calculated[index] !== undefined ? (<>{ numeral(calculated[index].early_repayment_sum).format(' ., ') } ₽>) : (`-`) }
-
-
-
- )
- })
- }
+ { this._renderMixedPayments() }
diff --git a/pages/contract/components/InnerMenu/index.js b/pages/contract/components/InnerMenu/index.js
index 387bde4..a2b7636 100644
--- a/pages/contract/components/InnerMenu/index.js
+++ b/pages/contract/components/InnerMenu/index.js
@@ -19,7 +19,7 @@ export default class InnerMenu extends React.Component
{
let l = 0;
let m = 0;
- const menu = ["payments", "services", "agreement", "documents", "materials", "events", "change"];
+ const menu = [ "payments", "services", "agreement", "documents", "materials", "events", "change" ];
for(let i in menu)
{
diff --git a/pages/contract/services.js b/pages/contract/services.js
index afb09b1..b0ac565 100644
--- a/pages/contract/services.js
+++ b/pages/contract/services.js
@@ -54,7 +54,6 @@ class ContractServicesPage extends React.Component
componentDidMount()
{
- console.log("document.location.hash", document.location.hash);
const { dispatch, number } = this.props;
if(!this.state.loading && number !== undefined)
@@ -144,6 +143,23 @@ class ContractServicesPage extends React.Component
}
+ _checkInsuranceAvailable = () =>
+ {
+ const { insurance, } = this.state;
+
+ if(insurance !== undefined && insurance !== null)
+ {
+ for(let i in insurance)
+ {
+ if(insurance[i].length > 0)
+ {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
render()
{
const { loading, contracts_info, opened, helpcard, insurance, registration, telematic, } = this.state;
@@ -223,121 +239,119 @@ class ContractServicesPage extends React.Component
-
- { insurance !== undefined && insurance !== null ? (
- <>
- { insurance.kasko !== undefined && insurance.kasko !== null && insurance.kasko !== "" && insurance.kasko.map !== undefined && insurance.kasko.map((entry, index) => (
-
-
-
КАСКО
-
- { entry.company && (Страховая компания: { entry.company } ) }
- { entry.site && (Сайт: { entry.site } ) }
- { entry.phone && (Телефон: { entry.phone } ) }
- { entry.number && (
- Номер полиса:
- { entry.url !== null ? this._handle_onContract(entry.url) : {} } }>{ entry.number }
-
-
- ) }
- { entry.period && (Период действия: { entry.period } ) }
- { entry.amount && (Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
-
- { entry.period_type === "prolong" && entry.invoice_url !== null && (
-
-
-
+ { this._checkInsuranceAvailable() ? (
+
+ { insurance.kasko !== undefined && insurance.kasko !== null && insurance.kasko !== "" && insurance.kasko.map !== undefined && insurance.kasko.map((entry, index) => (
+
+
+
КАСКО
+
+ { entry.company && (Страховая компания: { entry.company } ) }
+ { entry.site && (Сайт: { entry.site } ) }
+ { entry.phone && (Телефон: { entry.phone } ) }
+ { entry.number && (
+ Номер полиса:
+ { entry.url !== null ? this._handle_onContract(entry.url) : {} } }>{ entry.number }
+
+
) }
-
- { entry.description && ({ entry.description }
) }
-
- )) }
- { insurance.osago !== undefined && insurance.osago !== null && insurance.osago !== "" && insurance.osago.map !== undefined && insurance.osago.map((entry, index) => (
-
-
-
ОСАГО
-
- { entry.company && (Страховая компания: { entry.company } ) }
- { entry.site && (Сайт: { entry.site } ) }
- { entry.phone && (Телефон: { entry.phone } ) }
- { entry.number && (
- Номер полиса:
- { entry.url !== null ? this._handle_onContract(entry.url) : {} } }>{ entry.number }
-
-
- ) }
- { entry.period && (Период действия: { entry.period } ) }
- { entry.amount && (Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
- { entry.period_type === "prolong" && (
- Обращаем Ваше внимание, что пролонгация полиса ОСАГО на второй и последующие периоды осуществляется Лизингополучателем самостоятельно
- ) }
-
- { entry.period_type === "prolong" && entry.invoice_url !== null && (
-
-
-
+ { entry.period && (
Период действия: { entry.period } ) }
+ { entry.amount && (
Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
+
+ { entry.period_type === "prolong" && entry.invoice_url !== null && (
+
+
+
+ ) }
+
+ { entry.description && ({ entry.description }
) }
+
+ )) }
+ { insurance.osago !== undefined && insurance.osago !== null && insurance.osago !== "" && insurance.osago.map !== undefined && insurance.osago.map((entry, index) => (
+
+
+
ОСАГО
+
+ { entry.company && (Страховая компания: { entry.company } ) }
+ { entry.site && (Сайт: { entry.site } ) }
+ { entry.phone && (Телефон: { entry.phone } ) }
+ { entry.number && (
+ Номер полиса:
+ { entry.url !== null ? this._handle_onContract(entry.url) : {} } }>{ entry.number }
+
+
) }
-
- { entry.description && ({ entry.description }
) }
-
- )) }
- { insurance.nsib !== undefined && insurance.nsib !== null && insurance.nsib !== "" && insurance.nsib.map !== undefined && insurance.nsib.map((entry, index) => (
-
-
-
НСИБ
-
- { entry.company && (Страховая компания: { entry.company } ) }
- { entry.site && (Сайт: { entry.site } ) }
- { entry.phone && (Телефон: { entry.phone } ) }
- { entry.number && (
- Номер полиса:
- { entry.url !== null ? this._handle_onContract(entry.url) : {} } }>{ entry.number }
-
-
- ) }
- { entry.period && (Период действия: { entry.period } ) }
- { entry.amount && (Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
-
- { entry.period_type === "prolong" && entry.invoice_url !== null && (
-
-
-
+ { entry.period && (
Период действия: { entry.period } ) }
+ { entry.amount && (
Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
+ { entry.period_type === "prolong" && (
+
Обращаем Ваше внимание, что пролонгация полиса ОСАГО на второй и последующие периоды осуществляется Лизингополучателем самостоятельно
) }
-
- { entry.description && ({ entry.description }
) }
-
- )) }
- { insurance.fingap !== undefined && insurance.fingap !== null && insurance.fingap !== "" && insurance.fingap.map !== undefined && insurance.fingap.map((entry, index) => (
-
-
-
Safe Finance
-
- { entry.company && (Страховая компания: { entry.company } ) }
- { entry.site && (Сайт: { entry.site } ) }
- { entry.phone && (Телефон: { entry.phone } ) }
- { entry.number && (
- Номер полиса:
- { entry.number }
-
-
- ) }
- { entry.period && (Период действия: { entry.period } ) }
- { entry.amount && (Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
-
- { entry.period_type === "prolong" && entry.invoice_url !== null && (
-
-
-
+
+ { entry.period_type === "prolong" && entry.invoice_url !== null && (
+
+
+
+ ) }
+
+ { entry.description && ({ entry.description }
) }
+
+ )) }
+ { insurance.nsib !== undefined && insurance.nsib !== null && insurance.nsib !== "" && insurance.nsib.map !== undefined && insurance.nsib.map((entry, index) => (
+
+
+
НСИБ
+
+ { entry.company && (Страховая компания: { entry.company } ) }
+ { entry.site && (Сайт: { entry.site } ) }
+ { entry.phone && (Телефон: { entry.phone } ) }
+ { entry.number && (
+ Номер полиса:
+ { entry.url !== null ? this._handle_onContract(entry.url) : {} } }>{ entry.number }
+
+
) }
-
- { entry.description && ({ entry.description }
) }
-
- )) }
- >
- ) : (
-
- ) }
-
+ { entry.period && (
Период действия: { entry.period } ) }
+ { entry.amount && (
Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
+
+ { entry.period_type === "prolong" && entry.invoice_url !== null && (
+
+
+
+ ) }
+
+ { entry.description && ({ entry.description }
) }
+
+ )) }
+ { insurance.fingap !== undefined && insurance.fingap !== null && insurance.fingap !== "" && insurance.fingap.map !== undefined && insurance.fingap.map((entry, index) => (
+
+
+
Safe Finance
+
+ { entry.company && (Страховая компания: { entry.company } ) }
+ { entry.site && (Сайт: { entry.site } ) }
+ { entry.phone && (Телефон: { entry.phone } ) }
+ { entry.number && (
+ Номер полиса:
+ { entry.number }
+
+
+ ) }
+ { entry.period && (Период действия: { entry.period } ) }
+ { entry.amount && (Страховая сумма: { numeral(entry.amount).format(' ., ') } ₽ ) }
+
+ { entry.period_type === "prolong" && entry.invoice_url !== null && (
+
+
+
+ ) }
+
+ { entry.description && ({ entry.description }
) }
+
+ )) }
+
+ ) : (
+
+ ) }
-1 ? 'open' : '' }`}>
this._handle_onCard('registration') }>
diff --git a/pages/settings/components/InnerMenu/index.js b/pages/settings/components/InnerMenu/index.js
index 260ffb8..f747b8d 100644
--- a/pages/settings/components/InnerMenu/index.js
+++ b/pages/settings/components/InnerMenu/index.js
@@ -23,6 +23,7 @@ export default class InnerMenu extends React.Component
{
let l = 0;
let m = 0;
+ const menu = [ "phone", "password", "admin" ];
for(let i in menu)
{
diff --git a/pages/support/components/InnerMenu/index.js b/pages/support/components/InnerMenu/index.js
index 84f11e1..e8ed6a3 100644
--- a/pages/support/components/InnerMenu/index.js
+++ b/pages/support/components/InnerMenu/index.js
@@ -25,6 +25,7 @@ class InnerMenu extends React.Component
{
let l = 0;
let m = 0;
+ const menu = [ "faq", "appeals" ];
for(let i in menu)
{