CRM提交更新

This commit is contained in:
2025-03-12 21:14:46 +08:00
parent 6fbac23101
commit 0ce49d1504
52 changed files with 2918 additions and 179 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询CRM 商机列表
export function listBusiness(query) {
return request({
url: '/oa/business/list',
method: 'get',
params: query
})
}
// 查询CRM 商机详细
export function getBusiness(businessId) {
return request({
url: '/oa/business/' + businessId,
method: 'get'
})
}
// 新增CRM 商机
export function addBusiness(data) {
return request({
url: '/oa/business',
method: 'post',
data: data
})
}
// 修改CRM 商机
export function updateBusiness(data) {
return request({
url: '/oa/business',
method: 'put',
data: data
})
}
// 删除CRM 商机
export function delBusiness(businessId) {
return request({
url: '/oa/business/' + businessId,
method: 'delete'
})
}

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询CRM 线索列表
export function listClue(query) {
return request({
url: '/oa/clue/list',
method: 'get',
params: query
})
}
// 查询CRM 线索详细
export function getClue(clueId) {
return request({
url: '/oa/clue/' + clueId,
method: 'get'
})
}
// 新增CRM 线索
export function addClue(data) {
return request({
url: '/oa/clue',
method: 'post',
data: data
})
}
// 修改CRM 线索
export function updateClue(data) {
return request({
url: '/oa/clue',
method: 'put',
data: data
})
}
// 删除CRM 线索
export function delClue(clueId) {
return request({
url: '/oa/clue/' + clueId,
method: 'delete'
})
}

View File

@@ -0,0 +1,52 @@
import request from '@/utils/request'
// 查询CRM 客户列表
export function listCustomer(query) {
return request({
url: '/oa/customer/list',
method: 'get',
params: query
})
}
// 查询CRM 客户列表
export function listSeaCustomer(query) {
return request({
url: '/oa/customer/list-sea',
method: 'get',
params: query
})
}
// 查询CRM 客户详细
export function getCustomer(customerId) {
return request({
url: '/oa/customer/' + customerId,
method: 'get'
})
}
// 新增CRM 客户
export function addCustomer(data) {
return request({
url: '/oa/customer',
method: 'post',
data: data
})
}
// 修改CRM 客户
export function updateCustomer(data) {
return request({
url: '/oa/customer',
method: 'put',
data: data
})
}
// 删除CRM 客户
export function delCustomer(customerId) {
return request({
url: '/oa/customer/' + customerId,
method: 'delete'
})
}

View File

@@ -0,0 +1,52 @@
import request from '@/utils/request'
// 查询CRM 跟进记录列表
export function listFollowUpRecord(query) {
return request({
url: '/oa/followUpRecord/list',
method: 'get',
params: query
})
}
// 查询CRM 跟进记录列表
export function listFollowUpRecordByIds(ids) {
return request({
url: '/oa/followUpRecord/listByIds/'+ids,
method: 'get'
})
}
// 查询CRM 跟进记录详细
export function getFollowUpRecord(followId) {
return request({
url: '/oa/followUpRecord/' + followId,
method: 'get'
})
}
// 新增CRM 跟进记录
export function addFollowUpRecord(data) {
return request({
url: '/oa/followUpRecord',
method: 'post',
data: data
})
}
// 修改CRM 跟进记录
export function updateFollowUpRecord(data) {
return request({
url: '/oa/followUpRecord',
method: 'put',
data: data
})
}
// 删除CRM 跟进记录
export function delFollowUpRecord(followId) {
return request({
url: '/oa/followUpRecord/' + followId,
method: 'delete'
})
}

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询CRM 产品列表
export function listProduct(query) {
return request({
url: '/oa/product/list',
method: 'get',
params: query
})
}
// 查询CRM 产品详细
export function getProduct(productId) {
return request({
url: '/oa/product/' + productId,
method: 'get'
})
}
// 新增CRM 产品
export function addProduct(data) {
return request({
url: '/oa/product',
method: 'post',
data: data
})
}
// 修改CRM 产品
export function updateProduct(data) {
return request({
url: '/oa/product',
method: 'put',
data: data
})
}
// 删除CRM 产品
export function delProduct(productId) {
return request({
url: '/oa/product/' + productId,
method: 'delete'
})
}