Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
owen
2024-01-05 15:26:41 +08:00
64 changed files with 1121 additions and 569 deletions

View File

@ -44,7 +44,7 @@ export const exportTask = async (params) => {
// 获取所有可回退的节点
export const getReturnList = async (params) => {
return await request.get({ url: '/bpm/task/get-return-list', params })
return await request.get({ url: '/bpm/task/return-list', params })
}
// 回退

View File

@ -1,3 +1,10 @@
/*
* @Author: zyna
* @Date: 2023-12-02 13:08:56
* @LastEditTime: 2023-12-17 16:28:20
* @FilePath: \yudao-ui-admin-vue3\src\api\crm\business\index.ts
* @Description:
*/
import request from '@/config/axios'
export interface BusinessVO {
@ -55,3 +62,8 @@ export const deleteBusiness = async (id: number) => {
export const exportBusiness = async (params) => {
return await request.download({ url: `/crm/business/export-excel`, params })
}
//联系人关联商机列表
export const getBusinessPageByContact = async (params) => {
return await request.get({ url: `/crm/business/page-by-contact`, params })
}

View File

@ -8,7 +8,7 @@ export interface ContactVO {
email: string
post: string
customerId: number
address: string
detailAddress: string
remark: string
ownerUserId: string
lastTime: Date
@ -26,6 +26,11 @@ export interface ContactVO {
ownerUserName: string
}
export interface ContactBusinessReqVO {
contactId: number
businessIds: number[]
}
// 查询 CRM 联系人列表
export const getContactPage = async (params) => {
return await request.get({ url: `/crm/contact/page`, params })
@ -65,3 +70,13 @@ export const exportContact = async (params) => {
export const getSimpleContactList = async () => {
return await request.get({ url: `/crm/contact/simple-all-list` })
}
// 批量新增联系人商机关联
export const createContactBusinessList = async (data: ContactBusinessReqVO) => {
return await request.post({ url: `/crm/contact/create-business-list`, data })
}
// 解除联系人商机关联
export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => {
return await request.delete({ url: `/crm/contact/delete-business-list`, data })
}

View File

@ -1,47 +0,0 @@
import request from '@/config/axios'
export interface ContactBusinessLinkVO {
id: number
contactId: number
businessId: number
}
// 查询联系人商机关联分页
export const getContactBusinessLinkPage = async (params) => {
return await request.get({ url: `/crm/contact-business-link/page`, params })
}
// 查询联系人商机关联详情
export const getContactBusinessLink = async (id: number) => {
return await request.get({ url: `/crm/contact-business-link/get?id=` + id })
}
// 新增联系人商机关联
export const createContactBusinessLink = async (data: ContactBusinessLinkVO) => {
return await request.post({ url: `/crm/contact-business-link/create`, data })
}
// 修改联系人商机关联
export const updateContactBusinessLink = async (data: ContactBusinessLinkVO) => {
return await request.put({ url: `/crm/contact-business-link/update`, data })
}
// 删除联系人商机关联
export const deleteContactBusinessLink = async (data: ContactBusinessLinkVO) => {
return await request.delete({ url: `/crm/contact-business-link/delete-batch`, data })
}
// 导出联系人商机关联 Excel
export const exportContactBusinessLink = async (params) => {
return await request.download({ url: `/crm/contact-business-link/export-excel`, params })
}
//批量新增联系人商机关联
export const createContactBusinessLinkBatch = async (data: ContactBusinessLinkVO[]) => {
return await request.post({ url: `/crm/contact-business-link/create-batch`, data })
}
// 查询联系人关联商机列表
export const getBusinessByContactPage = async (params) => {
return await request.get({ url: `/crm/contact-business-link/page-by-contact`, params })
}
// TODO @zyna根据后端调整下请求

View File

@ -59,7 +59,7 @@ export const deleteCustomer = async (id: number) => {
}
// 导出客户 Excel
export const exportCustomer = async (params) => {
export const exportCustomer = async (params: any) => {
return await request.download({ url: `/crm/customer/export-excel`, params })
}
@ -67,3 +67,13 @@ export const exportCustomer = async (params) => {
export const queryAllList = async () => {
return await request.get({ url: `/crm/customer/query-all-list` })
}
// 查询客户操作日志
export const getOperateLogPage = async (params: any) => {
return await request.get({ url: '/crm/customer/operate-log-page', params })
}
// 锁定/解锁客户
export const lockCustomer = async (id: number, lockStatus: boolean) => {
return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } })
}

View File

@ -1,12 +1,11 @@
import request from '@/config/axios'
import { ConfigVO } from '@/api/infra/config'
export interface CustomerPoolConfigVO {
enabled?: boolean
contactExpireDays?: number
dealExpireDays?: number
notifyEnabled?: boolean
notifyDays: number
notifyDays?: number
}
// 获取客户公海规则设置
@ -15,6 +14,6 @@ export const getCustomerPoolConfig = async () => {
}
// 更新客户公海规则设置
export const saveCustomerPoolConfig = async (data: ConfigVO) => {
export const saveCustomerPoolConfig = async (data: CustomerPoolConfigVO) => {
return await request.put({ url: `/crm/customer-pool-config/save`, data })
}

View File

@ -0,0 +1,39 @@
import request from '@/config/axios'
export interface UReportDataVO {
id: number
name: string
status: number
content: string
remark: string
}
// 查询Ureport2报表分页
export const getUReportDataPage = async (params) => {
return await request.get({ url: `/report/ureport-data/page`, params })
}
// 查询Ureport2报表详情
export const getUReportData = async (id: number) => {
return await request.get({ url: `/report/ureport-data/get?id=` + id })
}
// 新增Ureport2报表
export const createUReportData = async (data: UReportDataVO) => {
return await request.post({ url: `/report/ureport-data/create`, data })
}
// 修改Ureport2报表
export const updateUReportData = async (data: UReportDataVO) => {
return await request.put({ url: `/report/ureport-data/update`, data })
}
// 删除Ureport2报表
export const deleteUReportData = async (id: number) => {
return await request.delete({ url: `/report/ureport-data/delete?id=` + id })
}
// 导出Ureport2报表 Excel
export const exportUReportData = async (params) => {
return await request.download({ url: `/report/ureport-data/export-excel`, params })
}

View File

@ -23,6 +23,32 @@ export type OperateLogVO = {
resultData: string
}
export type OperateLogV2VO = {
id: number
userNickname: string
traceId: string
userType: number
userId: number
userName: string
type: string
subType: string
bizId: number
action: string
extra: string
requestMethod: string
requestUrl: string
userIp: string
userAgent: string
creator: string
creatorName: string
createTime: Date
// 数据扩展,渲染时使用
title: string // 操作标题(如果为空则取 name 值)
colSize: number // 变更记录行数
contentStrList: string[]
tagsContentList: string[]
}
// 查询操作日志列表
export const getOperateLogPage = (params: PageParam) => {
return request.get({ url: '/system/operate-log/page', params })