修改客户详细卡片摘要
This commit is contained in:
parent
11c796a900
commit
14d42ffc0c
|
|
@ -12,33 +12,50 @@
|
|||
<!-- 客户摘要卡片 -->
|
||||
<view class="customer-summary-card">
|
||||
<view class="summary-row">
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">客户昵称</text>
|
||||
<text class="summary-value">{{ customerDetail.contactName || customerDetail.name || '--' }}</text>
|
||||
</view>
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">客户状态</text>
|
||||
<view class="status-badge" :class="getStatusClass(customerDetail.status)">
|
||||
<text>{{ getStatusText(customerDetail.status) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">客户意向</text>
|
||||
<text class="summary-value">{{ formatIntents(customerDetail.intents) }}</text>
|
||||
</view>
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">意向强度</text>
|
||||
<text class="summary-value">{{ getIntentStrengthText(customerDetail.intentLevel) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">客户归属</text>
|
||||
<text class="summary-value">{{ customerDetail.followName || '未分配' }}</text>
|
||||
</view>
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">客户类型</text>
|
||||
<text class="summary-value">{{ getCustomerTypeText(customerDetail.type) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">联系人</text>
|
||||
<text class="summary-value">{{ customerDetail.contactName || customerDetail.name || '--' }}</text>
|
||||
</view>
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">最近跟进</text>
|
||||
<text class="summary-value">{{ formatDateTime(customerDetail.lastFollowTime) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">微信号</text>
|
||||
<text class="summary-value">{{ customerDetail.wechat || '--' }}</text>
|
||||
</view>
|
||||
<view class="summary-item">
|
||||
<text class="summary-label">微信好友</text>
|
||||
<text class="summary-value">{{ customerDetail.wechatId || '--' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 标签页导航 -->
|
||||
|
|
@ -235,13 +252,28 @@ const formatDateTime = (dateTime) => {
|
|||
};
|
||||
|
||||
|
||||
// 获取客户类型文本
|
||||
const getCustomerTypeText = (type) => {
|
||||
const typeMap = {
|
||||
'1': '企业客户',
|
||||
'2': '个人客户'
|
||||
// 格式化客户意向(数组转字符串)
|
||||
const formatIntents = (intents) => {
|
||||
if (!intents) return '--';
|
||||
// 如果是数组,直接join
|
||||
if (Array.isArray(intents)) {
|
||||
return intents.length > 0 ? intents.join('、') : '--';
|
||||
}
|
||||
// 如果是字符串(逗号分隔),直接返回
|
||||
if (typeof intents === 'string') {
|
||||
return intents || '--';
|
||||
}
|
||||
return '--';
|
||||
};
|
||||
|
||||
// 获取意向强度文本
|
||||
const getIntentStrengthText = (intentLevel) => {
|
||||
const levelMap = {
|
||||
'1': '高',
|
||||
'2': '中',
|
||||
'3': '低'
|
||||
};
|
||||
return typeMap[type] || '--';
|
||||
return levelMap[intentLevel] || '--';
|
||||
};
|
||||
|
||||
// 返回
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user