{% extends "base.html" %} {% block title %}{{ customer.name }} - 本地贷款CRM{% endblock %} {% block header_title %}{{ customer.name }}{% endblock %} {% block content %}
{% if customer.status == 'deleted' %}
🗑️ 此客户已被删除
{% endif %}

{{ customer.name }}

{{ customer.avatar_stage }} {% if customer.status == 'deleted' %}已删除{% endif %}
{% if customer.phone %}📱 {{ customer.phone }}{% endif %} {% if customer.wechat %}💬 微信: {{ customer.wechat }}{% endif %} {% if customer.company %}{% endif %} {% if customer.birthday %}🎂 {{ customer.birthday }}{% endif %} {% if customer.id_number %}{% endif %} {% if customer.region %}{% endif %} 来源: {{ customer.source }}
编辑 + 沟通记录
{% if customer.status != 'deleted' %}
{% endif %}
{% for t in tags %} {{ t.name }} {% endfor %}
{% for cat, tlist in all_tags.items() %}
{{ cat }}
{% for t in tlist %} {% endfor %}
{% endfor %}
{% if prediction and prediction.signals %}
⚠️ 拒绝预判:{{ prediction.risk_label }} {{ prediction.summary }}
{% for s in prediction.signals %}
{{ s.category }} · {{ s.reason }} {{ s.detail }} {% if s.suggestion %} {% endif %}
{% endfor %}
{% if prediction.match_count > 0 %}

基于 {{ prediction.match_count }} 个相似被拒客户的历史数据

{% endif %}
{% elif prediction and not prediction.signals %}
✅ {{ prediction.summary }}
{% endif %}

基本信息

手机号
{{ customer.phone or '-' }}
微信
{{ customer.wechat or '-' }} {% if customer.wechat_nickname %}({{ customer.wechat_nickname }}){% endif %}
公司
{{ customer.company or '-' }}
职位
{{ customer.position or '-' }}
行业
{{ customer.industry_name or '-' }}
地区
{{ customer.region or '-' }}
来源渠道
{{ customer.source }}
法院被执行
{% if customer.court_executor == 2 %}⚠️ 是{% elif customer.court_executor == 1 %}否{% else %}未知{% endif %}
创建时间
{{ customer.created_at[:10] if customer.created_at else '-' }}
{% if customer.court_records or customer.qichacha_data %}

外部数据

{% if customer.qichacha_data %}

企查查:{{ customer.qichacha_data }}

{% endif %} {% if customer.court_records %}

法院信息:{{ customer.court_records }}

{% endif %}
{% endif %}

客户画像

{% if profile %}
贷款意愿
{{ profile.loan_willingness or '-' }}
期望金额
{{ (profile.expected_amount_min|string + ' - ' + profile.expected_amount_max|string + '万') if profile.expected_amount_min else '-' }}
利率敏感度
{{ profile.rate_sensitivity or '-' }}
紧急程度
{{ profile.urgency or '-' }}
资金用途
{{ profile.loan_purpose or '-' }}
收入范围
{{ profile.income_range or '-' }}
房产
{% if profile.has_house == 2 %}有{% elif profile.has_house == 1 %}无{% else %}未知{% endif %}
车辆
{% if profile.has_car == 2 %}有{% elif profile.has_car == 1 %}无{% else %}未知{% endif %}
征信等级
{{ profile.credit_score or '-' }}
征信查询次数
{{ profile.credit_query_count if profile.credit_query_count is not none else '-' }}
逾期情况
{% if profile.credit_overdue == 2 %}有{% elif profile.credit_overdue == 1 %}无{% else %}未知{% endif %}
沟通风格
{{ profile.communication_style or '-' }}
是否决策人
{% if profile.is_decision_maker == 2 %}是{% elif profile.is_decision_maker == 1 %}否{% else %}未知{% endif %}
{% if profile.asset_summary %}
资产摘要
{{ profile.asset_summary }}
{% endif %} {% if profile.credit_detail %}
征信详情
{{ profile.credit_detail }}
{% endif %}
{% else %}

暂无画像数据,点击上方「编辑画像」开始录入

{% endif %}

沟通与回访记录 ({{ timeline|length }})

+ 沟通记录
{% if timeline %} {% for item in timeline %} {% if item.type == 'comm' %} {% set c = item.data %}
{% if c.comm_type == '电话' %}📞{% elif c.comm_type == '微信' %}💬{% elif c.comm_type == '面谈' %}🤝{% elif c.comm_type == '短信' %}📱{% else %}📝{% endif %} {{ c.comm_type }} {{ c.direction }} {% if c.mood %}情绪: {{ c.mood }}{% endif %}
{{ c.created_at[:16] if c.created_at else '' }}
{% if c.summary %}

{{ c.summary }}

{% else %}

(无摘要)

{% endif %} {% if c.next_contact_at %}

下次联系: {{ c.next_contact_at[:16] if c.next_contact_at else '' }}

{% endif %}
{% else %} {% set f = item.data %}
📅 回访 {% if f.status == 'completed' %}已完成 {% elif f.status == 'cancelled' %}已取消 {% elif f.status == 'overdue' %}已逾期 {% else %}待回访{% endif %} {% if f.method %}{{ f.method }}{% endif %}
{{ f.planned_at[:16] if f.planned_at else '' }}
{% if f.purpose %}

目的: {{ f.purpose }}

{% endif %} {% if f.result_summary %}

{{ f.result_summary }}

{% endif %} {% if f.next_plan %}

后续计划: {{ f.next_plan }}

{% endif %} {% if f.status == 'pending' %} {% endif %}
{% endif %} {% endfor %} {% else %}

暂无沟通或回访记录

记录首次沟通
{% endif %}

贷款申请记录

+ 新建申请
{% if customer.id in applications %} {% for a in applications[customer.id] %}
{{ a.product_name or '未指定产品' }} {{ a.result or '进行中' }}
阶段: {{ a.current_stage }} {% if a.amount %}金额: {{ a.amount }}万{% endif %} {% if a.rate %}利率: {{ a.rate }}%{% endif %} {% if a.rejection_name %}拒绝: {{ a.rejection_name }}{% endif %} {{ a.created_at[:10] if a.created_at else '' }}
{% if a.fail_detail %}

{{ a.fail_detail[:100] }}

{% endif %}
{% endfor %} {% else %}

暂无贷款申请记录

{% endif %}

文档资料

📥 下载全部
{% if docs %}
{% for d in docs %}
{% if d.doc_type == '征信报告' %}📊{% elif d.doc_type == '交易流水' %}💳{% elif d.doc_type == '身份证' %}🪪{% elif d.doc_type == '房产证' %}🏠{% elif d.doc_type == '车辆信息' %}🚗{% else %}📄{% endif %}

{{ d.file_name }}

{{ d.doc_type }} · {{ (d.file_size / 1024)|round|int }}KB · {% if d.is_encrypted %}🔒已加密{% else %}明文{% endif %} · {{ d.created_at[:10] if d.created_at else '' }}

{% if d.notes %}

{{ d.notes }}

{% endif %}
{% endfor %}
{% else %}

📁

暂无文档

征信报告、交易流水上传后自动加密存储

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}