diff --git a/pages/index.js b/pages/index.js index bdc670e..5aaa5fe 100644 --- a/pages/index.js +++ b/pages/index.js @@ -153,6 +153,11 @@ class IndexPage extends React.Component this.props.router.push(url); } + _handle_onQuestionnaire = () => + { + this.props.router.push("/questionnaire"); + } + render() { const { company, loading, page, pages, search, date_from, date_from_type, date_to, date_to_type, contracts, sort_number, sort_date, sort_status, all } = this.state; @@ -163,6 +168,7 @@ class IndexPage extends React.Component }; console.log("contracts", contracts); + console.log("company", company); return ( @@ -185,18 +191,17 @@ class IndexPage extends React.Component -
- - - - + { company.questionnaire_status === "need_to_fill" && ( +
+ + +

Уточните данные Требуется уточнить данные в анкете клиента

- - - -
+ +
+ ) }
{ event.preventDefault(); } }>