{% set asset_binding = asset_image_bindings.get(asset.id) or {} %} {% set bound_ref = asset_binding.get('reference_id', '') %} {% set bound_pin = asset_binding.get('pin') %} {% set bound_ref_item = (creative_references | selectattr('id', 'equalto', bound_ref) | list | first) if bound_ref else None %}
{{ asset.id }} · {{ asset.name }}
{{ asset_type_label }} · 图片
{% if bound_pin %} 已锁参考图 {% elif asset.type == "product" and asset.source_reference_id %} 已自动匹配 {% elif asset_binding_ready.get(asset.id) %} 已绑定 {% elif asset.must_upload %} 必传 {% else %} 待生成 {% endif %}
{% if asset_preview_urls.get(asset.id) %} {{ asset.name }} {% else %}
暂无图片素材
{% endif %} {% if asset_binding.get('user_cleared') and not bound_ref %}
已恢复 AI 生成(不再用上传图)
{% elif bound_ref %}
当前用上传图 {{ bound_ref }}{% if bound_ref_item %} · {{ bound_ref_item.filename }}{% endif %}{% if bound_pin %}(已锁定){% endif %}
{% elif asset.type == "product" and asset.source_reference_id %}
系统自动匹配产品图 {{ asset.source_reference_id }}
{% endif %} {% if asset_reference_controls and creative_references %}
手选优先级最高:选定后自动匹配与重新生成都不会覆盖它。
{% endif %}