From 7af2a3bcc31dcfdc65db4fec968008b3a834bd2e Mon Sep 17 00:00:00 2001 From: "913752709@qq.com" <913752709@qq.com> Date: Wed, 18 Oct 2023 20:02:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20CRM=20=E7=BA=BF=E7=B4=A2=E8=A1=A8=20cru?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/clue/index.ts | 46 +++++ src/views/crm/clue/ClueForm.vue | 165 +++++++++++++++++ src/views/crm/clue/index.vue | 318 ++++++++++++++++++++++++++++++++ 3 files changed, 529 insertions(+) create mode 100644 src/api/crm/clue/index.ts create mode 100644 src/views/crm/clue/ClueForm.vue create mode 100644 src/views/crm/clue/index.vue diff --git a/src/api/crm/clue/index.ts b/src/api/crm/clue/index.ts new file mode 100644 index 00000000..39da03d3 --- /dev/null +++ b/src/api/crm/clue/index.ts @@ -0,0 +1,46 @@ +import request from '@/config/axios' + +export interface ClueVO { + id: number + transformStatus: boolean + followUpStatus: boolean + name: string + customerId: number + contactNextTime: Date + telephone: string + mobile: string + address: string + ownerUserId: number + contactLastTime: Date + remark: string +} + +// 查询线索列表 +export const getCluePage = async (params) => { + 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 }) +} diff --git a/src/views/crm/clue/ClueForm.vue b/src/views/crm/clue/ClueForm.vue new file mode 100644 index 00000000..e72e4228 --- /dev/null +++ b/src/views/crm/clue/ClueForm.vue @@ -0,0 +1,165 @@ + + diff --git a/src/views/crm/clue/index.vue b/src/views/crm/clue/index.vue new file mode 100644 index 00000000..42f20545 --- /dev/null +++ b/src/views/crm/clue/index.vue @@ -0,0 +1,318 @@ + + +