{% extends "assetapp/base.html" %} {% load asset_tags %} {% block title %}仪表盘 - 希姆计算资产管理{% endblock %} {% block content %}

仪表盘

新增资产
{{ total_assets }}
资产总数
{{ status_data.in_use|default:0 }}
在用
{{ expiring_soon }}
即将过保(30天)
{{ expired }}
已过保
分类统计
{% if category_stats %} {% for item in category_stats %}
{{ item.category__name }}
{% widthratio item.count total_assets 100 as pct %}
{{ item.count }}
{% endfor %} {% else %}

暂无数据

{% endif %}
状态分布
{% for key, label in status_map.items %}
{{ label }} {{ status_data|get_item:key|default:0 }}
{% endfor %}
最近变更 查看全部
{% for log in recent_changes %} {% empty %} {% endfor %}
时间 资产编号 操作 描述 操作人
{{ log.created_at|date:"m-d H:i" }} {{ log.asset_number }} {{ log.get_action_display }} {{ log.description|default:"-" }} {{ log.operator|default:"-" }}
暂无变更记录
{% endblock %}