{% extends 'layouts/main-layout.html' %} {% block content %}

仪表盘

{% if perms.authentication.view_asset or perms.authentication.add_asset or perms.authentication.edit_asset or perms.authentication.delete_asset %}
资产
{% if asset_count %}
{{asset_count}}
{% else %}
0
{% endif %}
{% endif %} {% if perms.authentication.add_assign_asset or perms.authentication.reassign_assign_asset or perms.authentication.delete_assign_asset %}
已分配资产
{% if assign_assets_counts %}
{{assign_assets_counts}}
{% else %}
0
{% endif %}
未分配资产
{% if unassign_assets_count %}
{{unassign_assets_count}}
{% else %}
0
{% endif %}
{% endif %} {% if perms.authentication.view_vendor or perms.authentication.add_vendor or perms.authentication.edit_vendor or perms.authentication.delete_vendor %}
供应商
{% if vendor_count %}
{{vendor_count}}
{% else %}
0
{% endif %}
{% endif %} {% if perms.authentication.view_location or perms.authentication.add_location or perms.authentication.edit_location or perms.authentication.delete_location %}
位置
{% if location_count %}
{{location_count}}
{% else %}
0
{% endif %}
{% endif %} {% if perms.authentication.view_product or perms.authentication.add_product or perms.authentication.edit_product or perms.authentication.delete_product %}
产品
{% if product_count %}
{{product_count}}
{% else %}
0
{% endif %}
{% endif %} {% if request.user.is_superuser %}
用户
{% if users_count %}
{{users_count}}
{% else %}
0
{% endif %}
{% endif %} {% if perms.authentication.view_asset or perms.authentication.add_asset or perms.authentication.edit_asset or perms.authentication.delete_asset %}
总资产成本
{% if all_asset_cost %}
{{all_asset_cost}} {{request.user.organization.currency|default_if_none:""}}
{% else %}
0
{% endif %}
{% endif %}
{% if perms.authentication.add_assign_asset or perms.authentication.reassign_assign_asset or perms.authentication.delete_assign_asset %}

即将到期的保修

Assets

{% for asset in expiring_assets %} {% endfor %}
序号 名称 当前状态 保修到期日期

{{forloop.counter}}

{{asset.name}}

{% if asset.is_assigned %} In Use {% else %} In Store {% endif %}

{{asset.warranty_expiry_date}}

{% endif %}

最近活动

{% if perms.authentication.view_vendor or perms.authentication.add_vendor or perms.authentication.edit_vendor or perms.authentication.delete_vendor %}

供应商

{% for vendor in latest_vendor_list %} {% endfor %}
序号 名称 日期

{{forloop.counter}}

{{vendor.name}}

{{vendor.created_at.date}}

{% endif %} {% if perms.authentication.view_product or perms.authentication.add_product or perms.authentication.edit_product or perms.authentication.delete_product %}

产品

{% for product in latest_product_list %} {% endfor %}
序号 名称 日期

{{forloop.counter}}

{{product.name}}

{{product.created_at.date}}

{% endif %} {% if perms.authentication.view_location or perms.authentication.add_location or perms.authentication.edit_location or perms.authentication.delete_location %}

位置

{% for location in all_location_list %} {% endfor %}
序号 地址 日期

{{forloop.counter}}

{{location.address}}

{{location.created_at.date}}

{% endif %} {% if request.user.is_superuser %}

用户

{% for users in latest_users_list %} {% endfor %}
序号 名称 日期

{{forloop.counter}}

{{users.full_name}}

{{users.created_at.date}}

{% endif %}
{% endblock content %}