CRM:优化客户的详情、更新成交状态

This commit is contained in:
YunaiV
2024-02-20 12:55:33 +08:00
parent ac9a77e6e4
commit 4362251b59
8 changed files with 62 additions and 41 deletions

View File

@ -50,6 +50,11 @@ export const updateCustomer = async (data: CustomerVO) => {
return await request.put({ url: `/crm/customer/update`, data })
}
// 更新客户的成交状态
export const updateCustomerDealStatus = async (id: number, dealStatus: boolean) => {
return await request.put({ url: `/crm/customer/update-deal-status`, params: { id, dealStatus } })
}
// 删除客户
export const deleteCustomer = async (id: number) => {
return await request.delete({ url: `/crm/customer/delete?id=` + id })