{% extends "base.html" %} {% block title %}工作台 - 水果库存管理{% endblock %} {% block content %} {% if current_user.role == 'admin' %}

总部工作台

{{ store_count }}
管理门店
{{ fruit_count }}
水果品类
{{ total_inbound }}
总入库(件)
{{ total_outbound }}
已领用(件)
{{ pending_count }}
待审核
{{ total_stock }}
总剩余库存(件)
今日动态 {{ today }}
{{ today_inbound }}
今日入库(件)
{{ today_requisition }}
今日申领单
总部仓库库存总览
{% for item in warehouse %} {% endfor %}
水果品类 总入库 已领用 当前库存 库存状态
{{ item.fruit_name }} {{ item.total_inbound }} {{ item.total_outbound }} {{ item.current_stock }} {% if item.current_stock == 0 %} 缺货 {% elif item.current_stock <= 10 %} 低库存 {% elif item.current_stock <= 30 %} 正常 {% else %} 充足 {% endif %}
{% else %}

{{ store_name }} · 工作台

{{ total_stock }}
本店总库存(件)
{{ today_sales }}
今日销售(件)
{{ pending_my }}
待审核申请
{{ approved_my }}
今日已通过
{{ store_name }} · 当前库存
{% for item in inventory %} {% endfor %}
水果品类 已领用 已销售 当前库存 状态
{{ item.fruit_name }} {{ item.total_received }} {{ item.total_sold }} {{ item.current_stock }} {% if item.current_stock == 0 %} 售罄 {% elif item.current_stock <= 5 %} 库存紧张 {% else %} 正常 {% endif %}
{% endif %} {% endblock %}