From 8b92a8407f93661a126ffd7ee142aff3c07a9e72 Mon Sep 17 00:00:00 2001 From: kaeery <3491123437@qq.com> Date: Fri, 28 Feb 2025 20:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8B=9B=E7=94=9F=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E3=80=91=20=E6=96=B0=E5=A2=9E#=20=E7=BA=BF=E7=B4=A2?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=9A=E5=AF=B9=E6=8E=A5=E7=BA=BF=E7=B4=A2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/clue/index.ts | 4 + src/enums/index.ts | 14 ++++ .../components/clue-detail/clue-record.vue | 73 +++++++++---------- src/views/customer/index.vue | 3 + src/views/summary/components/add-item.vue | 4 +- .../summary/components/template-drawer.vue | 3 +- .../summary/modules/summary-template.vue | 3 + 7 files changed, 61 insertions(+), 43 deletions(-) diff --git a/src/api/clue/index.ts b/src/api/clue/index.ts index a9ad940..32b0200 100644 --- a/src/api/clue/index.ts +++ b/src/api/clue/index.ts @@ -8,3 +8,7 @@ export function clueDetail(params?: any) { export function clueLists(params?: any) { return request.get({ url: '/clue/list', params }) } +// 线索记录列表 +export function clueRecordLists(params?: any) { + return request.get({ url: '/record/list', params }) +} diff --git a/src/enums/index.ts b/src/enums/index.ts index b4ea4a4..2cfdcb2 100644 --- a/src/enums/index.ts +++ b/src/enums/index.ts @@ -78,6 +78,20 @@ export const templateTypeMap: Record = { [templateTypeEum.TELE]: '电销', [templateTypeEum.RECEULT]: '招生' } +export enum clueStepEnum { + ADD_FLLOW = 0, + RECEIVE_CLUE = 1, + ADD_CLUE_PROGRESS = 2, + CLUE_COMPLETED = 3, + UPDATE_CLUSE_PROGRESS = 4 +} +export const clueStepMap: Record = { + [clueStepEnum.ADD_FLLOW]: '添加跟进', + [clueStepEnum.RECEIVE_CLUE]: '领取线索', + [clueStepEnum.ADD_CLUE_PROGRESS]: '添加进展', + [clueStepEnum.CLUE_COMPLETED]: '转化完成', + [clueStepEnum.UPDATE_CLUSE_PROGRESS]: '修改跟进' +} const keys: Record = { conversionMap: conversionMap, diff --git a/src/views/clue/components/clue-detail/clue-record.vue b/src/views/clue/components/clue-detail/clue-record.vue index c8a5fc3..e6f38a2 100644 --- a/src/views/clue/components/clue-detail/clue-record.vue +++ b/src/views/clue/components/clue-detail/clue-record.vue @@ -7,8 +7,8 @@ {{ item.user }} 「{{ item.step }}」 -
- {{ key }}:{{ value }} +
+ {{ itemy.title }}{{ itemy.content }}
@@ -16,56 +16,51 @@