diff --git a/src/api/crm/contactbusinesslink/index.ts b/src/api/crm/contactbusinesslink/index.ts new file mode 100644 index 00000000..5f81d5b6 --- /dev/null +++ b/src/api/crm/contactbusinesslink/index.ts @@ -0,0 +1,47 @@ +import { getBusiness } from './../business/index'; +import request from '@/config/axios' + +export interface ContactBusinessLinkVO { + id: number + contactId: number + businessId: number +} + +// 查询联系人商机关联分页 +export const getContactBusinessLinkPage = async (params) => { + return await request.get({ url: `/crm/contact-business-link/page`, params }) +} + +// 查询联系人商机关联详情 +export const getContactBusinessLink = async (id: number) => { + return await request.get({ url: `/crm/contact-business-link/get?id=` + id }) +} + +// 新增联系人商机关联 +export const createContactBusinessLink = async (data: ContactBusinessLinkVO) => { + return await request.post({ url: `/crm/contact-business-link/create`, data }) +} + +// 修改联系人商机关联 +export const updateContactBusinessLink = async (data: ContactBusinessLinkVO) => { + return await request.put({ url: `/crm/contact-business-link/update`, data }) +} + +// 删除联系人商机关联 +export const deleteContactBusinessLink = async (data: ContactBusinessLinkVO) => { + return await request.delete({ url: `/crm/contact-business-link/delete-batch` , data }) +} + +// 导出联系人商机关联 Excel +export const exportContactBusinessLink = async (params) => { + return await request.download({ url: `/crm/contact-business-link/export-excel`, params }) +} + +//批量新增联系人商机关联 +export const createContactBusinessLinkBatch = async (data: ContactBusinessLinkVO[]) => { + return await request.post({ url: `/crm/contact-business-link/create-batch`, data }) +} +// 查询联系人关联商机列表 +export const getBusinessByContactPage = async (params) => { + return await request.get({ url: `/crm/contact-business-link/page-by-contact` , params }) +} \ No newline at end of file diff --git a/src/views/crm/contact/detail/ContactBasicInfo.vue b/src/views/crm/contact/detail/ContactBasicInfo.vue deleted file mode 100644 index e61c747b..00000000 --- a/src/views/crm/contact/detail/ContactBasicInfo.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - - {{ contact.name }} - - - - - - - - diff --git a/src/views/crm/contact/detail/ContactDetailsHeader.vue b/src/views/crm/contact/detail/ContactDetailsHeader.vue new file mode 100644 index 00000000..24799c9e --- /dev/null +++ b/src/views/crm/contact/detail/ContactDetailsHeader.vue @@ -0,0 +1,57 @@ + + + + + + + + {{ contact.name }} + + + + + + + 编辑 + + + + + + + + {{ contact.customerName }} + + + {{ contact.post }} + + + {{ contact.mobile }} + + + {{ contact.createTime ? formatDate(contact.createTime) : '空' }} + + + + + + + diff --git a/src/views/crm/contact/detail/ContactDetails.vue b/src/views/crm/contact/detail/ContactDetailsInfo.vue similarity index 100% rename from src/views/crm/contact/detail/ContactDetails.vue rename to src/views/crm/contact/detail/ContactDetailsInfo.vue diff --git a/src/views/crm/contact/detail/index.vue b/src/views/crm/contact/detail/index.vue index 6a6e71bf..dff71bef 100644 --- a/src/views/crm/contact/detail/index.vue +++ b/src/views/crm/contact/detail/index.vue @@ -1,99 +1,32 @@ - - - - - - - - - - - 编辑 - - - - - - - 创建任务 - - - - 发送邮件 - - - - 创建联系人 - - - - 创建商机 - - - - 创建合同 - - - - 创建回款 - - - - 添加团队成员 - - - - - - - {{ contact.customerName }} - - - {{ contact.post }} - - - {{ contact.mobile }} - - - {{ contact.createTime ? formatDate(contact.createTime) : '空' }} - - - - - + + - - - + + - 跟进记录 - 商机 - 附件 - - - 操作记录 - 操作记录 + TODO 待开发 + + + + + - - - diff --git a/src/views/crm/contactBusinessLink/components/BusinessListByContact.vue b/src/views/crm/contactBusinessLink/components/BusinessListByContact.vue new file mode 100644 index 00000000..0b587252 --- /dev/null +++ b/src/views/crm/contactBusinessLink/components/BusinessListByContact.vue @@ -0,0 +1,140 @@ + + + + + + 创建商机 + + + 关联 + + + 解除关联 + + + + + + + + + + + {{ scope.row.name }} + + + + + + + + + + + + + + + + + + diff --git a/src/views/crm/contactBusinessLink/index.vue b/src/views/crm/contactBusinessLink/index.vue new file mode 100644 index 00000000..e69de29b