diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts
index 32281d2b..b6661765 100644
--- a/src/api/crm/business/index.ts
+++ b/src/api/crm/business/index.ts
@@ -92,11 +92,6 @@ export const getBusinessPageByContact = async (params) => {
return await request.get({ url: `/crm/business/page-by-contact`, params })
}
-// 获得 CRM 商机列表
-export const getBusinessListByIds = async (val: number[]) => {
- return await request.get({ url: '/crm/business/list-by-ids', params: { ids: val.join(',') } })
-}
-
// 商机转移
export const transferBusiness = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/business/transfer', data })
diff --git a/src/api/crm/followup/index.ts b/src/api/crm/followup/index.ts
index 504879d3..414f3f71 100644
--- a/src/api/crm/followup/index.ts
+++ b/src/api/crm/followup/index.ts
@@ -11,7 +11,17 @@ export interface FollowUpRecordVO {
fileUrls: string[] // 附件
nextTime: Date // 下次联系时间
businessIds: number[] // 关联的商机编号数组
+ businesses: {
+ id: number
+ name: string
+ }[] // 关联的商机数组
contactIds: number[] // 关联的联系人编号数组
+ contacts: {
+ id: number
+ name: string
+ }[] // 关联的联系人数组
+ creator: string
+ creatorName?: string
}
// 跟进记录 API
@@ -21,28 +31,13 @@ export const FollowUpRecordApi = {
return await request.get({ url: `/crm/follow-up-record/page`, params })
},
- // 查询跟进记录详情
- getFollowUpRecord: async (id: number) => {
- return await request.get({ url: `/crm/follow-up-record/get?id=` + id })
- },
-
// 新增跟进记录
createFollowUpRecord: async (data: FollowUpRecordVO) => {
return await request.post({ url: `/crm/follow-up-record/create`, data })
},
- // 修改跟进记录
- updateFollowUpRecord: async (data: FollowUpRecordVO) => {
- return await request.put({ url: `/crm/follow-up-record/update`, data })
- },
-
// 删除跟进记录
deleteFollowUpRecord: async (id: number) => {
return await request.delete({ url: `/crm/follow-up-record/delete?id=` + id })
- },
-
- // 导出跟进记录 Excel
- exportFollowUpRecord: async (params) => {
- return await request.download({ url: `/crm/follow-up-record/export-excel`, params })
}
}
diff --git a/src/views/crm/business/components/BusinessListModal.vue b/src/views/crm/business/components/BusinessListModal.vue
index f2a39b10..2832b6ee 100644
--- a/src/views/crm/business/components/BusinessListModal.vue
+++ b/src/views/crm/business/components/BusinessListModal.vue
@@ -48,8 +48,8 @@
@@ -75,7 +75,7 @@
diff --git a/src/views/crm/followup/components/BusinessList.vue b/src/views/crm/followup/components/BusinessList.vue
deleted file mode 100644
index 0dea5cb4..00000000
--- a/src/views/crm/followup/components/BusinessList.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 移除
-
-
-
-
-
-
diff --git a/src/views/crm/followup/components/BusinessTableSelect.vue b/src/views/crm/followup/components/BusinessTableSelect.vue
deleted file mode 100644
index de2db616..00000000
--- a/src/views/crm/followup/components/BusinessTableSelect.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/crm/followup/components/FollowUpRecordBusinessForm.vue b/src/views/crm/followup/components/FollowUpRecordBusinessForm.vue
new file mode 100644
index 00000000..620b5fbc
--- /dev/null
+++ b/src/views/crm/followup/components/FollowUpRecordBusinessForm.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+ 移除
+
+
+
+
+
+
diff --git a/src/views/crm/followup/components/index.ts b/src/views/crm/followup/components/index.ts
index 48d90daa..6c669fc3 100644
--- a/src/views/crm/followup/components/index.ts
+++ b/src/views/crm/followup/components/index.ts
@@ -1,6 +1,4 @@
-import BusinessList from './BusinessList.vue'
-import BusinessTableSelect from './BusinessTableSelect.vue'
import ContactList from './ContactList.vue'
import ContactTableSelect from './ContactTableSelect.vue'
-export { BusinessList, BusinessTableSelect, ContactList, ContactTableSelect }
+export { ContactList, ContactTableSelect }
diff --git a/src/views/crm/followup/index.vue b/src/views/crm/followup/index.vue
index d03832b0..f4372627 100644
--- a/src/views/crm/followup/index.vue
+++ b/src/views/crm/followup/index.vue
@@ -2,7 +2,7 @@
-
+
写跟进
@@ -10,8 +10,13 @@
-
-
+
@@ -26,27 +31,46 @@
prop="nextTime"
width="180px"
/>
-
-
-
-
+ label="关联联系人"
+ prop="contactIds"
+ v-if="bizType === BizTypeEnum.CRM_CUSTOMER"
+ >
+
+
+ {{ contact.name }}
+
+
+
+
+
+
+ {{ business.name }}
+
+
+
-
- 编辑
-
{
/** 添加/修改操作 */
const formRef = ref>()
-const openForm = (type: string, id?: number) => {
- formRef.value?.open(props.bizType, props.bizId, type, id)
+const openForm = () => {
+ formRef.value?.open(props.bizType, props.bizId)
}
/** 删除按钮操作 */
@@ -127,6 +152,17 @@ const handleDelete = async (id: number) => {
} catch {}
}
+/** 打开联系人详情 */
+const { push } = useRouter()
+const openContactDetail = (id: number) => {
+ push({ name: 'CrmContactDetail', params: { id } })
+}
+
+/** 打开商机详情 */
+const openBusinessDetail = (id: number) => {
+ push({ name: 'CrmBusinessDetail', params: { id } })
+}
+
watch(
() => props.bizId,
() => {
diff --git a/src/views/crm/permission/components/PermissionForm.vue b/src/views/crm/permission/components/PermissionForm.vue
index aced2f48..3eff4e6a 100644
--- a/src/views/crm/permission/components/PermissionForm.vue
+++ b/src/views/crm/permission/components/PermissionForm.vue
@@ -30,7 +30,7 @@
-
+