📦 物料入库系统
M1+M2+M3
工厂
全部工厂(汇总)
{% for f in factories %}
{{ f.code }} · {{ f.name }}
{% endfor %}
库存看板
物料
入库
出库
流水
{% if g.user and g.user.role in ('admin','manager') %}
BOM
生产订单
报表
日志
工厂
调拨
替代料
{% endif %} {% if g.user and g.user.role == 'admin' %}
用户
{% endif %} {% if g.user %}
{{ g.user.display_name or g.user.username }} ({{ g.user.role }})
退出
{% endif %}
{% with msgs = get_flashed_messages(with_categories=true) %} {% for cat, msg in msgs %}
{{ msg }}
{% endfor %} {% endwith %} {% block content %}{% endblock %}