2025-07-23 18:22:56 +08:00
|
|
|
import request from '@/utils/http'
|
|
|
|
|
|
|
|
|
|
export class manageService {
|
2025-08-01 18:27:22 +08:00
|
|
|
//仪表盘 总
|
|
|
|
|
static statisticswhole() {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/inquiry/statistics/whole'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//各渠道统计
|
|
|
|
|
static channelcount() {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/inquiry/statistics/channel/count'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//各国家统计
|
|
|
|
|
static countrycount() {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/inquiry/statistics/country/count'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//跟单人统计
|
|
|
|
|
static trackcount() {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/inquiry/statistics/track/count'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//每日录单统计
|
|
|
|
|
static daycount() {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/inquiry/statistics/day/count'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//每日录单统计
|
|
|
|
|
static inquirycount(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/inquiry/statistics/inquiry/count',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-07-23 18:22:56 +08:00
|
|
|
//询单列表
|
|
|
|
|
static getinquiryList(params: Api.Common.PaginatingParams) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/inquiry/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 获取详情
|
|
|
|
|
static inquirydetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/inquiry/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//添加询单
|
|
|
|
|
static inquiryAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/inquiry/store',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//修改询单
|
|
|
|
|
static inquiryedit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/inquiry/update',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//删除询单
|
|
|
|
|
static inquirydelete(params: any) {
|
|
|
|
|
return request.get<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/inquiry/destroy',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//分配询单
|
|
|
|
|
static inquiryallocation(params: any) {
|
|
|
|
|
return request.post<Api.Work.AddResponse>({
|
|
|
|
|
url: '/admin/inquiry/allocation',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-08-06 18:36:42 +08:00
|
|
|
//重新分配询单
|
|
|
|
|
static inquiryreallocation(params: any) {
|
|
|
|
|
return request.post<Api.Work.AddResponse>({
|
|
|
|
|
url: '/admin/inquiry/reallocation',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-23 18:22:56 +08:00
|
|
|
//发布询单
|
|
|
|
|
static inquiryrelease(params: any) {
|
|
|
|
|
return request.post<Api.Work.AddResponse>({
|
|
|
|
|
url: '/admin/inquiry/release',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//获取用户下拉框
|
|
|
|
|
static presetusers() {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/common/preset/users'
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-08-05 18:25:32 +08:00
|
|
|
//crm 客户管理
|
|
|
|
|
//客户列表
|
|
|
|
|
static getcrmCustomerList(params: Api.Common.PaginatingParams) {
|
|
|
|
|
return request.get<Api.Common.CommonListDatad>({
|
|
|
|
|
url: '/admin/crm/customer/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//客户导出
|
|
|
|
|
static crmCustomerExport(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/crm/customer/export',
|
|
|
|
|
params,
|
|
|
|
|
responseType: 'blob' // 设置响应类型为 blob
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//客户审核
|
|
|
|
|
static crmCustomerAudit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/crm/customer/audit',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//客户转移
|
|
|
|
|
static crmCustomerTransfer(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/crm/customer/transfer',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//用户列表
|
|
|
|
|
static getUserList(params: Api.Common.PaginatingParams) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/user/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-08-06 18:36:42 +08:00
|
|
|
//用户编辑
|
|
|
|
|
static userEdit(params: any) {
|
|
|
|
|
return request.get<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/user/update',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-07-23 18:22:56 +08:00
|
|
|
}
|