{% extends "base.html" %} {% block title %}{{ lot.name }} — GMAO{% endblock %} {% block content %}

{{ lot.name }}

{% if lot.company %}

{{ lot.company.trade_name or lot.company.specialty }}

{% endif %}
{% if lot.needs_equipment_attention %}
Lot présent sans équipement. Rattachez au moins un équipement ou marquez ce lot comme non présent.
{% elif not lot.is_present %}
Ce lot n’est pas présent dans l’établissement. {% if lot.absence_reason %}
{{ lot.absence_reason }}
{% endif %}
{% endif %}
Informations
Nom
{{ lot.name }}
Présence
{% if lot.is_present %}Présent {% else %}Non présent{% endif %}
{% if lot.description %}
Description
{{ lot.description }}
{% endif %} {% if lot.company %}
Entreprise
{{ lot.company.trade_name or lot.company.specialty }}
{% endif %}
Catégorie
{% if lot.category %} {{ lot.category.name }} {% else %} Non assignée {% endif %}
{% if not lot.active_equipment_count %}
Statut du lot
{% if lot.is_present %}
{% else %} {% endif %}
{% endif %}
Maintenance préventive
Le lot définit les règles héritées par ses équipements.
Ajouter une tâche
{{ lot.tasks|length }}
règles
{{ task_counts.planned }}
planifiées
{{ task_counts.suspended }}
suspendues
{{ task_counts.overdue }}
en retard
{% if lot.tasks %}
{% for task in lot.tasks %}{% endfor %}
TâcheDéclenchementPortéeIndisponibilité
{{ task.num_tache or '—' }}{{ task.tache or 'Tâche sans nom' }}
{{ task.periodicite or (task.jours_entre_interventions|string + ' jours' if task.jours_entre_interventions else 'Périodicité à définir') }}
{% if task.is_safety_critical %}Sécurité{% endif %}
{{ task.trigger_type|replace('calendar','calendrier')|replace('season','saison')|replace('event','événement')|replace('weather','météo')|replace('meter','compteur')|title }}{{ {'auto':'Automatique','group':'Groupe / salle','unit':'Par unité'}.get(task.application_scope, task.application_scope) }}{{ {'suspend':'Suspendre','keep':'Maintenir','postpone':'Reporter'}.get(task.unavailable_policy, task.unavailable_policy) }}
{% else %}
Aucune règle préventive. Ajoutez-en une pour générer les échéances.
{% endif %}
{# Équipements du lot #} {% if equipments %}
Équipements ({{ equipments|length }})
{% for eq in equipments %} {% endfor %}
Nom Localisation Statut Compteurs
{{ eq.name }} {% if eq.room %} {{ eq.room.name }} {% elif eq.location %} {{ eq.location }} {% else %} {% endif %} {% if eq.status == 'active' %} En service {% elif eq.status == 'inactive' %} Inactif {% elif eq.status == 'maintenance' %} Maintenance {% elif eq.status == 'retired' %} Retiré {% else %} {{ eq.status }} {% endif %} {% if eq.meters %} {% for meter in eq.meters %} {{ meter.name }}: {{ meter.current_value }} {{ meter.unit }} {% endfor %} {% else %} {% endif %}
{% else %}
Aucun équipement dans ce lot. Rechercher un équipement pour l'ajouter à ce lot.
{% endif %}
{% endblock %}