2023-11-11 23:35:18 +08:00
|
|
|
<template>
|
|
|
|
<el-collapse v-model="activeNames">
|
|
|
|
<el-collapse-item name="basicInfo">
|
|
|
|
<template #title>
|
|
|
|
<span class="text-base font-bold">基本信息</span>
|
|
|
|
</template>
|
|
|
|
<el-descriptions :column="4">
|
|
|
|
<el-descriptions-item label="姓名">
|
|
|
|
{{ contact.name }}
|
|
|
|
</el-descriptions-item>
|
2023-11-27 23:44:13 +08:00
|
|
|
<el-descriptions-item label="客户">
|
2023-11-11 23:35:18 +08:00
|
|
|
{{ contact.customerName }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="手机">
|
|
|
|
{{ contact.mobile }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="座机">
|
|
|
|
{{ contact.telephone }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="邮箱">
|
|
|
|
{{ contact.email }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="QQ">
|
|
|
|
{{ contact.qq }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="微信">
|
2023-11-26 21:54:50 +08:00
|
|
|
{{ contact.wechat }}
|
2023-11-11 23:35:18 +08:00
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="下次联系时间">
|
|
|
|
{{ contact.nextTime ? formatDate(contact.nextTime) : '空' }}
|
|
|
|
</el-descriptions-item>
|
2023-11-26 21:54:50 +08:00
|
|
|
<el-descriptions-item label="所在地">
|
|
|
|
{{ contact.areaName }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="详细地址">
|
|
|
|
{{ contact.address }}
|
|
|
|
</el-descriptions-item>
|
2023-11-11 23:35:18 +08:00
|
|
|
<el-descriptions-item label="性别">
|
|
|
|
<dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="contact.sex" />
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="备注">
|
|
|
|
{{ contact.remark }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-collapse-item>
|
|
|
|
<el-collapse-item name="systemInfo">
|
|
|
|
<template #title>
|
|
|
|
<span class="text-base font-bold">系统信息</span>
|
|
|
|
</template>
|
|
|
|
<el-descriptions :column="2">
|
|
|
|
<el-descriptions-item label="负责人">
|
2023-11-26 21:54:50 +08:00
|
|
|
{{ contact.ownerUserName }}
|
2023-11-11 23:35:18 +08:00
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="创建人">
|
|
|
|
{{ contact.creatorName }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="创建时间">
|
|
|
|
{{ contact.createTime ? formatDate(contact.createTime) : '空' }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
<el-descriptions-item label="更新时间">
|
|
|
|
{{ contact.updateTime ? formatDate(contact.updateTime) : '空' }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
2023-11-18 21:08:00 +08:00
|
|
|
// TODO 芋艿:后面在 review 么?
|
2023-11-11 23:35:18 +08:00
|
|
|
import * as ContactApi from '@/api/crm/contact'
|
|
|
|
import { DICT_TYPE } from '@/utils/dict'
|
|
|
|
import { formatDate } from '@/utils/formatTime'
|
|
|
|
const { contact } = defineProps<{ contact: ContactApi.ContactVO }>()
|
|
|
|
|
|
|
|
// 展示的折叠面板
|
|
|
|
const activeNames = ref(['basicInfo', 'systemInfo'])
|
|
|
|
</script>
|
|
|
|
<style scoped lang="scss"></style>
|