// ==UserScript== // @name GIS main // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @require https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js // @author You // @match https://my.dom.gosuslugi.ru/* // @icon https://www.google.com/s2/favicons?domain=gosuslugi.ru // @grant none // ==/UserScript== setTimeout(()=>{ //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------// function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } //------------------------------------------------------------------Наблюдатель в отдельной библиотеке arrive-----------------------------------------------------------------------// //продлить сессию $(document).arrive('button[ng-click="continueSession()"]', function(newElem) { $('button[ng-click="continueSession()"]').click(); }); //закрыть уведомление об информационных сообщениях $(document).arrive('button[ng-click="close(\'viewNotifications\')"]', function(newElem) { $('button[ng-click="close(\'cancel\')"]').click(); }); //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------// $(document).ready(function(){ $('head').append(''); $( ".portal-footer__copyright" ).append('
'); $( '.portal-footer__copyright' ).append( '
' ); $( '.portal-footer__copyright' ).append( '
' ); //добавить поле для временного хранения $( '.portal-footer__copyright' ).append( '
' ); //добавить поле для временного хранения //функция для спойлера $(document).on('click','.spoiler-trigger',function(e){ $(this).toggleClass('active'); $(this).next('.spoiler-block').first().slideToggle(300); }); let customMenu = ''; customMenu += 'Справочники⏷'; customMenu += '
'; customMenu += '
Добавить (м2, об.усл.)
'; customMenu += '
Обязат. работы
'; customMenu += '
Квадратный метр
'; customMenu += '
Штука
'; customMenu += '
Погонный метр
'; customMenu += '
'; customMenu += 'Протоколы⏷'; customMenu += '
'; customMenu += '
Голоса пересчет
'; customMenu += '
ALL 100
'; customMenu += '
Капремонт общ. имущ.
'; customMenu += '
Текущий ремонт
'; customMenu += '
Заключение дог. с РСО
'; customMenu += '
Другие вопросы
'; customMenu += 'ТСЖ'; customMenu += '
Изм/утв. устава
'; customMenu += '
Утв. год. отчета прав.
'; customMenu += '
Избр. членов правлен.
'; customMenu += '
Избр. членов ревком.
'; customMenu += '
Избр. председателя
'; customMenu += '
Утв. годового плана
'; customMenu += '
Утв. отчета год. плана
'; customMenu += '
Утв. сметы
'; customMenu += '
Утв. отчета по смете
'; customMenu += '
Утв. аудит. заключений
'; customMenu += '
Другие вопросы
'; customMenu += '
'; customMenu += 'Планы и фиксация⏷'; customMenu += '
'; customMenu += '
В планировании все 1
'; customMenu += '
Фиксация = План
'; customMenu += '
Очистить фиксацию
'; customMenu += '
Фиксация = План 2020 [↻]
'; customMenu += '
'; customMenu += 'Тарифы и нормат.⏷'; customMenu += '
'; customMenu += '
Разместить тарифы
'; customMenu += '
'; customMenu += 'Паспорт МКД⏷'; customMenu += '
'; customMenu += '
Развернуть все хар-ки
'; customMenu += '
'; customMenu += 'Объем КУ⏷'; customMenu += '
'; customMenu += '
Сброс диапазона в фильтре
'; customMenu += '
Разместить все периоды
'; customMenu += '
'; customMenu += 'Реестр ТСЖ⏷'; customMenu += '
'; customMenu += '
Проект->Размещено
'; customMenu += '
'; //Спойлер с датами ДОУ customMenu += 'Даты ДОУ⏷'; customMenu += '
'; customMenu += '2021'; customMenu += '
01.2021
'; customMenu += '
02.2021
'; customMenu += '
03.2021
'; customMenu += '
04.2021
'; customMenu += '
05.2021
'; customMenu += '
06.2021
'; customMenu += '
07.2021
'; customMenu += '
08.2021
'; customMenu += '
09.2021
'; customMenu += '
10.2021
'; customMenu += '
11.2021
'; customMenu += '
12.2021
'; customMenu += '2020'; customMenu += '
01.2020
'; customMenu += '
02.2020
'; customMenu += '
03.2020
'; customMenu += '
04.2020
'; customMenu += '
05.2020
'; customMenu += '
06.2020
'; customMenu += '
07.2020
'; customMenu += '
08.2020
'; customMenu += '
09.2020
'; customMenu += '
10.2020
'; customMenu += '
11.2020
'; customMenu += '
12.2020
'; customMenu += '
'; //Спойлер с датами ДОИ customMenu += 'Даты ДОИ⏷'; customMenu += '
'; customMenu += '2021'; customMenu += '
01.2021
'; customMenu += '
02.2021
'; customMenu += '
03.2021
'; customMenu += '
04.2021
'; customMenu += '
05.2021
'; customMenu += '
06.2021
'; customMenu += '
07.2021
'; customMenu += '
08.2021
'; customMenu += '
09.2021
'; customMenu += '
10.2021
'; customMenu += '
11.2021
'; customMenu += '
12.2021
'; customMenu += '2020'; customMenu += '
01.2020
'; customMenu += '
02.2020
'; customMenu += '
03.2020
'; customMenu += '
04.2020
'; customMenu += '
05.2020
'; customMenu += '
06.2020
'; customMenu += '
07.2020
'; customMenu += '
08.2020
'; customMenu += '
09.2020
'; customMenu += '
10.2020
'; customMenu += '
11.2020
'; customMenu += '
12.2020
'; customMenu += '
'; //Спойлер с датами РСО customMenu += 'Даты ДРСО⏷'; customMenu += '
'; customMenu += '2021'; customMenu += '
01.2021
'; customMenu += '
02.2021
'; customMenu += '
03.2021
'; customMenu += '
04.2021
'; customMenu += '
05.2021
'; customMenu += '
06.2021
'; customMenu += '
07.2021
'; customMenu += '
08.2021
'; customMenu += '
09.2021
'; customMenu += '
10.2021
'; customMenu += '
11.2021
'; customMenu += '
12.2021
'; customMenu += '2020'; customMenu += '
01.2020
'; customMenu += '
02.2020
'; customMenu += '
03.2020
'; customMenu += '
04.2020
'; customMenu += '
05.2020
'; customMenu += '
06.2020
'; customMenu += '
07.2020
'; customMenu += '
08.2020
'; customMenu += '
09.2020
'; customMenu += '
10.2020
'; customMenu += '
11.2020
'; customMenu += '
12.2020
'; customMenu += '
'; $( '#custom-menu' ).append(customMenu); //--------------------------------------------------------------------------ПРОТОКОЛЫ------------------------------------------------------------------------------------------// $( '#golosa-pereschet' ).click(function(){ let votingResultTrue = $('input[name="votingResultTrue"]').val(); votingResultTrue = parseFloat(votingResultTrue); let votingResultFalse = $('input[name="votingResultFalse"]').val(); votingResultFalse = parseFloat(votingResultFalse); let votingResultAbstent = $('input[name="votingResultAbstent"]').val(); votingResultAbstent = parseFloat(votingResultAbstent); let SummaryVoteCount = votingResultTrue + votingResultFalse + votingResultAbstent; SummaryVoteCount = parseFloat(SummaryVoteCount); SummaryVoteCount = SummaryVoteCount.toFixed(2); $('input[name="membersSummaryVoteCount"]').val(SummaryVoteCount); $('input[name="membersSummaryVoteCount"]').trigger('change'); }); $( '#drugie-voprosy-sobstv' ).click(async function(){ await $('div[ng-click="showHierarchyDialog()"]').click(); await sleep(700); await $('input[value="fa780ea1-5be4-410e-b0fc-a032a90c2043"').trigger('click'); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#kapremont-obshim-sobstv' ).click(async function(){ await $('div[ng-click="showHierarchyDialog()"]').click(); await sleep(700); await $('input[value="e2a98b24-8490-469f-beb6-28b0f02bbc7a"').trigger('click'); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#tekushiy-remont' ).click(async function(){ await $('div[ng-click="showHierarchyDialog()"]').click(); await sleep(700); await $('input[value="dd958bd6-e91c-4afb-9e8a-826a54d5a18b"').trigger('click'); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#dogovor-komuslug' ).click(async function(){ await $('div[ng-click="showHierarchyDialog()"]').click(); await sleep(700); await $('input[value="bcf8a00f-416f-42a1-8209-0e8098b7d55d"').trigger('click'); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#vse-100gol' ).click(function(){ $('input[name="votingResultTrue"]').val(100); $('input[name="votingResultTrue"]').trigger('change'); $('input[name="votingResultFalse"]').val(0); $('input[name="votingResultFalse"]').trigger('change'); $('input[name="votingResultAbstent"]').val(0); $('input[name="votingResultAbstent"]').trigger('change'); $('input[name="membersSummaryVoteCount"]').val(100); $('input[name="membersSummaryVoteCount"]').trigger('change'); }); $( '#tszh-izmenenie-ustava' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="994f5af3-18ca-41a3-90f1-ea7d0ce6549b"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-utv-god-otch' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="1c54fda7-b27c-4ee1-859c-fbffb983db10"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-izbranie-chlenprav' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="4d9616a5-1865-413a-b90b-d299e961de1b"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-izbranie-chlenrevkom' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="d5025937-d075-488f-91f1-e77993672502"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-izbranie-predsedat' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="1687db46-6261-4732-b3a3-c0c19e9fa844"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-utv-godplan' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="a57722f4-0aab-4ba1-8042-6de0347fbd04"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-utv-jtcheta-godplan' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="d5e94c1b-5cad-49e8-9480-3441d0fb0ae0"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-utv-smeta' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="20b88be1-1a14-4458-a52f-31c41f096dc9"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-utv-otchet-smeta' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="743ae10a-f898-475c-867c-333a38b629be"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-utv-auditzakl' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="9e6c4d8e-e7bc-495d-b9ad-6fedfd37e427"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); $( '#tszh-drugie-voprosi' ).click(async function(){await $('div[ng-click="showHierarchyDialog()"]').click();await sleep(700);await $('input[value="63aff8eb-675b-4fe8-830f-b8a458d8307f"').trigger('click');await $('a[ng-click="modalOptions.ok()"').trigger('click');}); //--------------------------------------------------------------------------СПРАВОЧНИКИ------------------------------------------------------------------------------------------// $( '#add-work-auto' ).click(async function(){ await $('a[ng-click="addWork()"]').click(); await sleep(600); $('select[ng-model="localServiceTypeGuid"]').val('c1699fb6-c865-4e79-a94f-50724c8c6688') //обслуживание $('select[ng-model="localServiceTypeGuid"]').trigger('change') await $('button[ng-show="localIsOkeiCombo"]').trigger('click'); await sleep(700); await $('input[ng-model="searchParameters.code"]').val("055"); await $('input[ng-model="searchParameters.code"]').trigger('input'); await $('input[ng-model="searchParameters.code"]').trigger('change'); await sleep(300); await $('button[ng-disabled="panelConfig.searchBtnDisabled || disabled()"').click(); await sleep(1000); await $('input[id="id-2b04e413-0523-4c8c-a8bf-9e2eda3c925a"]').trigger('click'); await sleep(300); await $('a[ng-click="modalOptions.ok()"').trigger('click'); await sleep(300); await $('button[ng-click="addRequiredWork()"').trigger('click'); await sleep(1000); await $('td:contains("Организация оказания услуг и выполнения работ")').trigger('click'); await sleep(300); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#metr-kvadratniy' ).click(async function(){ await $('button[ng-show="localIsOkeiCombo"]').trigger('click'); await sleep(1100); await $('input[ng-model="searchParameters.code"]').val("055"); await $('input[ng-model="searchParameters.code"]').trigger('input'); await $('input[ng-model="searchParameters.code"]').trigger('change'); await sleep(300); await $('button[ng-disabled="panelConfig.searchBtnDisabled || disabled()"').click(); await sleep(1100); await $('input[id="id-2b04e413-0523-4c8c-a8bf-9e2eda3c925a"]').trigger('click'); await sleep(300); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#shtuka' ).click(async function(){ await $('button[ng-show="localIsOkeiCombo"]').trigger('click'); await sleep(1100); await $('input[ng-model="searchParameters.code"]').val("796"); await $('input[ng-model="searchParameters.code"]').trigger('input'); await $('input[ng-model="searchParameters.code"]').trigger('change'); await sleep(300); await $('button[ng-disabled="panelConfig.searchBtnDisabled || disabled()"').click(); await sleep(1100); await $('input[id="id-2eb436e6-a8bc-4ea1-a834-e64d1bd40a79"]').trigger('click'); await sleep(300); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#pogonniy-metr' ).click(async function(){ await $('button[ng-show="localIsOkeiCombo"]').trigger('click'); await sleep(1100); await $('input[ng-model="searchParameters.code"]').val("018"); await $('input[ng-model="searchParameters.code"]').trigger('input'); await $('input[ng-model="searchParameters.code"]').trigger('change'); await sleep(300); await $('button[ng-disabled="panelConfig.searchBtnDisabled || disabled()"').click(); await sleep(1100); await $('input[id="id-cbfe152d-4cb6-4569-a673-70f239a443f2"]').trigger('click'); await sleep(300); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); $( '#org-raboty' ).click(async function(){ await $('button[ng-click="addRequiredWork()"').trigger('click'); await sleep(1500); await $('td:contains("Организация оказания услуг и выполнения работ")').trigger('click'); await sleep(300); await $('a[ng-click="modalOptions.ok()"').trigger('click'); }); //--------------------------------------------------------------------------ПЛАНЫ И ФИКСАЦИЯ------------------------------------------------------------------------------------------// $( '#plan-all-one' ).click(async function(){ $('input[ng-model="monthlyWorksLocal.count"]').val("1"); $('input[ng-model="monthlyWorksLocal.count"]').trigger('change'); }); async function fixplanone(){ $('span[ng-click="copyPlannedValues()"]').click(); await sleep(100); $('body > div.modal.fade.ng-isolate-scope.z-index-xxl.in > div > div > div > div.modal-footer.modal-base__footer.text-center > button.btn.btn-action').click(); await sleep(100); $('a[ng-click="saveFr()"]').click(); await sleep(1000); $('body > div.modal.fade.ng-isolate-scope.z-index-xxl.in > div > div > div > div.modal-footer.modal-base__footer.text-center > button').click(); } $( '#fix-plan-one' ).click(async function(){ fixplanone(); }); $( '#fix-plan-loop-2020' ).click(async function(){ $('select[name="reportingPeriodGuid"] option:contains("01.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("02.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("03.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("04.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("05.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("06.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("07.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("08.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("09.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("10.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("11.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); $('select[name="reportingPeriodGuid"] option:contains("12.2020")').prop('selected', true); $('select[name="reportingPeriodGuid"] option:selected').trigger('change'); $('button:contains("Найти")').click(); await sleep(3000); fixplanone(); await sleep(1000); }); $( '#fix-clear' ).click(async function(){ $('input[ng-model="item.factPrice"]').val('').trigger('change'); $('input[ng-model="item.factAmount"]').val('').trigger('change'); $('input[ng-model="monthlyWorksLocal.count"]').val('').trigger('change'); $('input[ng-model="item.factTotalCost"]').val('').trigger('change'); }); //--------------------------------------------------------------------------ДАТЫ ОПЛАТ ДОУ------------------------------------------------------------------------------------------// $( '#dou-01-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.01.2021"); $($('input[ng-model="endAsString"]')[2]).val("31.01.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-02-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.02.2021"); $($('input[ng-model="endAsString"]')[2]).val("28.02.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-03-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.03.2021"); $($('input[ng-model="endAsString"]')[2]).val("31.03.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-04-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.04.2021"); $($('input[ng-model="endAsString"]')[2]).val("30.04.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-05-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.05.2021"); $($('input[ng-model="endAsString"]')[2]).val("31.05.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-06-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.06.2021"); $($('input[ng-model="endAsString"]')[2]).val("30.06.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-07-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.07.2021"); $($('input[ng-model="endAsString"]')[2]).val("31.07.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-08-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.08.2021"); $($('input[ng-model="endAsString"]')[2]).val("31.08.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-09-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.09.2021"); $($('input[ng-model="endAsString"]')[2]).val("30.09.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-10-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.10.2021"); $($('input[ng-model="endAsString"]')[2]).val("31.10.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-11-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.11.2021"); $($('input[ng-model="endAsString"]')[2]).val("30.11.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-12-2021' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.12.2021"); $($('input[ng-model="endAsString"]')[2]).val("31.12.2021"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-01-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.01.2020"); $($('input[ng-model="endAsString"]')[2]).val("31.01.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-02-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.02.2020"); $($('input[ng-model="endAsString"]')[2]).val("29.02.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-03-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.03.2020"); $($('input[ng-model="endAsString"]')[2]).val("31.03.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-04-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.04.2020"); $($('input[ng-model="endAsString"]')[2]).val("30.04.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-05-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.05.2020"); $($('input[ng-model="endAsString"]')[2]).val("31.05.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-06-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.06.2020"); $($('input[ng-model="endAsString"]')[2]).val("30.06.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-07-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.07.2020"); $($('input[ng-model="endAsString"]')[2]).val("31.07.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-08-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.08.2020"); $($('input[ng-model="endAsString"]')[2]).val("31.08.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-09-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.09.2020"); $($('input[ng-model="endAsString"]')[2]).val("30.09.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-10-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.10.2020"); $($('input[ng-model="endAsString"]')[2]).val("31.10.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-11-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.11.2020"); $($('input[ng-model="endAsString"]')[2]).val("30.11.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); $( '#dou-12-2020' ).click(async function(){ $($('input[ng-model="startAsString"]')[2]).val("01.12.2020"); $($('input[ng-model="endAsString"]')[2]).val("31.12.2020"); $($('input[ng-model="startAsString"]')[2]).trigger('change'); $($('input[ng-model="endAsString"]')[2]).trigger('change'); }); //--------------------------------------------------------------------------ДАТЫ ОПЛАТ ДОИ------------------------------------------------------------------------------------------// $( '#doi-01-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.01.2021");$($('input[ng-model="dateAsString"]')[1]).val("31.01.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-02-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.02.2021");$($('input[ng-model="dateAsString"]')[1]).val("28.02.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-03-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.03.2021");$($('input[ng-model="dateAsString"]')[1]).val("31.03.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-04-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.04.2021");$($('input[ng-model="dateAsString"]')[1]).val("30.04.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-05-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.05.2021");$($('input[ng-model="dateAsString"]')[1]).val("31.05.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-06-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.06.2021");$($('input[ng-model="dateAsString"]')[1]).val("30.06.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-07-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.07.2021");$($('input[ng-model="dateAsString"]')[1]).val("31.07.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-08-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.08.2021");$($('input[ng-model="dateAsString"]')[1]).val("31.08.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-09-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.09.2021");$($('input[ng-model="dateAsString"]')[1]).val("30.09.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-10-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.10.2021");$($('input[ng-model="dateAsString"]')[1]).val("31.10.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-11-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.11.2021");$($('input[ng-model="dateAsString"]')[1]).val("30.11.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-12-2021' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.12.2021");$($('input[ng-model="dateAsString"]')[1]).val("31.12.2021");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-01-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.01.2020");$($('input[ng-model="dateAsString"]')[1]).val("31.01.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-02-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.02.2020");$($('input[ng-model="dateAsString"]')[1]).val("29.02.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-03-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.03.2020");$($('input[ng-model="dateAsString"]')[1]).val("31.03.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-04-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.04.2020");$($('input[ng-model="dateAsString"]')[1]).val("30.04.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-05-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.05.2020");$($('input[ng-model="dateAsString"]')[1]).val("31.05.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-06-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.06.2020");$($('input[ng-model="dateAsString"]')[1]).val("30.06.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-07-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.07.2020");$($('input[ng-model="dateAsString"]')[1]).val("31.07.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-08-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.08.2020");$($('input[ng-model="dateAsString"]')[1]).val("31.08.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-09-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.09.2020");$($('input[ng-model="dateAsString"]')[1]).val("30.09.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-10-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.10.2020");$($('input[ng-model="dateAsString"]')[1]).val("31.10.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-11-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.11.2020");$($('input[ng-model="dateAsString"]')[1]).val("30.11.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); $( '#doi-12-2020' ).click(async function(){ $($('input[ng-model="dateAsString"]')[0]).val("01.12.2020");$($('input[ng-model="dateAsString"]')[1]).val("31.12.2020");$($('input[ng-model="dateAsString"]')[0]).trigger('change');$($('input[ng-model="dateAsString"]')[1]).trigger('change'); }); //--------------------------------------------------------------------------ДАТЫ ОПЛАТ ДРСО------------------------------------------------------------------------------------------// $( '#rso-01-2021' ).click(async function(){ $('input[ng-model="month"]').val('1');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-02-2021' ).click(async function(){ $('input[ng-model="month"]').val('2');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-03-2021' ).click(async function(){ $('input[ng-model="month"]').val('3');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-04-2021' ).click(async function(){ $('input[ng-model="month"]').val('4');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-05-2021' ).click(async function(){ $('input[ng-model="month"]').val('5');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-06-2021' ).click(async function(){ $('input[ng-model="month"]').val('6');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-07-2021' ).click(async function(){ $('input[ng-model="month"]').val('7');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-08-2021' ).click(async function(){ $('input[ng-model="month"]').val('8');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-09-2021' ).click(async function(){ $('input[ng-model="month"]').val('9');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-10-2021' ).click(async function(){ $('input[ng-model="month"]').val('10');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-11-2021' ).click(async function(){ $('input[ng-model="month"]').val('11');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-12-2021' ).click(async function(){ $('input[ng-model="month"]').val('12');$('input[ng-model="year"]').val('2021');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-01-2020' ).click(async function(){ $('input[ng-model="month"]').val('1');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-02-2020' ).click(async function(){ $('input[ng-model="month"]').val('2');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-03-2020' ).click(async function(){ $('input[ng-model="month"]').val('3');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-04-2020' ).click(async function(){ $('input[ng-model="month"]').val('4');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-05-2020' ).click(async function(){ $('input[ng-model="month"]').val('5');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-06-2020' ).click(async function(){ $('input[ng-model="month"]').val('6');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-07-2020' ).click(async function(){ $('input[ng-model="month"]').val('7');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-08-2020' ).click(async function(){ $('input[ng-model="month"]').val('8');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-09-2020' ).click(async function(){ $('input[ng-model="month"]').val('9');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-10-2020' ).click(async function(){ $('input[ng-model="month"]').val('10');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-11-2020' ).click(async function(){ $('input[ng-model="month"]').val('11');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); $( '#rso-12-2020' ).click(async function(){ $('input[ng-model="month"]').val('12');$('input[ng-model="year"]').val('2020');$('input[ng-model="month"]').trigger('change');$('input[ng-model="year"]').trigger('change'); }); //--------------------------------------------------------------------------ТАРИФЫ И НОРМАТИВЫ------------------------------------------------------------------------------------------// $( '#razmestit-tarify' ).click(async function(){ $('li[ng-click="approveTariff(tariff)"]').click(); }); //--------------------------------------------------------------------------ПАСПОРТ ДОМА------------------------------------------------------------------------------------------// $( '#razvernut-vse-har' ).click(async function(){ $('a[class="collapse-toggle__ctr _collapsed"]').click(); await sleep(200); $('a[class="collapse-toggle__ctr _collapsed"]').click(); await sleep(200); $('a[class="collapse-toggle__ctr _collapsed"]').click(); await sleep(200); $('a[class="collapse-toggle__ctr _collapsed"]').click(); await sleep(200); $('a[class="collapse-toggle__ctr _collapsed"]').click(); await sleep(200); $('a[class="collapse-toggle__ctr _collapsed"]').click(); await sleep(200); $('a[class="collapse-toggle__ctr _collapsed"]').click(); }); //--------------------------------------------------------------------------Объемы комуслуг------------------------------------------------------------------------------------------// $( '#razmestit-vse-periody' ).click(async function(){ $('a[ng-click="$parentScope.approve(rowData)"]').click(); }); $( '#sbros-period-obj' ).click(async function(){ $($('input[ng-model="month"]')[0]).val(''); $($('input[ng-model="month"]')[0]).trigger('change'); $($('input[ng-model="month"]')[1]).val(''); $($('input[ng-model="month"]')[1]).trigger('change'); $($('input[ng-model="year"]')[0]).val(''); $($('input[ng-model="year"]')[0]).trigger('change'); $($('input[ng-model="year"]')[1]).val(''); $($('input[ng-model="year"]')[1]).trigger('change'); }); //--------------------------------------------------------------------------Реестр ТСЖ------------------------------------------------------------------------------------------// $( '#razmestit-reestr' ).click(async function(){ $('a[ng-click="menuActions.approve(member)"]').click(); await sleep(1000); $('button[ng-click="yes(\'ok\')"]').click(); await sleep(1000); $('button[ng-click="yes(\'ok\')"]').click(); }); //--------------------------------------------------------------------------Договоры использования общего имущества------------------------------------------------------------------------------------------// ////автопересчет переплаты или задолженности $(document).arrive('input[ng-model="rentAgreementPayment.bill"]', function(newElem) { $('input[ng-model="rentAgreementPayment.bill"]').change(function(){ let bill = $('input[ng-model="rentAgreementPayment.bill"]').val(); //начислено let paid = $('input[ng-model="rentAgreementPayment.paid"]').val(); //оплачено let debt = paid - bill; $('input[ng-model="rentAgreementPayment.debt"]').val(debt); $('input[ng-model="rentAgreementPayment.debt"]').trigger('change'); }); $('input[ng-model="rentAgreementPayment.paid"]').change(function(){ let bill = $('input[ng-model="rentAgreementPayment.bill"]').val(); //начислено let paid = $('input[ng-model="rentAgreementPayment.paid"]').val(); //оплачено let debt = paid - bill; $('input[ng-model="rentAgreementPayment.debt"]').val(debt); $('input[ng-model="rentAgreementPayment.debt"]').trigger('change'); }); }); //--------------------------------------------------------------------------Калькулятор------------------------------------------------------------// $('#custom-calculate').on('input', function() { try { let cuscal = $('#custom-calculate').val(); cuscal = cuscal.replace(',','.'); cuscal = eval(cuscal); $('#custom-calculate-result').empty(); $('#custom-calculate-result').append(cuscal); } catch (err) { //console.log('в калькуляторе ошибка'); } }); }); }, 1500);