CustomerInfoCard.vue 1.71 KB
<template>
  <div class="customer-info-card bg-blue-500 border border-blue-400 rounded-xl p-4 text-white">
    <div class="pb-3 border-b border-blue-400">
      <div class="text-xs text-blue-100 mb-2">客户姓名 / 企业名称</div>
      <div class="text-base font-medium flex items-center gap-2">
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="opacity-80">
          <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path>
          <circle cx="12" cy="7" r="4"></circle>
        </svg>
        <span class="truncate">{{ info.customerName || '-' }}</span>
      </div>
    </div>
    <div class="flex items-center justify-between pt-3">
      <div>
        <div class="text-xs text-blue-100 mb-1">手机号码</div>
        <div class="text-sm font-medium">{{ info.phoneNumber || '-' }}</div>
      </div>
      <div class="w-px h-8 bg-blue-400"></div>
      <div>
        <div class="text-xs text-blue-100 mb-1">交车车型</div>
        <div class="text-sm font-medium">{{ info.carBrand ||'-'}}</div>
      </div>
      <div class="w-px h-8 bg-blue-400"></div>
      <div>
        <div class="text-xs text-blue-100 mb-1">接待时间</div>
        <div class="text-sm font-medium">{{ info.receptionStartTime || '-'}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CustomerInfoCard',
  props: {
    info: {
      type: Object,
      required: true,
      default: () => ({
        customerName: '',
        phoneNumber: '',
        carBrand: '',
        receptionStartTime: ''
      })
    }
  }
}
</script>