mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 19:35:07 +08:00
crm联系人商机修改
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* @Author: zyna
|
||||
* @Date: 2023-12-02 13:08:56
|
||||
* @LastEditTime: 2023-12-17 16:28:20
|
||||
* @FilePath: \yudao-ui-admin-vue3\src\api\crm\business\index.ts
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface BusinessVO {
|
||||
@ -55,3 +62,8 @@ export const deleteBusiness = async (id: number) => {
|
||||
export const exportBusiness = async (params) => {
|
||||
return await request.download({ url: `/crm/business/export-excel`, params })
|
||||
}
|
||||
|
||||
//联系人关联商机列表
|
||||
export const getBusinessPageByContact = async (params) => {
|
||||
return await request.get({ url: `/crm/business/page-by-contact`, params })
|
||||
}
|
||||
|
@ -25,7 +25,11 @@ export interface ContactVO {
|
||||
areaName: string
|
||||
ownerUserName: string
|
||||
}
|
||||
|
||||
export interface ContactBusinessLinkVO {
|
||||
id: number
|
||||
contactId: number
|
||||
businessId: number
|
||||
}
|
||||
// 查询 CRM 联系人列表
|
||||
export const getContactPage = async (params) => {
|
||||
return await request.get({ url: `/crm/contact/page`, params })
|
||||
@ -65,3 +69,13 @@ export const exportContact = async (params) => {
|
||||
export const getSimpleContactList = async () => {
|
||||
return await request.get({ url: `/crm/contact/simple-all-list` })
|
||||
}
|
||||
|
||||
//批量新增联系人商机关联
|
||||
export const createContactBusinessLinkBatch = async (data: ContactBusinessLinkVO[]) => {
|
||||
return await request.post({ url: `/crm/contact/create-batch-business`, data })
|
||||
}
|
||||
|
||||
//解除联系人商机关联
|
||||
export const deleteContactBusinessLink = async (data: ContactBusinessLinkVO) => {
|
||||
return await request.delete({ url: `/crm/contact/delete-batch-business`, data })
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
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 })
|
||||
}
|
||||
// TODO @zyna:根据后端,调整下请求
|
Reference in New Issue
Block a user