From 3ce802d10cc94739ccdc97fe3c98cf01161cbcbb Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Sat, 8 Nov 2025 17:32:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AE=A2=E6=88=B7=E6=98=9F?=
=?UTF-8?q?=E7=BA=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/CustomerManagement.vue | 57 -------------------
components/customer-detail/InfoTab.vue | 36 ------------
.../customer-form/CustomerOtherInfo.vue | 31 ----------
pages/customer/add/index.vue | 1 -
pages/customer/detail/index.vue | 33 -----------
pages/customer/edit/index.vue | 3 -
6 files changed, 161 deletions(-)
diff --git a/components/CustomerManagement.vue b/components/CustomerManagement.vue
index e0f294c..382b498 100644
--- a/components/CustomerManagement.vue
+++ b/components/CustomerManagement.vue
@@ -60,19 +60,6 @@
-
-
- 客户星级:
-
- ★
-
-
-
{
return statusMap[status] || '未知';
};
-// 根据意向等级获取星级(1=高=5星,2=中=3星)
-const getRatingFromIntentLevel = (intentLevel) => {
- const levelMap = {
- '1': 5, // 高意向 = 5星
- '2': 3 // 中意向 = 3星
- };
- return levelMap[intentLevel] || 0;
-};
-
// 格式化日期时间
const formatDateTime = (dateTime) => {
if (!dateTime) return '暂无';
@@ -631,41 +609,6 @@ defineExpose({
font-weight: 500;
}
-/* 客户星级 */
-.customer-rating {
- display: flex;
- align-items: center;
- gap: 10px;
- margin-bottom: 14px;
- padding: 8px 12px;
- background-color: #fafbfc;
- border-radius: 8px;
-}
-
-.rating-label {
- font-size: 13px;
- color: #606266;
- font-weight: 500;
-}
-
-.stars {
- display: flex;
- gap: 3px;
- align-items: center;
-}
-
-.star {
- font-size: 16px;
- color: #e4e7ed;
- line-height: 1;
- transition: color 0.2s ease;
-
- &.filled {
- color: #ffc107;
- text-shadow: 0 0 2px rgba(255, 193, 7, 0.3);
- }
-}
-
/* 分配用户 */
.assigned-user {
display: flex;
diff --git a/components/customer-detail/InfoTab.vue b/components/customer-detail/InfoTab.vue
index 08c687d..44a8af0 100644
--- a/components/customer-detail/InfoTab.vue
+++ b/components/customer-detail/InfoTab.vue
@@ -44,17 +44,6 @@
其他信息
-
- 客户星级
-
- ★
-
-
备注
{{ customerDetail.remark || '--' }}
@@ -87,15 +76,6 @@ const props = defineProps({
}
});
-// 根据意向等级获取星级
-const getRatingFromIntentLevel = (intentLevel) => {
- const levelMap = {
- '1': 5,
- '2': 3
- };
- return levelMap[intentLevel] || 0;
-};
-
// 格式化客户意向(数组转字符串)
const formatIntents = (intents) => {
if (!intents || !Array.isArray(intents) || intents.length === 0) return '--';
@@ -168,21 +148,5 @@ const getIntentStrengthText = (intentLevel) => {
color: #333;
text-align: right;
}
-
-.info-value-stars {
- flex: 1;
- display: flex;
- justify-content: flex-end;
- gap: 2px;
-}
-
-.star {
- font-size: 14px;
- color: #ddd;
-
- &.filled {
- color: #ffc107;
- }
-}
diff --git a/components/customer-form/CustomerOtherInfo.vue b/components/customer-form/CustomerOtherInfo.vue
index 7af45b1..ffa8ada 100644
--- a/components/customer-form/CustomerOtherInfo.vue
+++ b/components/customer-form/CustomerOtherInfo.vue
@@ -2,20 +2,6 @@
其他信息
-
-
- 客户星级
-
- ★
-
-
-
-
- 客户星级
-
- ★
-
-
@@ -245,14 +234,6 @@ const formatDateTime = (dateTime) => {
}
};
-// 根据意向等级获取星级
-const getRatingFromIntentLevel = (intentLevel) => {
- const levelMap = {
- '1': 5,
- '2': 3
- };
- return levelMap[intentLevel] || 0;
-};
// 获取客户类型文本
const getCustomerTypeText = (type) => {
@@ -489,20 +470,6 @@ onShow(() => {
}
}
-.stars {
- display: flex;
- gap: 2px;
-}
-
-.star {
- font-size: 14px;
- color: #ddd;
-
- &.filled {
- color: #ffc107;
- }
-}
-
.tab-navigation {
display: flex;
background-color: #fff;
diff --git a/pages/customer/edit/index.vue b/pages/customer/edit/index.vue
index 303b2b4..f43ef94 100644
--- a/pages/customer/edit/index.vue
+++ b/pages/customer/edit/index.vue
@@ -105,7 +105,6 @@ const formData = ref({
regionIds: [],
workWechat: '',
workWechatId: null,
- rating: 0,
remark: '',
concern: '',
pain: '',
@@ -160,7 +159,6 @@ const loadCustomerDetail = async () => {
regionIds: [res.provinceId, res.cityId, res.countyId],
workWechat: res.wechatId || '',
workWechatId: res.workWechatId || null,
- rating: res.rating ||'',
remark: res.remark || '',
concern: res.concern || '',
pain: res.pain || '',
@@ -327,7 +325,6 @@ const handleSave = async () => {
provinceId: (regionIdsArray[0] !== undefined && regionIdsArray[0] !== null) ? regionIdsArray[0] : null,
cityId: (regionIdsArray[1] !== undefined && regionIdsArray[1] !== null) ? regionIdsArray[1] : null,
countyId: (regionIdsArray[2] !== undefined && regionIdsArray[2] !== null) ? regionIdsArray[2] : null,
- rating: formData.value.rating || 0,
attention: formData.value.attention.trim() || null,
concern: formData.value.concern.trim() || null,
demand: formData.value.demand.trim() || null,