From 324d1e859ec66415b469cfdcc2da65c9c96af6a1 Mon Sep 17 00:00:00 2001
From: wanwan <913752709@qq.com>
Date: Sun, 26 Nov 2023 12:02:08 +0000
Subject: [PATCH] =?UTF-8?q?!334=20feat:=20=E5=AE=A2=E6=88=B7=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=20review=20=E4=BF=AE=E6=94=B9=20*=20feat:=20=E5=AE=A2?=
=?UTF-8?q?=E6=88=B7=E9=85=8D=E7=BD=AE=20review=20=E4=BF=AE=E6=94=B9=20*?=
=?UTF-8?q?=20feat:=20=E5=AE=A2=E6=88=B7=E9=85=8D=E7=BD=AE=20review=20?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=20*=20feat:=20=E5=AE=A2=E6=88=B7=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=20review=20=E4=BF=AE=E6=94=B9=20*=20feat:=20=E5=AE=A2?=
=?UTF-8?q?=E6=88=B7=E9=85=8D=E7=BD=AE=20review=20=E4=BF=AE=E6=94=B9=20*?=
=?UTF-8?q?=20feat:=20=E5=AE=A2=E6=88=B7=E9=85=8D=E7=BD=AE=20review=20?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=20*=20feat:=20=E5=AE=A2=E6=88=B7=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=20review=20=E4=BF=AE=E6=94=B9=20*=20feat:=20=E5=AE=A2?=
=?UTF-8?q?=E6=88=B7=E9=85=8D=E7=BD=AE=20review=20=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/customerLimitConfig/index.ts | 14 +++
.../index.ts | 5 +-
src/views/crm/clue/ClueForm.vue | 18 +++-
.../CustomerLimitConfigForm.vue | 2 +-
.../CustomerLimitConfigList.vue} | 18 ++--
.../customerLimitConfig.ts | 4 +
.../crm/config/customerLimitConfig/index.vue | 19 +++++
.../customerPoolConfig}/index.vue | 52 ++++++------
.../customer/detail/CustomerDetailsTop.vue | 85 +++++++++++++++++++
src/views/crm/customer/detail/index.vue | 74 +---------------
.../customerLimitConfig/customerLimitConf.ts | 14 ---
src/views/crm/customerLimitConfig/index.vue | 20 -----
12 files changed, 181 insertions(+), 144 deletions(-)
rename src/api/crm/{customerPoolConf => customerPoolConfig}/index.ts (67%)
rename src/views/crm/{ => config}/customerLimitConfig/CustomerLimitConfigForm.vue (98%)
rename src/views/crm/{customerLimitConfig/CustomerLimitConfDetails.vue => config/customerLimitConfig/CustomerLimitConfigList.vue} (87%)
create mode 100644 src/views/crm/config/customerLimitConfig/customerLimitConfig.ts
create mode 100644 src/views/crm/config/customerLimitConfig/index.vue
rename src/views/crm/{customerPoolConf => config/customerPoolConfig}/index.vue (70%)
create mode 100644 src/views/crm/customer/detail/CustomerDetailsTop.vue
delete mode 100644 src/views/crm/customerLimitConfig/customerLimitConf.ts
delete mode 100644 src/views/crm/customerLimitConfig/index.vue
diff --git a/src/api/crm/customerLimitConfig/index.ts b/src/api/crm/customerLimitConfig/index.ts
index 22fde3ea..86776326 100644
--- a/src/api/crm/customerLimitConfig/index.ts
+++ b/src/api/crm/customerLimitConfig/index.ts
@@ -9,6 +9,20 @@ export interface CustomerLimitConfigVO {
dealCountEnabled?: boolean
}
+/**
+ * 客户限制配置类型
+ */
+export enum LimitConfType {
+ /**
+ * 拥有客户数限制
+ */
+ CUSTOMER_QUANTITY_LIMIT = 1,
+ /**
+ * 锁定客户数限制
+ */
+ CUSTOMER_LOCK_LIMIT = 2
+}
+
// 查询客户限制配置列表
export const getCustomerLimitConfigPage = async (params) => {
return await request.get({ url: `/crm/customer-limit-config/page`, params })
diff --git a/src/api/crm/customerPoolConf/index.ts b/src/api/crm/customerPoolConfig/index.ts
similarity index 67%
rename from src/api/crm/customerPoolConf/index.ts
rename to src/api/crm/customerPoolConfig/index.ts
index 8234ba36..3cd8ef28 100644
--- a/src/api/crm/customerPoolConf/index.ts
+++ b/src/api/crm/customerPoolConfig/index.ts
@@ -1,4 +1,5 @@
import request from '@/config/axios'
+import { ConfigVO } from '@/api/infra/config'
export interface CustomerPoolConfigVO {
enabled?: boolean
@@ -14,6 +15,6 @@ export const getCustomerPoolConfig = async () => {
}
// 更新客户公海规则设置
-export const updateCustomerPoolConfig = async (data: ConfigVO) => {
- return await request.put({ url: `/crm/customer-pool-config/update`, data })
+export const saveCustomerPoolConfig = async (data: ConfigVO) => {
+ return await request.put({ url: `/crm/customer-pool-config/save`, data })
}
diff --git a/src/views/crm/clue/ClueForm.vue b/src/views/crm/clue/ClueForm.vue
index 4321f952..f0cfcab6 100644
--- a/src/views/crm/clue/ClueForm.vue
+++ b/src/views/crm/clue/ClueForm.vue
@@ -10,9 +10,15 @@
-
-
+
+
+
diff --git a/src/views/crm/customerPoolConf/index.vue b/src/views/crm/config/customerPoolConfig/index.vue
similarity index 70%
rename from src/views/crm/customerPoolConf/index.vue
rename to src/views/crm/config/customerPoolConfig/index.vue
index 5fa98711..c7db3301 100644
--- a/src/views/crm/customerPoolConf/index.vue
+++ b/src/views/crm/config/customerPoolConfig/index.vue
@@ -23,7 +23,7 @@
-
+
不启用
启用
@@ -36,7 +36,11 @@
天未成交
-
+
不提醒
提醒
@@ -52,11 +56,10 @@
diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue
index c88137fa..59b18c5b 100644
--- a/src/views/crm/customer/detail/index.vue
+++ b/src/views/crm/customer/detail/index.vue
@@ -1,69 +1,5 @@
-
-
-
-
-
-
-
-
-
-
- 编辑
-
- 更改成交状态
-
-
-
-
-
- 创建任务
-
-
-
- 发送邮件
-
-
-
- 创建联系人
-
-
-
- 创建商机
-
-
-
- 创建合同
-
-
-
- 创建回款
-
-
-
- 添加团队成员
-
-
-
-
-
-
-
-
-
- {{ customer.dealStatus ? '已成交' : '未成交' }}
-
-
- {{ customer.ownerUserName }}
-
-
-
-
-
- {{ customer.mobile }}
-
-
-
+
@@ -107,9 +43,6 @@
发票
-
-
-