From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/api/crm/customer/limitConfig/index.ts | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/src/api/crm/customer/limitConfig/index.ts b/src/api/crm/customer/limitConfig/index.ts
new file mode 100644
index 0000000..8677632
--- /dev/null
+++ b/src/api/crm/customer/limitConfig/index.ts
@@ -0,0 +1,49 @@
+import request from '@/config/axios'
+
+export interface CustomerLimitConfigVO {
+ id?: number
+ type?: number
+ userIds?: string
+ deptIds?: string
+ maxCount?: number
+ 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 })
+}
+
+// 鏌ヨ瀹㈡埛闄愬埗閰嶇疆璇︽儏
+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 })
+}
--
Gitblit v1.8.0