Skip to content

Commit 1fb7701

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents ca35e1a + 5e265a9 commit 1fb7701

File tree

64 files changed

+1100
-548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1100
-548
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"editor.defaultFormatter": "esbenp.prettier-vscode"
8484
},
8585
"editor.codeActionsOnSave": {
86-
"source.fixAll.eslint": true
86+
"source.fixAll.eslint": "explicit"
8787
},
8888
"[vue]": {
8989
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"

src/api/bpm/task/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const exportTask = async (params) => {
4444

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

5050
// 回退

src/api/crm/business/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
* @Author: zyna
3+
* @Date: 2023-12-02 13:08:56
4+
* @LastEditTime: 2023-12-17 16:28:20
5+
* @FilePath: \yudao-ui-admin-vue3\src\api\crm\business\index.ts
6+
* @Description:
7+
*/
18
import request from '@/config/axios'
29

310
export interface BusinessVO {
@@ -55,3 +62,8 @@ export const deleteBusiness = async (id: number) => {
5562
export const exportBusiness = async (params) => {
5663
return await request.download({ url: `/crm/business/export-excel`, params })
5764
}
65+
66+
//联系人关联商机列表
67+
export const getBusinessPageByContact = async (params) => {
68+
return await request.get({ url: `/crm/business/page-by-contact`, params })
69+
}

src/api/crm/contact/index.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface ContactVO {
88
email: string
99
post: string
1010
customerId: number
11-
address: string
11+
detailAddress: string
1212
remark: string
1313
ownerUserId: string
1414
lastTime: Date
@@ -26,6 +26,11 @@ export interface ContactVO {
2626
ownerUserName: string
2727
}
2828

29+
export interface ContactBusinessReqVO {
30+
contactId: number
31+
businessIds: number[]
32+
}
33+
2934
// 查询 CRM 联系人列表
3035
export const getContactPage = async (params) => {
3136
return await request.get({ url: `/crm/contact/page`, params })
@@ -65,3 +70,13 @@ export const exportContact = async (params) => {
6570
export const getSimpleContactList = async () => {
6671
return await request.get({ url: `/crm/contact/simple-all-list` })
6772
}
73+
74+
// 批量新增联系人商机关联
75+
export const createContactBusinessList = async (data: ContactBusinessReqVO) => {
76+
return await request.post({ url: `/crm/contact/create-business-list`, data })
77+
}
78+
79+
// 解除联系人商机关联
80+
export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => {
81+
return await request.delete({ url: `/crm/contact/delete-business-list`, data })
82+
}

src/api/crm/contactbusinesslink/index.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/api/crm/customer/index.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,21 @@ export const deleteCustomer = async (id: number) => {
5959
}
6060

6161
// 导出客户 Excel
62-
export const exportCustomer = async (params) => {
62+
export const exportCustomer = async (params: any) => {
6363
return await request.download({ url: `/crm/customer/export-excel`, params })
6464
}
6565

6666
// 客户列表
6767
export const queryAllList = async () => {
6868
return await request.get({ url: `/crm/customer/query-all-list` })
6969
}
70+
71+
// 查询客户操作日志
72+
export const getOperateLogPage = async (params: any) => {
73+
return await request.get({ url: '/crm/customer/operate-log-page', params })
74+
}
75+
76+
// 锁定/解锁客户
77+
export const lockCustomer = async (id: number, lockStatus: boolean) => {
78+
return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } })
79+
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import request from '@/config/axios'
2-
import { ConfigVO } from '@/api/infra/config'
32

43
export interface CustomerPoolConfigVO {
54
enabled?: boolean
65
contactExpireDays?: number
76
dealExpireDays?: number
87
notifyEnabled?: boolean
9-
notifyDays: number
8+
notifyDays?: number
109
}
1110

1211
// 获取客户公海规则设置
@@ -15,6 +14,6 @@ export const getCustomerPoolConfig = async () => {
1514
}
1615

1716
// 更新客户公海规则设置
18-
export const saveCustomerPoolConfig = async (data: ConfigVO) => {
17+
export const saveCustomerPoolConfig = async (data: CustomerPoolConfigVO) => {
1918
return await request.put({ url: `/crm/customer-pool-config/save`, data })
2019
}

src/api/report/ureport/index.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import request from '@/config/axios'
2+
3+
export interface UReportDataVO {
4+
id: number
5+
name: string
6+
status: number
7+
content: string
8+
remark: string
9+
}
10+
11+
// 查询Ureport2报表分页
12+
export const getUReportDataPage = async (params) => {
13+
return await request.get({ url: `/report/ureport-data/page`, params })
14+
}
15+
16+
// 查询Ureport2报表详情
17+
export const getUReportData = async (id: number) => {
18+
return await request.get({ url: `/report/ureport-data/get?id=` + id })
19+
}
20+
21+
// 新增Ureport2报表
22+
export const createUReportData = async (data: UReportDataVO) => {
23+
return await request.post({ url: `/report/ureport-data/create`, data })
24+
}
25+
26+
// 修改Ureport2报表
27+
export const updateUReportData = async (data: UReportDataVO) => {
28+
return await request.put({ url: `/report/ureport-data/update`, data })
29+
}
30+
31+
// 删除Ureport2报表
32+
export const deleteUReportData = async (id: number) => {
33+
return await request.delete({ url: `/report/ureport-data/delete?id=` + id })
34+
}
35+
36+
// 导出Ureport2报表 Excel
37+
export const exportUReportData = async (params) => {
38+
return await request.download({ url: `/report/ureport-data/export-excel`, params })
39+
}

src/api/system/operatelog/index.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,32 @@ export type OperateLogVO = {
2323
resultData: string
2424
}
2525

26+
export type OperateLogV2VO = {
27+
id: number
28+
userNickname: string
29+
traceId: string
30+
userType: number
31+
userId: number
32+
userName: string
33+
type: string
34+
subType: string
35+
bizId: number
36+
action: string
37+
extra: string
38+
requestMethod: string
39+
requestUrl: string
40+
userIp: string
41+
userAgent: string
42+
creator: string
43+
creatorName: string
44+
createTime: Date
45+
// 数据扩展,渲染时使用
46+
title: string // 操作标题(如果为空则取 name 值)
47+
colSize: number // 变更记录行数
48+
contentStrList: string[]
49+
tagsContentList: string[]
50+
}
51+
2652
// 查询操作日志列表
2753
export const getOperateLogPage = (params: PageParam) => {
2854
return request.get({ url: '/system/operate-log/page', params })

0 commit comments

Comments
 (0)