{% extends "base.html" %}
{% block title %}峰和友能源 · 仪表盘{% endblock %}
{% block topbar_title %}仪表盘{% endblock %}
{% block content %}
{% set ns = namespace(total_actual=0, total_target=0, over_count=0) %}
{% for gs in group_stats %}
{% set ns.total_actual = ns.total_actual + gs.actual %}
{% set ns.total_target = ns.total_target + gs.target %}
{% if gs.exceeded > 0 %}{% set ns.over_count = ns.over_count + 1 %}{% endif %}
{% endfor %}
暂无分组数据
| 日期 | 类型 | 来源 | 数量 |
|---|---|---|---|
| {{ r.date.strftime('%m-%d') }} | {% if r.supplier_type == 'fixed' %}固定 {% elif r.supplier_type == 'spot' %}临时 {% else %}自有{% endif %} | {% if r.supplier_type == 'fixed' %}{{ r.group.name if r.group else '—' }} {% else %}{{ r.spot_supplier.name if r.spot_supplier else '—' }}{% endif %} | {{ (r.quantity_ton * 2000)|round|int }} 斤 |
暂无入库记录
| 日期 | 去向 | 数量 | 金额 |
|---|---|---|---|
| {{ r.date.strftime('%m-%d') }} | {{ r.destination or '—' }} | {{ r.quantity_ton }} 吨 | {{ '%.2f'|format(r.total_amount or 0) }} 元 |
暂无出库记录