From 08bb022cb507e06709180ce06ec6975e1d6a6a59 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 20 Feb 2024 23:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E7=9A=84=E7=BC=96=E8=BE=91=E3=80=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contact/index.ts | 51 ++-- src/views/crm/clue/detail/index.vue | 2 +- src/views/crm/contact/ContactForm.vue | 240 ++++++++---------- .../contact/detail/ContactDetailsHeader.vue | 14 +- .../crm/contact/detail/ContactDetailsInfo.vue | 63 ++--- src/views/crm/contact/detail/index.vue | 30 ++- src/views/crm/contact/index.vue | 24 +- 7 files changed, 202 insertions(+), 222 deletions(-) diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index 2dab70bc..a4150bec 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -2,29 +2,34 @@ import request from '@/config/axios' import { TransferReqVO } from '@/api/crm/customer' export interface ContactVO { - name: string - nextTime: Date - mobile: string - telephone: string - email: string - post: string - customerId: number - detailAddress: string - remark: string - ownerUserId: string - lastTime: Date - id: number - parentId: number - qq: number - wechat: string - sex: number - master: boolean - creatorName: string - updateTime?: Date - createTime?: Date - customerName: string - areaName: string - ownerUserName: string + id: number // 编号 + name: string // 联系人名称 + customerId: number // 客户编号 + customerName?: string // 客户名称 + contactLastTime: Date // 最后跟进时间 + contactLastContent: string // 最后跟进内容 + contactNextTime: Date // 下次联系时间 + ownerUserId: number // 负责人的用户编号 + ownerUserName?: string // 负责人的用户名称 + ownerUserDept?: string // 负责人的部门名称 + mobile: string // 手机号 + telephone: string // 电话 + qq: string // QQ + wechat: string // wechat + email: string // email + areaId: number // 所在地 + areaName?: string // 所在地名称 + detailAddress: string // 详细地址 + sex: number // 性别 + master: boolean // 是否主联系人 + post: string // 职务 + parentId: number // 上级联系人编号 + parentName?: string // 上级联系人名称 + remark: string // 备注 + creator: string // 创建人 + creatorName?: string // 创建人名称 + createTime: Date // 创建时间 + updateTime: Date // 更新时间 } export interface ContactBusinessReqVO { diff --git a/src/views/crm/clue/detail/index.vue b/src/views/crm/clue/detail/index.vue index ff83aeaf..f9074c14 100644 --- a/src/views/crm/clue/detail/index.vue +++ b/src/views/crm/clue/detail/index.vue @@ -33,7 +33,7 @@ ref="permissionListRef" :biz-id="clue.id!" :biz-type="BizTypeEnum.CRM_CLUE" - :show-action="!permissionListRef?.isPool || false" + :show-action="true" @quit-team="close" /> diff --git a/src/views/crm/contact/ContactForm.vue b/src/views/crm/contact/ContactForm.vue index 83eea14e..2940bb6a 100644 --- a/src/views/crm/contact/ContactForm.vue +++ b/src/views/crm/contact/ContactForm.vue @@ -1,28 +1,27 @@ - - {{ contact.name }} + {{ contact.name }} + {{ contact.customerName }} + {{ contact.mobile }} + {{ contact.telephone }} + {{ contact.email }} + {{ contact.qq }} + {{ contact.wechat }} + + {{ contact.areaName }} {{ contact.detailAddress }} - - {{ contact.customerName }} - - - {{ contact.mobile }} - - - {{ contact.telephone }} - - - {{ contact.email }} - - - {{ contact.qq }} - - - {{ contact.wechat }} - - - {{ contact.nextTime ? formatDate(contact.nextTime) : '空' }} - - - {{ contact.areaName }} - - - {{ contact.detailAddress }} + {{ contact.post }} + {{ contact.parentName }} + + - - {{ contact.remark }} + + {{ formatDate(contact.contactNextTime) }} + {{ contact.remark }} - - - {{ contact.ownerUserName }} + + {{ contact.ownerUserName }} + + {{ contact.contactLastContent }} - - {{ contact.creatorName }} + + {{ formatDate(contact.contactLastTime) }} +   + {{ contact.creatorName }} - {{ contact.createTime ? formatDate(contact.createTime) : '空' }} + {{ formatDate(contact.createTime) }} - {{ contact.updateTime ? formatDate(contact.updateTime) : '空' }} + {{ formatDate(contact.updateTime) }} diff --git a/src/views/crm/contact/detail/index.vue b/src/views/crm/contact/detail/index.vue index aee34166..bf27246b 100644 --- a/src/views/crm/contact/detail/index.vue +++ b/src/views/crm/contact/detail/index.vue @@ -9,6 +9,9 @@ + + + @@ -20,7 +23,7 @@ ref="permissionListRef" :biz-id="contact.id!" :biz-type="BizTypeEnum.CRM_CONTACT" - :show-action="!permissionListRef?.isPool || false" + :show-action="true" @quit-team="close" /> @@ -34,8 +37,8 @@ - - + + diff --git a/src/views/crm/contact/index.vue b/src/views/crm/contact/index.vue index b4f9150a..5cfde47a 100644 --- a/src/views/crm/contact/index.vue +++ b/src/views/crm/contact/index.vue @@ -53,15 +53,6 @@ @keyup.enter="handleQuery" /> - - - + + + + +