import request from '@/utils/http' export class CrmService { // 客户管理 //客户列表 static getcustomerList(params: Api.Common.PaginatingParams) { return request.get({ url: '/crm/customer/list', params }) } // 获取客户列表详情 static getcustomerdetail(params: any) { return request.get({ url: '/crm/customer/detail', params }) } //添加客户 static customerAdd(params: any) { return request.post({ url: '/crm/customer/add', params // showErrorMessage: false // 不显示错误消息 }) } //删除客户 static getcustomerdelete(params: any) { return request.get({ url: '/crm/customer/delete', params }) } //标记无效 static customerReport(params: any) { return request.get({ url: '/crm/customer/report', params // showErrorMessage: false // 不显示错误消息 }) } //切换等级crm/customer/grade static customergrade(params: any) { return request.post({ url: '/crm/customer/grade', params // showErrorMessage: false // 不显示错误消息 }) } //渠道下拉 static getChannel() { return request.get({ url: '/crm/customer/getChannel' }) } //国家下拉 static getCountry() { return request.get({ url: '/crm/customer/getCountry' }) } //商机 static getMagnitude() { return request.get({ url: '/crm/customer/getMagnitude' }) } //等级 static getGrade() { return request.get({ url: '/crm/customer/getGrade' }) } //标签列表/crm/tagGroup/list static tagGrouplist(params: any) { return request.get({ url: '/crm/tagGroup/list', params }) } //更新客户标签 /crm/tagGroup/updatePivot static tagGroupupdatePivot(params: any) { return request.get({ url: '/crm/tagGroup/updatePivot', params }) } //跟进列表crm/follow/list static getfollowlist(params: any) { return request.get({ url: '/crm/follow/list', params }) } //添加跟进 /crm/follow/add static followAdd(params: any) { return request.post({ url: '/crm/follow/add', params // showErrorMessage: false // 不显示错误消息 }) } //待跟进 /crm/customer/waitFollow static waitFollow(params: any) { return request.get({ url: '/crm/customer/waitFollow', params }) } //设置下次跟进时间 followNext crm/customer/followNext static followNext(params: any) { return request.post({ url: '/crm/customer/followNext', params // showErrorMessage: false // 不显示错误消息 }) } //crm 个人信息修改 static crmuseredit(params: any) { return request.post({ url: '/crm/user/edit', params // showErrorMessage: false // 不显示错误消息 }) } //领取公海crm/customer/claim static customerclaim(params: any) { return request.post({ url: '/crm/customer/claim', params // showErrorMessage: false // 不显示错误消息 }) } //客户回收 恢复 /crm/customer/restore static customerrestore(params: any) { return request.post({ url: '/crm/customer/restore', params // showErrorMessage: false // 不显示错误消息 }) } //crm 获取用户信息 common/user/get static userget() { return request.get({ url: '/common/user/get' }) } //修改密码 crm/user/savePassword static savePassword(params: any) { return request.post({ url: '/crm/user/savePassword', params // showErrorMessage: false // 不显示错误消息 }) } //首页统计 static homestatistics(params: any) { return request.get({ url: '/crm/customer/statistics', params }) } //从属客户列表 static getCustomercsList(params: Api.Common.PaginatingParams) { return request.get({ url: '/crm/customer/index', params }) } //从属客户转移 static cedeCustomer(params: any) { return request.post({ url: '/crm/customer/cede', params // showErrorMessage: false // 不显示错误消息 }) } //所属员工 static getCustomerUserList(params: Api.Common.PaginatingParams) { return request.get({ url: '/common/user/team', params }) } //标记离职 static markLeave(params: any) { return request.get({ url: '/common/user/resign', params // showErrorMessage: false // 不显示错误消息 }) } //客户删除 static crmCustomerDelete(params: any) { return request.get({ url: '/crm/customer/delete', params // showErrorMessage: false // 不显示错误消息 }) } //通知客户重复 static repeatCustomer(params: any) { return request.post({ url: '/crm/customer/distinctNotice', params // showErrorMessage: false // 不显示错误消息 }) } //备货单 static getStockList(params: Api.Common.PaginatingParams) { return request.get({ url: '/crm/stock/order/list', params }) } //添加备货单 static addStock(params: any) { return request.post({ url: '/crm/stock/order/store', params // showErrorMessage: false // 不显示错误消息 }) } //详情备货单 static getStockDetail(params: any) { return request.get({ url: '/crm/stock/order/show', params }) } //编辑备货单 static editStock(params: any) { return request.post({ url: '/crm/stock/order/update', params }) } //备货单查看 static checkStock(params: any) { return request.get({ url: '/crm/stock/order/detail', params }) } //提交备货单 static submitStock(params: any) { return request.post({ url: '/crm/stock/order/approval', params }) } //打印 static printStock(params: any) { return request.get({ url: '/crm/stock/order/print', params }) } //审批记录 static stockapprovalrecord(params: any) { return request.get({ url: '/crm/approval/records/todo', params }) } //审批通过/拒绝 static stockapprovalpass(params: any) { return request.post({ url: '/crm/approval/records/action', params }) } //审批记录 static stockapprovallogs(params: any) { return request.get({ url: '/crm/approval/records/logs', params }) } //终极备货单 提交 static stockultimateapproval(params: any) { return request.post({ url: '/crm/stock/order/ultimate/approval', params }) } }