diff --git a/actions/supportActions.js b/actions/supportActions.js index 0e20589..a29366c 100644 --- a/actions/supportActions.js +++ b/actions/supportActions.js @@ -88,7 +88,14 @@ export const getSupportThemes = ({ dispatch, query, }) => .then(async (response) => { console.log("getContractRules", "response.data", response.data); - dispatch({ type: actionTypes.SUPPORT_THEMES, data: { themes: response.data.themes } }); + if(query !== undefined) + { + dispatch({ type: actionTypes.SUPPORT_THEMES_FILTERED, data: { filtered: response.data.themes } }); + } + else + { + dispatch({ type: actionTypes.SUPPORT_THEMES, data: { themes: response.data.themes } }); + } resolve(); }) @@ -100,6 +107,15 @@ export const getSupportThemes = ({ dispatch, query, }) => }); } +export const resetFilteredThemes = ({ dispatch }) => +{ + return new Promise((resolve, reject) => + { + dispatch({ type: actionTypes.SUPPORT_THEMES_FILTERED, data: { filtered: null } }); + resolve(); + }); +} + export const sendNewAppeal = (appeal) => { console.log("ACTION", "support", "sendNewAppeal", appeal); diff --git a/constants/actionTypes.js b/constants/actionTypes.js index ec79156..b88fc01 100644 --- a/constants/actionTypes.js +++ b/constants/actionTypes.js @@ -35,7 +35,7 @@ export const EVENTS_FILTERED = 'EVENTS_FILTERED'; export const EVENTS_RESET = 'EVENTS_RESET'; export const SUPPORT_THEMES = 'SUPPORT_THEMES'; -export const SUPPORT_THEMES_SEARCHED = 'SUPPORT_THEMES_SEARCHED'; +export const SUPPORT_THEMES_FILTERED = 'SUPPORT_THEMES_FILTERED'; export const SUPPORT_APPEALS = 'SUPPORT_APPEALS'; export const SUPPORT_APPEAL = 'SUPPORT_APPEAL'; export const SUPPORT_RESET = 'SUPPORT_RESET'; \ No newline at end of file diff --git a/css/main/style.css b/css/main/style.css index 3fe2bf7..50db167 100644 --- a/css/main/style.css +++ b/css/main/style.css @@ -5017,3 +5017,89 @@ main .dropdown_blocks_list.zero-margin.gibdd .dropdown_block .block_body .fines_ min-width: 195px; } } +@media all and (max-width: 1280px) { + .contract_payments_status_cell { + border-top: unset!important; + } +} +@media all and (max-width: 1280px) { + .contract_payments_invoices_cell { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + } + .contract_payments_invoices_cell p { + white-space: nowrap!important; + display: flex; + } + .contract_payments_invoices_cell p span { + white-space: nowrap; + padding-left: 10px; + margin-top: 0px!important; + } +} +@media all and (max-width: 900px) { + .contract_payments_invoices_cell { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + } + .contract_payments_invoices_cell p { + white-space: normal!important; + display: flex; + flex-direction: column; + } + .contract_payments_invoices_cell p span { + padding-left: 0px; + } +} +@media all and (max-width: 768px) { + .contract_payments_invoices_cell { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + } + .contract_payments_invoices_cell p { + flex-direction: row; + white-space: nowrap!important; + display: flex; + } + .contract_payments_invoices_cell p span { + white-space: nowrap; + padding-left: 10px; + margin-top: 0px!important; + } +} +@media all and (max-width: 400px) { + .contract_payments_invoices_cell { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + } + .contract_payments_invoices_cell p { + white-space: normal!important; + display: flex; + flex-direction: column; + } + .contract_payments_invoices_cell p span { + padding-left: 0px; + } +} +.search_form_buttons_wrapper { + flex-direction: row; + display: flex; + align-items: flex-start; + justify-content: flex-end; + margin-left: auto; +} +.search_form_buttons_wrapper .button { + display: block!important; +} diff --git a/css/main/style.less b/css/main/style.less index 9f0156d..51da001 100644 --- a/css/main/style.less +++ b/css/main/style.less @@ -5663,4 +5663,99 @@ main .dropdown_blocks_list .dropdown_block .block_body { @media all and (max-width: 1600px) { min-width: 195px; } +} + +.contract_payments_status_cell { + @media all and (max-width: 1280px) { + border-top: unset!important; + } +} + +.contract_payments_invoices_cell { + @media all and (max-width: 1280px) { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + + p { + white-space: nowrap!important; + display: flex; + + span { + white-space: nowrap; + padding-left: 10px; + margin-top: 0px!important; + } + } + } + + @media all and (max-width: 900px) { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + + p { + white-space: normal!important; + display: flex; + flex-direction: column; + + span { + padding-left: 0px; + } + } + } + + @media all and (max-width: 768px) { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + + p { + flex-direction: row; + white-space: nowrap!important; + display: flex; + + span { + white-space: nowrap; + padding-left: 10px; + margin-top: 0px!important; + } + } + } + + @media all and (max-width: 400px) { + flex-direction: column; + width: 100%; + display: flex; + white-space: nowrap; + min-width: 100% !important; + + p { + white-space: normal!important; + display: flex; + flex-direction: column; + + span { + padding-left: 0px; + } + } + } +} + +.search_form_buttons_wrapper { + flex-direction: row; + display: flex; + align-items: flex-start; + justify-content: flex-end; + margin-left: auto; + + .button { + display: block!important; + } } \ No newline at end of file diff --git a/pages/contract/index.js b/pages/contract/index.js index 073ab02..6c975fc 100644 --- a/pages/contract/index.js +++ b/pages/contract/index.js @@ -256,7 +256,7 @@ class ContractSchedulePage extends React.Component
№{ invoice.number } от { moment(invoice.date, "DD-MM-YYYY").format("DD.MM.YYYY") } на сумму { numeral(invoice.total_amount).format(' ., ') } ₽
+№{ invoice.number } от { moment(invoice.date, "DD-MM-YYYY").format("DD.MM.YYYY") } на сумму: { numeral(invoice.total_amount).format(' ., ') } ₽
{ theme.name }
-{ question.title }
- -Процедура
- + {/* Результат поиска */} + { searched && filtered !== undefined && filtered !== null ? ( + <> + { filtered_count > 0 ? ( + <> + { filtered.map((theme, theme_index) => ( +К каждой теме свободное html поле для миниинструкции (со ссылками на формы документов и документы). Привязка к теме обращения в CRM
+ {*/} +К сожалению по Вашему запросу нет результатов.
+ ) } + > + ) : ( +{ theme.name }
+{ question.title }
+ +Документы
- +Процедура
+Шаблоны документов
-Документы
+Шаблоны документов
+{ question.theme } / { question.name }
-К каждой теме свободное html поле для миниинструкции (со ссылками на формы документов и документы). Привязка к теме обращения в CRM
-