{% extends "base.html" %} {% block content %}
在途工单总数 {{ total_orders }}
{% if current_user.branch == '交付中心' %}
{% for branch, count in branch_stats.items() %} {{ branch }} {{ count }} {% endfor %}
{% if selected_branch %} 清除筛选 {% endif %}
{% endif %}
{% if request.args.get('device_type') or request.args.get('project_type') %} 清除筛选 {% endif %}
{% for work_order in work_orders %} {% endfor %}
工单号 所属支局 故障设备 设备类型 项目类型 派单时间 派单时长
{{ work_order.order_id }} {{ work_order.device.branch }} {{ work_order.device.device_id }} {{ work_order.device.device_type }} {{ work_order.device.project_type }} {{ work_order.dispatch_time }} {{ work_order.duration }}
{% for work_order in work_orders %}
工单号: {{ work_order.order_id }} {{ work_order.duration }}
故障设备 {{ work_order.device.device_id }}
设备类型 {{ work_order.device.device_type }}
所属支局 {{ work_order.device.branch }}
项目类型 {{ work_order.device.project_type }}
派单时间 {{ work_order.dispatch_time }}
{% endfor %}
{% if work_orders.has_prev %} 上一页 {% endif %} 第 {{ work_orders.page }} 页,共 {{ work_orders.pages }} 页 {% if work_orders.has_next %} 下一页 {% endif %}
{% endblock %}