{# 定义宏以便多次调用 #}
{% macro customer_tracking_list(houseId, origin) %}
{% set list = function('CustomerTrackingDao::search', houseId, origin) %}
{% if list %}
<br>
<table class="table table-bordered">
    <tr>
        <th class="col-md-2 text-center">跟进类型</th>
        <th class="col-md-3 text-center">置业顾问</th>
        <th class="col-md-3 text-center">时间</th>
        <th class="col-md-4 text-center">跟进说明</th>
    </tr>
    {% for item in list %}
    <tr>
        <td class="col-md-2 text-center">{{ item.status_name }}</td>
        <td class="col-md-3 text-center">{{ item.name }}</td>
        <td class="col-md-3 text-center">{{ item.time }}</td>
        <td class="col-md-4 text-center">{{ item.description }}</td>
    </tr>
    {% endfor %}
</table>
{% endif %}
{% endmacro %}