diff --git a/src/api/crm/customerLimitConfig/index.ts b/src/api/crm/customerLimitConfig/index.ts
new file mode 100644
index 00000000..22fde3ea
--- /dev/null
+++ b/src/api/crm/customerLimitConfig/index.ts
@@ -0,0 +1,35 @@
+import request from '@/config/axios'
+
+export interface CustomerLimitConfigVO {
+ id?: number
+ type?: number
+ userIds?: string
+ deptIds?: string
+ maxCount?: number
+ dealCountEnabled?: boolean
+}
+
+// 查询客户限制配置列表
+export const getCustomerLimitConfigPage = async (params) => {
+ return await request.get({ url: `/crm/customer-limit-config/page`, params })
+}
+
+// 查询客户限制配置详情
+export const getCustomerLimitConfig = async (id: number) => {
+ return await request.get({ url: `/crm/customer-limit-config/get?id=` + id })
+}
+
+// 新增客户限制配置
+export const createCustomerLimitConfig = async (data: CustomerLimitConfigVO) => {
+ return await request.post({ url: `/crm/customer-limit-config/create`, data })
+}
+
+// 修改客户限制配置
+export const updateCustomerLimitConfig = async (data: CustomerLimitConfigVO) => {
+ return await request.put({ url: `/crm/customer-limit-config/update`, data })
+}
+
+// 删除客户限制配置
+export const deleteCustomerLimitConfig = async (id: number) => {
+ return await request.delete({ url: `/crm/customer-limit-config/delete?id=` + id })
+}
diff --git a/src/api/crm/customerPoolConf/index.ts b/src/api/crm/customerPoolConf/index.ts
new file mode 100644
index 00000000..8234ba36
--- /dev/null
+++ b/src/api/crm/customerPoolConf/index.ts
@@ -0,0 +1,19 @@
+import request from '@/config/axios'
+
+export interface CustomerPoolConfigVO {
+ enabled?: boolean
+ contactExpireDays?: number
+ dealExpireDays?: number
+ notifyEnabled?: boolean
+ notifyDays: number
+}
+
+// 获取客户公海规则设置
+export const getCustomerPoolConfig = async () => {
+ return await request.get({ url: `/crm/customer-pool-config/get` })
+}
+
+// 更新客户公海规则设置
+export const updateCustomerPoolConfig = async (data: ConfigVO) => {
+ return await request.put({ url: `/crm/customer-pool-config/update`, data })
+}
diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts
index 6224f0e8..689fec0d 100644
--- a/src/api/system/user/index.ts
+++ b/src/api/system/user/index.ts
@@ -22,6 +22,11 @@ export const getUserPage = (params: PageParam) => {
return request.get({ url: '/system/user/page', params })
}
+// 查询所有用户列表
+export const getAllUser = () => {
+ return request.get({ url: '/system/user/all' })
+}
+
// 查询用户详情
export const getUser = (id: number) => {
return request.get({ url: '/system/user/get?id=' + id })
diff --git a/src/views/crm/customer/detail/CustomerDetails.vue b/src/views/crm/customer/detail/CustomerDetails.vue
index 1065b22c..67beae94 100644
--- a/src/views/crm/customer/detail/CustomerDetails.vue
+++ b/src/views/crm/customer/detail/CustomerDetails.vue
@@ -1,83 +1,86 @@
-
-
-
- 基本信息
-
-
-
- {{ customer.name }}
-
-
-
-
-
-
-
-
-
-
-
- {{ customer.mobile }}
-
-
- {{ customer.telephone }}
-
-
- {{ customer.email }}
-
-
- {{ customer.qq }}
-
-
- {{ customer.wechat }}
-
-
- {{ customer.website }}
-
-
- {{ customer.areaName }}
-
-
- {{ customer.detailAddress }}
-
-
- {{ customer.contactNextTime ? formatDate(customer.contactNextTime, 'YYYY-MM-DD') : '空' }}
-
-
-
-
- {{ customer.description }}
-
-
- {{ customer.remark }}
-
-
-
-
-
- 系统信息
-
-
-
- {{ customer.ownerUserName }}
-
-
- {{ customer.creatorName }}
-
-
- {{ customer.createTime ? formatDate(customer.createTime) : '空' }}
-
-
- {{ customer.updateTime ? formatDate(customer.updateTime) : '空' }}
-
-
-
- {{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
-
-
-
-
+
+
+
+
+ 基本信息
+
+
+
+ {{ customer.name }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ customer.mobile }}
+
+
+ {{ customer.telephone }}
+
+
+ {{ customer.email }}
+
+
+ {{ customer.qq }}
+
+
+ {{ customer.wechat }}
+
+
+ {{ customer.website }}
+
+
+ {{ customer.areaName }}
+
+
+ {{ customer.detailAddress }}
+
+
+ {{
+ customer.contactNextTime ? formatDate(customer.contactNextTime, 'YYYY-MM-DD') : '空'
+ }}
+
+
+ {{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
+
+
+
+
+ {{ customer.description }}
+
+
+ {{ customer.remark }}
+
+
+
+
+
+ 系统信息
+
+
+
+ {{ customer.ownerUserName }}
+
+
+ {{ customer.creatorName }}
+
+
+ {{ customer.createTime ? formatDate(customer.createTime) : '空' }}
+
+
+ {{ customer.updateTime ? formatDate(customer.updateTime) : '空' }}
+
+
+
+
+
+
diff --git a/src/views/crm/customerLimitConfig/CustomerLimitConfigForm.vue b/src/views/crm/customerLimitConfig/CustomerLimitConfigForm.vue
new file mode 100644
index 00000000..006c1349
--- /dev/null
+++ b/src/views/crm/customerLimitConfig/CustomerLimitConfigForm.vue
@@ -0,0 +1,222 @@
+
+
+
+
diff --git a/src/views/crm/customerLimitConfig/customerLimitConf.ts b/src/views/crm/customerLimitConfig/customerLimitConf.ts
new file mode 100644
index 00000000..188e6ef4
--- /dev/null
+++ b/src/views/crm/customerLimitConfig/customerLimitConf.ts
@@ -0,0 +1,13 @@
+/**
+ * 客户限制配置类型
+ */
+export enum LimitConfType {
+ /**
+ * 拥有客户数限制
+ */
+ CUSTOMER_QUANTITY_LIMIT = 1,
+ /**
+ * 锁定客户数限制
+ */
+ CUSTOMER_LOCK_LIMIT = 2
+}
diff --git a/src/views/crm/customerLimitConfig/index.vue b/src/views/crm/customerLimitConfig/index.vue
new file mode 100644
index 00000000..48f2eac2
--- /dev/null
+++ b/src/views/crm/customerLimitConfig/index.vue
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/crm/customerPoolConf/index.vue b/src/views/crm/customerPoolConf/index.vue
new file mode 100644
index 00000000..92467fee
--- /dev/null
+++ b/src/views/crm/customerPoolConf/index.vue
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+ 不启用
+ 启用
+
+
+
+
+
+ 天不跟进或
+
+ 天未成交
+
+
+
+ 不提醒
+ 提醒
+
+
+
+
+ 提前
+
+ 天提醒
+
+
+
+
+
+
+
+
+