{% extends "base.html" %} {% block title %}领用审核 - 总部{% endblock %} {% block content %}
待审核申请 {% if pending %} {{ pending|length }} {% endif %}
{% if pending %} {% for req in pending %}
申请单 #{{ req.id }} {{ req.store_name }} 申请人:{{ req.applicant_name }}
{{ req.created_at[:19] }}
{% for item in req['items'] %} {% endfor %}
水果品类 申请件数 总部库存 库存状态
{{ item.fruit_name }} {{ item.quantity }} {{ item.warehouse_stock }} {% if item.sufficient %} 库存充足 {% else %} 库存不足! 缺{{ item.quantity - item.warehouse_stock }}件 {% endif %}
{% if req.note %} {% endif %}
{% endfor %} {% else %}
暂无待审核的领用申请
{% endif %}
已审核记录
{% if approved %}
{% for req in approved %} {% endfor %}
单号 门店 申请人 审核人 状态 明细 时间
#{{ req.id }} {{ req.store_name }} {{ req.applicant_name }} {{ req.approver_name or '-' }} {{ '已通过' if req.status == 'approved' else '已驳回' }} {% for item in req['items'] %} {{ item.fruit_name }} ×{{ item.quantity }} {% endfor %} {{ req.created_at[:19] }}
{% else %}
暂无已审核记录
{% endif %} {% endblock %}