ContactDetailsHeader.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div>
  3. <div class="flex items-start justify-between">
  4. <div>
  5. <el-col>
  6. <el-row>
  7. <span class="text-xl font-bold">{{ contact.name }}</span>
  8. </el-row>
  9. </el-col>
  10. </div>
  11. <div>
  12. <!-- 右上:按钮 -->
  13. <slot></slot>
  14. </div>
  15. </div>
  16. </div>
  17. <ContentWrap class="mt-10px">
  18. <el-descriptions :column="5" direction="vertical">
  19. <el-descriptions-item label="客户">
  20. {{ contact.customerName }}
  21. </el-descriptions-item>
  22. <el-descriptions-item label="职务">
  23. {{ contact.post }}
  24. </el-descriptions-item>
  25. <el-descriptions-item label="手机">
  26. {{ contact.mobile }}
  27. </el-descriptions-item>
  28. <el-descriptions-item label="创建时间">
  29. {{ contact.createTime ? formatDate(contact.createTime) : '空' }}
  30. </el-descriptions-item>
  31. </el-descriptions>
  32. </ContentWrap>
  33. </template>
  34. <script lang="ts" setup>
  35. import * as ContactApi from '@/api/crm/contact'
  36. import { formatDate } from '@/utils/formatTime'
  37. const { contact } = defineProps<{ contact: ContactApi.ContactVO }>()
  38. </script>