{% extends "base.html" %} {% block title %}投资估算{% endblock %} {% block page_header %} {% endblock %} {% block content %} {% include "_kpi_legend.html" %} {% if not versions %}
暂无估算版本
{% else %}
方案/基准当前版本合计
{{ '%.2f'|format(total) }} 万元
版本状态
{{ version.status if version else '—' }}{% if version and version.baseline_flag %} · 基准{% endif %}
版本数
{{ versions|length }}

版本列表

{% for v in versions %} {% endfor %}
版本标题状态基准发布信息
V{{ v.version_no }} {{ v.title }} {{ v.status }} {% if v.baseline_flag %}是{% else %}—{% endif %} {{ v.published_by or '' }} {{ v.published_at or '' }} {% if user and user.role in ['consult','oversee'] and v.status=='published' and not v.baseline_flag %}
{% endif %}
{% if version and user and user.role in ['consult','oversee'] %}
{% if version.status=='draft' %}
{% endif %} {% endif %}
{% if cat_totals %}

类别合计 方案

{% for c in cat_totals %}{% endfor %}
类别金额(万元)
{{ c.category }}{{ '%.2f'|format(c.amount) }}
{% endif %}

分项明细 {% if can_edit %}可编辑草稿{% else %}只读{% endif %}

{% if not items %}
无分项
{% endif %} {% if can_edit %}{% endif %} {% for it in items %} {% if can_edit %} {% else %} {% endif %} {% endfor %}
类别名称单位数量单价(万元)金额(万元)备注操作
{{ it.category }} {{ it.name }} {{ it.unit }}
{{ '%.2f'|format(it.amount) }}
{{ it.qty }}{{ it.unit_price }}{{ it.amount }}{{ it.remark }}
{% endif %} {% endblock %}