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"
/>
-
-
-
+
+
+
+
+
@@ -224,6 +220,7 @@ import * as ContactApi from '@/api/crm/contact'
import ContactForm from './ContactForm.vue'
import { DICT_TYPE } from '@/utils/dict'
import * as CustomerApi from '@/api/crm/customer'
+import { TabsPaneContext } from 'element-plus'
defineOptions({ name: 'CrmContact' })
@@ -237,16 +234,17 @@ const customerList = ref([]) // 客户列表
const queryParams = reactive({
pageNo: 1,
pageSize: 10,
+ sceneType: '1', // 默认和 activeName 相等
mobile: undefined,
telephone: undefined,
email: undefined,
customerId: undefined,
name: undefined,
- qq: undefined,
wechat: undefined
})
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中
+const activeName = ref('1') // 列表 tab
/** 查询列表 */
const getList = async () => {
@@ -272,6 +270,12 @@ const resetQuery = () => {
handleQuery()
}
+/** tab 切换 */
+const handleTabClick = (tab: TabsPaneContext) => {
+ queryParams.sceneType = tab.paneName
+ handleQuery()
+}
+
/** 添加/修改操作 */
const formRef = ref()
const openForm = (type: string, id?: number) => {