- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
151 lines
8.8 KiB
HTML
Executable File
151 lines
8.8 KiB
HTML
Executable File
<!doctype html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="theme-color" content="#101015">
|
||
<title>Передать показания — Dark Tariff</title>
|
||
<link rel="stylesheet" href="/static/src/styles/main.css">
|
||
</head>
|
||
<body>
|
||
<header class="topbar">
|
||
<div class="shell topbar-inner">
|
||
<a class="brand" href="#/submit" aria-label="Dark Tariff — главная">
|
||
<svg id="brand-mark" class="brand-mark" viewBox="0 0 36 36" aria-hidden="true">
|
||
<path class="meter-shell" d="M10 2h16l8 8v16l-8 8H10l-8-8V10z"/>
|
||
<path class="meter-screen" d="M8 8h20v10H8z"/>
|
||
<path class="meter-readout" d="M12 13h4m4 0h4"/>
|
||
<path class="meter-dial" d="M9 28a9 9 0 0 1 18 0M18 27l6-6"/>
|
||
<circle class="meter-core" cx="18" cy="27" r="2"/>
|
||
</svg><span>Dark Tariff</span>
|
||
</a>
|
||
<nav class="main-nav" aria-label="Основные разделы">
|
||
<a href="#/submit" data-route="submit">Передать показания</a>
|
||
<a href="#/history" data-route="history">Показания</a>
|
||
<a href="#/receipts" data-route="receipts">Квитанции</a>
|
||
<a href="#/finance" data-route="finance">Финансы</a>
|
||
</nav>
|
||
</div>
|
||
</header>
|
||
|
||
<main class="shell">
|
||
<section class="page" data-page="submit" aria-labelledby="submit-page-title">
|
||
<p class="eyebrow">Учёт ресурсов</p>
|
||
<h1 id="submit-page-title">Передавайте показания</h1>
|
||
<p class="intro">Фиксируйте показания в новом сервисе Night City — Dark Tariff</p>
|
||
<button id="reading-open" class="primary" type="button" disabled>Передать показания</button>
|
||
<div id="page-note" class="note" role="status" aria-live="polite" hidden></div>
|
||
</section>
|
||
|
||
<section class="page" data-page="history" aria-labelledby="history-page-title" hidden>
|
||
<p class="eyebrow">Переданные показания</p>
|
||
<h1 id="history-page-title">Показания</h1>
|
||
<div id="history-note" class="note" role="status" aria-live="polite">Загрузка…</div>
|
||
<div id="history" class="history-grid"></div>
|
||
</section>
|
||
<section class="page" data-page="receipts" aria-labelledby="receipts-page-title" hidden>
|
||
<p class="eyebrow">Расчёт ресурсов</p>
|
||
<h1 id="receipts-page-title">Квитанции</h1>
|
||
<div id="receipts-note" class="note" role="status" aria-live="polite">Загрузка…</div>
|
||
<div id="receipts" class="history-grid"></div>
|
||
</section>
|
||
<section class="page" data-page="finance" aria-labelledby="finance-page-title" hidden>
|
||
<p class="eyebrow">Финансовый отчёт</p>
|
||
<h1 id="finance-page-title">Финансы</h1>
|
||
<div class="finance-controls">
|
||
<label><span>Период</span><input id="finance-period" type="month" required></label>
|
||
<label><span>Сортировка</span><select id="finance-sort"></select></label>
|
||
<label><span>Группировка</span><select id="finance-group">
|
||
<option value="period, resource, tariff">По ресурсу и тарифу</option>
|
||
<option value="period, resource">По ресурсу</option>
|
||
<option value="period">По месяцу</option>
|
||
</select></label>
|
||
<label><span>Ресурс содержит</span><input id="finance-filter" type="text" placeholder="Например, Вода"></label>
|
||
<button id="finance-export" class="primary" type="button" disabled>Скачать CSV</button>
|
||
</div>
|
||
<fieldset class="finance-options">
|
||
<legend>Колонки отчёта</legend>
|
||
<div id="finance-fields"></div>
|
||
</fieldset>
|
||
<div id="finance-note" class="note" role="status" aria-live="polite">Загрузка…</div>
|
||
<div class="finance-scroll"><table id="finance-table" hidden></table></div>
|
||
</section>
|
||
</main>
|
||
|
||
<dialog id="reading-dialog" aria-labelledby="reading-dialog-title">
|
||
<div class="panel-head">
|
||
<h2 id="reading-dialog-title">Передать показания</h2>
|
||
<button id="reading-close" class="action" type="button" aria-label="Закрыть форму">×</button>
|
||
</div>
|
||
<form id="reading-form" autocomplete="off">
|
||
<label><span>Серийный ID счётчика</span><input name="serial" maxlength="128" required></label>
|
||
<label><span>Вид измеряемой величины</span><select name="kind" required><option value="">Выберите ресурс</option></select></label>
|
||
<div id="metric-fields" class="metric-grid"></div>
|
||
<div id="reading-note" class="note" role="status" aria-live="polite" hidden></div>
|
||
<button class="primary" type="submit">Отправить показания</button>
|
||
</form>
|
||
</dialog>
|
||
|
||
<dialog id="verification-dialog" aria-labelledby="verification-title">
|
||
<div class="panel-head">
|
||
<h2 id="verification-title">Сохраните идентификаторы</h2>
|
||
<button id="verification-close" class="action" type="button" aria-label="Закрыть идентификаторы">×</button>
|
||
</div>
|
||
<div class="verification-body">
|
||
<p>Сохраните оба идентификатора. Они показываются только один раз: для проверки показания и открытия квитанции.</p>
|
||
<p>ID показания: <strong id="verification-reading"></strong></p>
|
||
<p>ID квитанции: <strong id="verification-receipt"></strong></p>
|
||
<label><span>Идентификатор проверки</span><textarea id="verification-secret" rows="4" readonly spellcheck="false"></textarea></label>
|
||
<label><span>Расчётный идентификатор</span><textarea id="calculation-secret" rows="2" readonly spellcheck="false"></textarea></label>
|
||
</div>
|
||
</dialog>
|
||
|
||
<dialog id="receipt-dialog" aria-labelledby="receipt-dialog-title">
|
||
<div class="panel-head">
|
||
<h2 id="receipt-dialog-title">Квитанция</h2>
|
||
<button id="receipt-close" class="action" type="button" aria-label="Закрыть квитанцию">×</button>
|
||
</div>
|
||
<form id="receipt-form" autocomplete="off">
|
||
<label><span>Расчётный идентификатор</span><input name="calculation_id" type="password" minlength="44" maxlength="44" required></label>
|
||
<div id="receipt-note" class="note" role="status" aria-live="polite" hidden></div>
|
||
<button class="primary" type="submit">Открыть квитанцию</button>
|
||
</form>
|
||
<div id="receipt-content" class="verification-body" hidden>
|
||
<dl id="receipt-details" class="receipt-details"></dl>
|
||
<label><span>Публичные параметры показания</span><textarea id="receipt-parameters" rows="4" readonly spellcheck="false"></textarea></label>
|
||
</div>
|
||
</dialog>
|
||
|
||
<dialog id="reading-result-dialog" aria-labelledby="reading-result-title">
|
||
<div class="panel-head">
|
||
<h2 id="reading-result-title">Показание</h2>
|
||
<button id="reading-result-close" class="action" type="button" aria-label="Закрыть показание">×</button>
|
||
</div>
|
||
<div class="verification-body"><dl id="reading-result-details" class="receipt-details"></dl></div>
|
||
</dialog>
|
||
|
||
<section id="help-chat" class="help-chat panel" role="dialog" aria-labelledby="help-chat-title" hidden>
|
||
<div class="panel-head">
|
||
<h2 id="help-chat-title">Помощник Dark Tariff</h2>
|
||
<button id="help-close" type="button" class="action" aria-label="Закрыть чат">×</button>
|
||
</div>
|
||
<div class="help-messages" role="log" aria-live="polite">
|
||
<p id="help-message">Загрузка…</p>
|
||
</div>
|
||
<div class="help-controls">
|
||
<button id="help-question" class="action" type="button" disabled>Помогите мне проверить мои переданные показания</button>
|
||
<form id="help-form" autocomplete="off" hidden>
|
||
<label id="help-id-label"><span>ID показания</span><input id="help-id" name="reading_id" type="number" min="1" step="1" required></label>
|
||
<label id="help-data-label" hidden><span>Данные проверки (JSON)</span><textarea id="help-data" rows="5" maxlength="24000" spellcheck="false" disabled required></textarea></label>
|
||
<div id="help-note" class="note" role="status" aria-live="polite" hidden></div>
|
||
<button class="primary" type="submit">Отправить</button>
|
||
</form>
|
||
</div>
|
||
</section>
|
||
<button id="help-launcher" class="help-launcher" type="button" aria-controls="help-chat" aria-expanded="false">
|
||
<span class="help-hint">Нужна помощь?</span>
|
||
<svg class="brand-mark" viewBox="0 0 36 36" aria-hidden="true"><use href="#brand-mark"/></svg>
|
||
</button>
|
||
<script type="module" src="/static/src/main.js"></script>
|
||
</body>
|
||
</html>
|