{% extends "base.html" %} {% block title %}材料指标{% endblock %} {% block page_header %} {% endblock %} {% block content %} {% if request.query_params.get('ok') %}
导入成功
{% endif %}
{% for k,v in flag_counts.items() %}
标志「{{ k }}」
{{ v }}
{% endfor %}
{% if user.role in ['consult','oversee'] %}
模拟导入(Excel/CSV)

样例文件:data/materials_sample.csv。列:indicator_code, indicator_name, unit, value_raw, flag

{% endif %}
指标台账
{% for m in materials %} {% endfor %}
编码名称单位原始值数值标志来源操作
{{ m.indicator_code }} {{ m.indicator_name }} {{ m.unit }} {{ m.value_raw if m.value_raw is not none else '' }} {% if m.value_num is not none %}{{ m.value_num }}{% else %}—{% endif %} {{ m.flag }} {{ m.source }} {% if user.role in ['consult','oversee'] %}
{% else %}—{% endif %}
{% endblock %}