{% extends "base.html" %} {% block title %}贷款申请 - {{ app.customer_name }}{% endblock %} {% block header_title %}贷款申请详情{% endblock %} {% block content %}

{{ app.customer_name }}

{{ app.customer_phone }} · {{ app.created_at[:10] if app.created_at else '' }}

{% if not app.result or app.result == '进行中' %} {% if app.current_stage == '放款' %}
{% endif %} 编辑 {% endif %}
产品
{{ app.product_name or '-' }}
申请金额
{{ (app.amount|string + '万') if app.amount else '-' }}
利率
{{ (app.rate|string + '%') if app.rate else '-' }}
期限
{{ (app.term_months|string + '个月') if app.term_months else '-' }}
当前阶段
{{ app.current_stage }}
最终结果
{{ app.result or '进行中' }}
{% if app.rejection_name %}
拒绝原因
{{ app.rejection_name }}
{% endif %} {% if app.fail_detail %}
失败详情
{{ app.fail_detail }}
{% endif %} {% if app.next_action %}
下一步
{{ app.next_action }}
{% endif %} {% if app.next_action_at %}
行动日期
{{ app.next_action_at[:10] if app.next_action_at else '' }}
{% endif %}

流程进度

{% for s in all_stages %} {% set stage_idx = all_stages.index(s) %} {% set current_idx = all_stages.index(app.current_stage) if app.current_stage in all_stages else 0 %}
{% if stage_idx < current_idx %}✓{% else %}{{ stage_idx + 1 }}{% endif %}
{{ s }}
{% if not loop.last %}
{% endif %}
{% endfor %}
{% if stages %}

流转记录

{% for log in stages %}
{{ log.created_at[:16] if log.created_at else '' }} {{ log.from_stage or '开始' }} → {{ log.to_stage }} {% if log.note %}{{ log.note[:80] }}{% endif %}
{% endfor %}
{% endif %}

推进到下一阶段

标记拒绝

{% endblock %}