From 0ae6139e92110f3dbf7fcf766263880725f69dff Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 19 Feb 2024 20:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20CRM=EF=BC=9A=E7=BA=BF=E7=B4=A2?= =?UTF-8?q?=E7=9A=84=E8=BD=AC=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/clue/index.ts | 10 ++ src/api/crm/permission/index.ts | 2 +- src/router/modules/remaining.ts | 11 ++ src/views/crm/clue/ClueForm.vue | 10 +- .../crm/clue/detail/ClueDetailsHeader.vue | 43 ++++++ src/views/crm/clue/detail/ClueDetailsInfo.vue | 72 ++++++++++ src/views/crm/clue/detail/index.vue | 130 ++++++++++++++++++ src/views/crm/clue/index.vue | 40 +++++- src/views/crm/customer/detail/index.vue | 1 - src/views/crm/followup/index.vue | 1 + 10 files changed, 309 insertions(+), 11 deletions(-) create mode 100644 src/views/crm/clue/detail/ClueDetailsHeader.vue create mode 100644 src/views/crm/clue/detail/ClueDetailsInfo.vue create mode 100644 src/views/crm/clue/detail/index.vue diff --git a/src/api/crm/clue/index.ts b/src/api/crm/clue/index.ts index de8b0214..7414ccb0 100644 --- a/src/api/crm/clue/index.ts +++ b/src/api/crm/clue/index.ts @@ -20,11 +20,16 @@ export interface ClueVO { 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 // 更新时间 } // 查询线索列表 @@ -61,3 +66,8 @@ export const exportClue = async (params) => { export const transferClue = async (data: TransferReqVO) => { return await request.put({ url: '/crm/clue/transfer', data }) } + +// 线索转化为客户 +export const transformClue = async (ids: number[]) => { + return await request.put({ url: '/crm/clue/transform?ids=' + ids.join(',') }) +} diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts index 5c829b6a..31f9e18d 100644 --- a/src/api/crm/permission/index.ts +++ b/src/api/crm/permission/index.ts @@ -19,7 +19,7 @@ export interface PermissionVO { * @author HUIHUI */ export enum BizTypeEnum { - CRM_LEADS = 1, // 线索 + CRM_CLUE = 1, // 线索 CRM_CUSTOMER = 2, // 客户 CRM_CONTACT = 3, // 联系人 CRM_BUSINESS = 4, // 商机 diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 4eec8cd4..4f845d0d 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -496,6 +496,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ name: 'CrmCenter', meta: { hidden: true }, children: [ + { + path: 'clue/detail/:id', + name: 'CrmClueDetail', + meta: { + title: '线索详情', + noCache: true, + hidden: true, + activeMenu: '/crm/clue' + }, + component: () => import('@/views/crm/clue/detail/index.vue') + }, { path: 'customer/detail/:id', name: 'CrmCustomerDetail', diff --git a/src/views/crm/clue/ClueForm.vue b/src/views/crm/clue/ClueForm.vue index 7605f4fa..11e43387 100644 --- a/src/views/crm/clue/ClueForm.vue +++ b/src/views/crm/clue/ClueForm.vue @@ -128,12 +128,12 @@ /> + + + + + - - - - -