ludu-admin-vue3/src/views/crm/customer/detail/CustomerDetailsHeader.vue

44 lines
1.4 KiB
Vue
Raw Normal View History

<template>
<div v-loading="loading">
<div class="flex items-start justify-between">
<div>
<!-- 左上客户基本信息 -->
2023-11-30 13:42:49 +08:00
<el-col>
<el-row>
<span class="text-xl font-bold">{{ customer.name }}</span>
</el-row>
</el-col>
</div>
<div>
<!-- 右上按钮 -->
2024-01-06 12:29:35 +08:00
<slot></slot>
</div>
</div>
</div>
<ContentWrap class="mt-10px">
<el-descriptions :column="5" direction="vertical">
<el-descriptions-item label="客户级别">
<dict-tag :type="DICT_TYPE.CRM_CUSTOMER_LEVEL" :value="customer.level" />
</el-descriptions-item>
<el-descriptions-item label="成交状态">
{{ customer.dealStatus ? '已成交' : '未成交' }}
</el-descriptions-item>
<el-descriptions-item label="负责人">{{ customer.ownerUserName }}</el-descriptions-item>
<!-- TODO wanwan 首要联系人? -->
<el-descriptions-item label="首要联系人" />
<!-- TODO wanwan 首要联系人电话? -->
<el-descriptions-item label="首要联系人电话">{{ customer.mobile }}</el-descriptions-item>
</el-descriptions>
</ContentWrap>
</template>
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
2023-11-30 13:42:49 +08:00
import * as CustomerApi from '@/api/crm/customer'
defineOptions({ name: 'CustomerDetailsHeader' })
2024-01-06 12:29:35 +08:00
defineProps<{
2023-11-30 13:42:49 +08:00
customer: CustomerApi.CustomerVO // 客户信息
loading: boolean // 加载中
2023-11-26 20:18:33 +08:00
}>()
</script>