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/clue/index.ts |   78 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/src/api/crm/clue/index.ts b/src/api/crm/clue/index.ts
new file mode 100644
index 0000000..9736514
--- /dev/null
+++ b/src/api/crm/clue/index.ts
@@ -0,0 +1,78 @@
+import request from '@/config/axios'
+import { TransferReqVO } from '@/api/crm/permission'
+
+export interface ClueVO {
+  id: number // 缂栧彿
+  name: string // 绾跨储鍚嶇О
+  followUpStatus: boolean // 璺熻繘鐘舵��
+  contactLastTime: Date // 鏈�鍚庤窡杩涙椂闂�
+  contactLastContent: string // 鏈�鍚庤窡杩涘唴瀹�
+  contactNextTime: Date // 涓嬫鑱旂郴鏃堕棿
+  ownerUserId: number // 璐熻矗浜虹殑鐢ㄦ埛缂栧彿
+  ownerUserName?: string // 璐熻矗浜虹殑鐢ㄦ埛鍚嶇О
+  ownerUserDept?: string // 璐熻矗浜虹殑閮ㄩ棬鍚嶇О
+  transformStatus: boolean // 杞寲鐘舵��
+  customerId: number // 瀹㈡埛缂栧彿
+  customerName?: string // 瀹㈡埛鍚嶇О
+  mobile: string // 鎵嬫満鍙�
+  telephone: string // 鐢佃瘽
+  qq: string // QQ
+  wechat: string // wechat
+  email: string // email
+  areaId: number // 鎵�鍦ㄥ湴
+  areaName?: string // 鎵�鍦ㄥ湴鍚嶇О
+  detailAddress: string // 璇︾粏鍦板潃
+  industryId: number // 鎵�灞炶涓�
+  level: number // 瀹㈡埛绛夌骇
+  source: number // 瀹㈡埛鏉ユ簮
+  remark: string // 澶囨敞
+  creator: string // 鍒涘缓浜�
+  creatorName?: string // 鍒涘缓浜哄悕绉�
+  createTime: Date // 鍒涘缓鏃堕棿
+  updateTime: Date // 鏇存柊鏃堕棿
+}
+
+// 鏌ヨ绾跨储鍒楄〃
+export const getCluePage = async (params: any) => {
+  return await request.get({ url: `/crm/clue/page`, params })
+}
+
+// 鏌ヨ绾跨储璇︽儏
+export const getClue = async (id: number) => {
+  return await request.get({ url: `/crm/clue/get?id=` + id })
+}
+
+// 鏂板绾跨储
+export const createClue = async (data: ClueVO) => {
+  return await request.post({ url: `/crm/clue/create`, data })
+}
+
+// 淇敼绾跨储
+export const updateClue = async (data: ClueVO) => {
+  return await request.put({ url: `/crm/clue/update`, data })
+}
+
+// 鍒犻櫎绾跨储
+export const deleteClue = async (id: number) => {
+  return await request.delete({ url: `/crm/clue/delete?id=` + id })
+}
+
+// 瀵煎嚭绾跨储 Excel
+export const exportClue = async (params) => {
+  return await request.download({ url: `/crm/clue/export-excel`, params })
+}
+
+// 绾跨储杞Щ
+export const transferClue = async (data: TransferReqVO) => {
+  return await request.put({ url: '/crm/clue/transfer', data })
+}
+
+// 绾跨储杞寲涓哄鎴�
+export const transformClue = async (id: number) => {
+  return await request.put({ url: '/crm/clue/transform', params: { id } })
+}
+
+// 鑾峰緱鍒嗛厤缁欐垜鐨勩�佸緟璺熻繘鐨勭嚎绱㈡暟閲�
+export const getFollowClueCount = async () => {
+  return await request.get({ url: '/crm/clue/follow-count' })
+}

--
Gitblit v1.8.0