From 48693b50f2a50b904198ce787b9abd069d7c2a64 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 15 Jan 2024 22:45:12 +0800 Subject: [PATCH] =?UTF-8?q?wip:=20CRM-=E4=BB=A3=E5=8A=9E=E6=B6=88=E6=81=AF?= =?UTF-8?q?-=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9D=97=E4=B8=BAbacklog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/backlog/index.ts | 18 +++++++++ src/api/crm/message/index.ts | 40 ------------------- src/router/modules/remaining.ts | 6 +-- src/views/crm/{message => backlog}/index.vue | 18 +++++++-- .../tables/FollowLeads.vue | 1 + .../tables/TodayCustomer.vue | 34 ++++------------ 6 files changed, 45 insertions(+), 72 deletions(-) create mode 100644 src/api/crm/backlog/index.ts delete mode 100644 src/api/crm/message/index.ts rename src/views/crm/{message => backlog}/index.vue (78%) rename src/views/crm/{message => backlog}/tables/FollowLeads.vue (82%) rename src/views/crm/{message => backlog}/tables/TodayCustomer.vue (84%) diff --git a/src/api/crm/backlog/index.ts b/src/api/crm/backlog/index.ts new file mode 100644 index 00000000..8e70f745 --- /dev/null +++ b/src/api/crm/backlog/index.ts @@ -0,0 +1,18 @@ +import request from '@/config/axios' + +import { type CustomerVO } from '../customer' +import { type ClueVO } from '../clue' + + +// 查询客户列表 +// TODO @芋艿:看看是不是后续融合到 getCustomerPage 里; +export const getTodayCustomerPage = async (params) => { + return await request.get({ url: `/crm/backlog/today-customer-page`, params }) +} + +// 查询线索列表 +export const getFollowLeadsPage = async (params) => { + return await request.get({ url: `/crm/backlog/page`, params }) +} + +export { type CustomerVO, type ClueVO } diff --git a/src/api/crm/message/index.ts b/src/api/crm/message/index.ts deleted file mode 100644 index 098729eb..00000000 --- a/src/api/crm/message/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import request from '@/config/axios' - -export interface CustomerVO { - id?: number - name: string - industryId: number - level: number - source: number - followUpStatus?: boolean - lockStatus?: boolean - dealStatus?: boolean - mobile: string - telephone: string - website: string - qq: string - wechat: string - email: string - description: string - remark: string - ownerUserId?: number - ownerUserName?: string - ownerUserDept?: string - roUserIds?: string - rwUserIds?: string - areaId?: number - areaName?: string - detailAddress: string - contactLastTime?: Date - contactNextTime: Date - createTime?: Date - updateTime?: Date - creator?: string - creatorName?: string -} - -// 查询客户列表 -// TODO @芋艿:看看是不是后续融合到 getCustomerPage 里; -export const getTodayCustomerPage = async (params) => { - return await request.get({ url: `/crm/message/todayCustomer`, params }) -} diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 7e805159..7bcd81d2 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -530,15 +530,15 @@ const remainingRouter: AppRouteRecordRaw[] = [ component: () => import('@/views/crm/product/detail/index.vue') }, { - path: 'message', - name: 'CrmMessage', + path: 'backlog', + name: 'CrmBacklog', meta: { title: '待办事项', noCache: true, hidden: true }, // TODO @db52:后面搞,搞成菜单 - component: () => import('@/views/crm/message/index.vue') + component: () => import('@/views/crm/backlog/index.vue') } ] } diff --git a/src/views/crm/message/index.vue b/src/views/crm/backlog/index.vue similarity index 78% rename from src/views/crm/message/index.vue rename to src/views/crm/backlog/index.vue index 1dd972aa..bbaf3f16 100644 --- a/src/views/crm/message/index.vue +++ b/src/views/crm/backlog/index.vue @@ -17,13 +17,25 @@ + + + + + + - +