crm-客户:完善转移和按钮权限

This commit is contained in:
puhui999
2024-01-14 21:48:20 +08:00
parent 5151824110
commit 9cbb3aa84a
4 changed files with 284 additions and 73 deletions

View File

@ -75,6 +75,17 @@ export const getOperateLogPage = async (id: number) => {
// ======================= 业务操作 =======================
export interface TransferReqVO {
id: number | undefined // 客户编号
newOwnerUserId: number | undefined // 新负责人的用户编号
oldOwnerPermissionLevel: number | undefined // 老负责人加入团队后的权限级别
}
// 客户转移
export const transfer = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/customer/transfer', data })
}
// 锁定/解锁客户
export const lockCustomer = async (id: number, lockStatus: boolean) => {
return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } })