CRM:完成商机状态的变更

This commit is contained in:
YunaiV
2024-02-22 20:41:37 +08:00
parent cf7036d34b
commit bbf6c16b8d
4 changed files with 135 additions and 0 deletions

View File

@ -72,6 +72,11 @@ export const updateBusiness = async (data: BusinessVO) => {
return await request.put({ url: `/crm/business/update`, data })
}
// 修改 CRM 商机状态
export const updateBusinessStatus = async (data: BusinessVO) => {
return await request.put({ url: `/crm/business/update-status`, data })
}
// 删除 CRM 商机
export const deleteBusiness = async (id: number) => {
return await request.delete({ url: `/crm/business/delete?id=` + id })

View File

@ -61,3 +61,8 @@ export const deleteBusinessStatus = async (id: number) => {
export const getBusinessStatusTypeSimpleList = async () => {
return await request.get({ url: `/crm/business-status/type-simple-list` })
}
// 获得商机阶段列表
export const getBusinessStatusSimpleList = async (typeId: number) => {
return await request.get({ url: `/crm/business-status/status-simple-list`, params: { typeId } })
}