{% extends "base.html" %} {% block title %}公司系统对接 - 本地贷款CRM{% endblock %} {% block header_title %}公司系统对接{% endblock %} {% block content %}
同步管理 字段配置

可同步客户 ({{ syncable|length }})

{% if syncable %}
{% for c in syncable %}
{{ c.name }}

{{ c.phone or '-' }} · {{ c.avatar_stage }} · {{ c.sync_status or 'not_synced' }}

{% endfor %}
{% else %}

暂无待同步客户

给客户打上 [可入公司] 标签后出现在这里

{% endif %}

已同步客户 ({{ synced|length }})

{% if synced %}
{% for c in synced %}
{{ c.name }}

{{ c.last_push_at[:16] if c.last_push_at else '-' }} 推送 · {{ c.last_pull_at[:16] if c.last_pull_at else '-' }} 拉取

{% endfor %}
{% else %}

暂无已同步客户

{% endif %}

同步日志

{% if logs %}
{% for l in logs %} {% endfor %}
时间 客户 方向 类型 摘要 结果
{{ l.created_at[:16] if l.created_at else '' }} {{ l.customer_name or '-' }} {{ '📤推送' if l.direction == 'push' else '📥拉取' }} {{ l.sync_type }} {{ l.content_summary or '-' }} {{ l.result }}
{% else %}

暂无同步记录

{% endif %}
{% endblock %}