{% extends "base.html" %}
{% block title %}工作台 - 水果库存管理{% endblock %}
{% block content %}
{% if current_user.role == 'admin' %}
总部工作台
{{ total_inbound }}
总入库(件)
{{ total_outbound }}
已领用(件)
{{ total_stock }}
总剩余库存(件)
{{ today_inbound }}
今日入库(件)
{{ today_requisition }}
今日申领单
| 水果品类 |
总入库 |
已领用 |
当前库存 |
库存状态 |
{% for item in warehouse %}
| {{ 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 %}
|
{% endfor %}
{% else %}
{{ store_name }} · 工作台
{{ total_stock }}
本店总库存(件)
{{ today_sales }}
今日销售(件)
| 水果品类 |
已领用 |
已销售 |
当前库存 |
状态 |
{% for item in inventory %}
| {{ item.fruit_name }} |
{{ item.total_received }} |
{{ item.total_sold }} |
{{ item.current_stock }}
|
{% if item.current_stock == 0 %}
售罄
{% elif item.current_stock <= 5 %}
库存紧张
{% else %}
正常
{% endif %}
|
{% endfor %}
{% endif %}
{% endblock %}