{% extends "base.html" %} {% block body %}

工作台

{{ counts.get('pending_approval', 0) }}
待审批
{{ counts.get('approved', 0) }}
审批通过
{{ counts.get('draft', 0) }}
草稿
{{ '%.2f'|format(month_total) }}
审批通过订单总额(元)
{% from 'tracking_macros.html' import progress, invoice, tasks, actions with context %}

付款与交货待办

先核对变更,再跟进付款与交货。同一订单可能出现在多个提醒中。

全部订单

交货、收票或付款未登记,以及变更后待核对的订单,可在 其他待跟进({{ tracking_counts['work_other'] }})查看。

{% for key in ['prepayment','invoice_due','paid_undelivered','recheck'] %}
{{ tracking_counts[key] }}
{{ TRACKING_FILTERS[key] }}
{% endfor %}

{{ TRACKING_FILTERS[tracking_key] }} 共 {{ tracking_total }} 单

同类优先显示较早订单;付款、交货、收票均完成后默认收起。

{% for o in tracking_rows %} {% else %}{% endfor %}
订单 / 供应商金额付款进度交货进度收票待办 / 操作
{{ o.order_no }}
{{ o.supplier_name }}
{% if o.needs_prepayment %}需提前付款{{ '(待核对)' if o.fulfillment_stale else '' }}{% endif %}
¥{{ '%.2f'|format(o.total_amount) }} {{ progress(o, 'payment') }} {{ progress(o, 'delivery') }} {{ invoice(o) }} {{ tasks(o) }}{{ actions(o, user) }}
当前分类暂无订单。可切换分类查看其他订单。
{% if tracking_total > tracking_rows|length %}

查看全部 {{ tracking_total }} 单 →

{% endif %} {% if tracking_key != 'open' %}

返回全部待跟进({{ tracking_counts['open'] }})

{% endif %}
{% if todo %}

待我处理({{ todo|length }})

{% for o in todo %} {% endfor %}
单号类型供应商金额状态提交时间操作
{{ o.order_no }} {{ o.doc_type_text }} {{ o.supplier_name }} {{ '%.2f'|format(o.total_amount) }} {{ o.status_text }} {{ o.submitted_at.strftime('%m-%d %H:%M') if o.submitted_at else '-' }} 去处理
{% endif %}

我的订单

{% if my_orders %} {% for o in my_orders %} {% endfor %}
单号类型供应商金额状态创建时间
{{ o.order_no }} {{ o.doc_type_text }} {{ o.supplier_name }} {{ '%.2f'|format(o.total_amount) }} {{ o.status_text }} {{ o.created_at.strftime('%Y-%m-%d %H:%M') }}
{% else %}

暂无订单,点右上角「新建订单」开始。

{% endif %}
{% endblock %}