эксплуатация: показания счётчиков, энергоактивы и РРО

Конфиг счётчиков и день/ночь-тарифы, учёт энергосистем (генераторы,
инверторы), доступ к разделу РРО/ПРРО.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-09-09 18:03:44 +03:00
parent 3e969e29dc
commit 16bf2cf1c7
26 changed files with 2044 additions and 88 deletions
+11 -3
View File
@@ -1,6 +1,7 @@
{% load i18n %}
<div class="page-content">
{% if not accounting_embed %}<div class="page-content">{% endif %}
{% if not accounting_embed %}
<div style="margin-bottom:1.5rem; display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap;">
<div>
<h1 style="font-size:1.25rem; font-weight:500; color:var(--color-foreground);">{% trans "РРО / ПРРО" %}</h1>
@@ -14,6 +15,13 @@
</button>
{% endif %}
</div>
{% elif can_edit_rro %}
<div style="margin-bottom:1rem; display:flex; justify-content:flex-end;">
<button type="button" class="btn btn-primary" style="font-size:0.8125rem; white-space:nowrap;" onclick="rroOpenCreate()">
{% trans "Добавить" %}
</button>
</div>
{% endif %}
{% if rro_form_message %}
<div style="margin-bottom:1rem; padding:0.75rem 1rem; border-radius:0.5rem; border:1px solid hsl(152 40% 70%); background:color-mix(in srgb, var(--color-success) 12%, var(--color-card)); color:var(--color-foreground); font-size:0.875rem;">
@@ -21,7 +29,7 @@
</div>
{% endif %}
<form method="get" hx-get="/rro/" hx-target="#main-content" hx-push-url="true" hx-indicator="#loader"
<form method="get" hx-get="{{ accounting_base_url|default:'/rro/' }}" hx-target="#main-content" hx-push-url="true" hx-indicator="#loader"
style="display:flex; align-items:center; gap:0.5rem; margin-bottom:1rem; flex-wrap:wrap;">
<input type="text" name="q" value="{{ filter_q }}" class="input" style="width:14rem;"
placeholder="{% trans 'ФН, серийник, модель…' %}">
@@ -219,7 +227,7 @@
<script type="application/json" id="rro-registers-json">{{ registers_json|safe }}</script>
{% if rro_form_data_json %}<script type="application/json" id="rro-form-data-json">{{ rro_form_data_json|safe }}</script>{% endif %}
{% endif %}
</div>
{% if not accounting_embed %}</div>{% endif %}
{% if can_edit_rro %}
<script>