import React from "react"; import Head from "next/head"; import Image from "next/image"; import { connect } from "react-redux"; import { withRouter } from "next/router"; import numeral from "numeral"; import moment from "moment"; import { SpinnerCircular } from "spinners-react"; import { reduxWrapper } from "../../store"; import Header from "../components/Header"; import Footer from "../components/Footer"; import Company from "../components/Company"; import InnerMenu from "./components/InnerMenu"; import { getContractInfo, getContractHelpCard, getContractInsurance, getContractRegistration, getContractTelematic, } from "./../../actions"; import ContractHeader from "./components/ContractHeader"; class ContractServicesPage extends React.Component { constructor(props) { super(props); this.state = { opened: [], date: null, car: null, contract_date: null, loading: false, helpcard: null, insurance: null, registration: null, telematic: null, }; } static getDerivedStateFromProps(nextProps, prevState) { return { date: nextProps.date, car: nextProps.car, contract_date: nextProps.contract_date, helpcard: nextProps.helpcard, insurance: nextProps.insurance, registration: nextProps.registration, telematic: nextProps.telematic, }; } componentDidMount() { if (!this.state.loading && this.props.number !== undefined) { this.setState({ loading: true }, () => { getContractInfo({ dispatch: this.props.dispatch, number: this.props.number, }); Promise.all([ new Promise((resolve) => { getContractHelpCard({ dispatch: this.props.dispatch, number: this.props.number, }).then(resolve()); }), new Promise((resolve) => { getContractInsurance({ dispatch: this.props.dispatch, number: this.props.number, }).then(resolve()); }), new Promise((resolve) => { getContractRegistration({ dispatch: this.props.dispatch, number: this.props.number, }).then(resolve()); }), new Promise((resolve) => { getContractTelematic({ dispatch: this.props.dispatch, number: this.props.number, }).then(resolve()); }), ]).then(() => { this.setState({ loading: false }); }); }); } } _handle_onCard = (card) => { const opened = [...this.state.opened]; if (opened.indexOf(card) === -1) { opened.push(card); } else { opened.splice(opened.indexOf(card), 1); } this.setState({ opened: opened }); }; render() { const { number } = this.props; const { opened, loading, date, car, contract_date, helpcard, insurance, registration, telematic, } = this.state; return ( ЛК Эволюция автолизинга
{ loading ? (
) : (

Штрафы ГИБДД

  • Номер постановления: 3432434242334
  • Страховая: 3 400 000,00 ₽
  • Статус: Оплачен
  • Дата: 01/01/2020
  • Штраф:{" "}п. 1.15 - Несоблюдение правил парковки
  • № 01/20/2020 (.PDF) Постановление

    Договор 2021_3866 от 25.06.2021

) }