Skip to content

Commit ea68da9

Browse files
YunaiVgitee-org
authored andcommitted
!386 ✨ 2.0.1 版本发布准备
Merge pull request !386 from 芋道源码/dev
2 parents a3b21e7 + 71ac59f commit ea68da9

File tree

172 files changed

+21452
-741
lines changed

Some content is hidden

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

172 files changed

+21452
-741
lines changed

.env.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ VITE_DEV=true
77
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
88
# VITE_BASE_URL='http://dofast.demo.huizhizao.vip:20001'
99

10+
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
11+
VITE_UPLOAD_TYPE=server
1012
# 上传路径
1113
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
1214

.env.local

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ VITE_DEV=true
66
# 请求路径
77
VITE_BASE_URL='http://localhost:48080'
88

9+
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
10+
VITE_UPLOAD_TYPE=server
911
# 上传路径
1012
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
1113

.env.prod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ VITE_DEV=false
66
# 请求路径
77
VITE_BASE_URL='http://localhost:48080'
88

9+
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
10+
VITE_UPLOAD_TYPE=server
911
# 上传路径
1012
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
1113

.env.stage

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ VITE_DEV=false
66
# 请求路径
77
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
88

9+
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
10+
VITE_UPLOAD_TYPE=server
911
# 上传路径
1012
VITE_UPLOAD_URL='http://api-dashboard.yudao.iocoder.cn/admin-api/infra/file/upload'
1113

.env.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ VITE_DEV=false
66
# 请求路径
77
VITE_BASE_URL='http://localhost:48080'
88

9+
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
10+
VITE_UPLOAD_TYPE=server
911
# 上传路径
1012
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
1113

.image/common/erp-feature.png

45.9 KB
Loading

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
* 数据报表
9191
* 商城系统
9292
* 微信公众号
93+
* ERP 系统
94+
* CRM 系统
9395

9496
### 系统功能
9597

@@ -194,6 +196,12 @@ _前端基于 crmeb uniapp 经过授权重构,优化代码实现,接入芋
194196

195197
演示地址:<https://doc.iocoder.cn/mall-preview/>
196198

199+
### ERP 系统
200+
201+
![功能图](/.image/common/erp-feature.png)
202+
203+
演示地址:<https://doc.iocoder.cn/erp-preview/>
204+
197205
## 🐷 演示图
198206

199207
### 系统功能
@@ -238,6 +246,7 @@ _前端基于 crmeb uniapp 经过授权重构,优化代码实现,接入芋
238246
|---------|---------------------------|---------------------------------|---------------------------------|
239247
| 商家 & 应用 | ![商户信息](/.image/商户信息.jpg) | ![应用信息-列表](/.image/应用信息-列表.jpg) | ![应用信息-编辑](/.image/应用信息-编辑.jpg) |
240248
| 支付 & 退款 | ![支付订单](/.image/支付订单.jpg) | ![退款订单](/.image/退款订单.jpg) | --- |
249+
241250
### 数据报表
242251

243252
| 模块 | biu | biu | biu |

src/api/crm/backlog/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import request from '@/config/axios'
2+
3+
import { type CustomerVO } from '../customer'
4+
import { type ClueVO } from '../clue'
5+
6+
// 查询客户列表
7+
// TODO @芋艿:看看是不是后续融合到 getCustomerPage 里;
8+
export const getTodayCustomerPage = async (params) => {
9+
return await request.get({ url: `/crm/backlog/today-customer-page`, params })
10+
}
11+
12+
// 查询线索列表
13+
export const getFollowLeadsPage = async (params) => {
14+
return await request.get({ url: `/crm/backlog/page`, params })
15+
}
16+
17+
export { type CustomerVO, type ClueVO }

src/api/crm/bi/rank.ts

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import request from '@/config/axios'
2+
3+
export interface BiRankRespVO {
4+
count: number
5+
nickname: string
6+
deptName: string
7+
}
8+
9+
// 排行 API
10+
export const RankApi = {
11+
// 获得合同排行榜
12+
getContractPriceRank: (params: any) => {
13+
return request.get({
14+
url: '/crm/bi-rank/get-contract-price-rank',
15+
params
16+
})
17+
},
18+
// 获得回款排行榜
19+
getReceivablePriceRank: (params: any) => {
20+
return request.get({
21+
url: '/crm/bi-rank/get-receivable-price-rank',
22+
params
23+
})
24+
},
25+
// 签约合同排行
26+
getContractCountRank: (params: any) => {
27+
return request.get({
28+
url: '/crm/bi-rank/get-contract-count-rank',
29+
params
30+
})
31+
},
32+
// 产品销量排行
33+
getProductSalesRank: (params: any) => {
34+
return request.get({
35+
url: '/crm/bi-rank/get-product-sales-rank',
36+
params
37+
})
38+
},
39+
// 新增客户数排行
40+
getCustomerCountRank: (params: any) => {
41+
return request.get({
42+
url: '/crm/bi-rank/get-customer-count-rank',
43+
params
44+
})
45+
},
46+
// 新增联系人数排行
47+
getContactsCountRank: (params: any) => {
48+
return request.get({
49+
url: '/crm/bi-rank/get-contacts-count-rank',
50+
params
51+
})
52+
},
53+
// 跟进次数排行
54+
getFollowCountRank: (params: any) => {
55+
return request.get({
56+
url: '/crm/bi-rank/get-follow-count-rank',
57+
params
58+
})
59+
},
60+
// 跟进客户数排行
61+
getFollowCustomerCountRank: (params: any) => {
62+
return request.get({
63+
url: '/crm/bi-rank/get-follow-customer-count-rank',
64+
params
65+
})
66+
}
67+
}

src/api/crm/business/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import request from '@/config/axios'
2+
import { TransferReqVO } from '@/api/crm/customer'
23

34
export interface BusinessVO {
45
id: number
@@ -70,3 +71,8 @@ export const getBusinessPageByContact = async (params) => {
7071
export const getBusinessListByIds = async (val: number[]) => {
7172
return await request.get({ url: '/crm/business/list-by-ids', params: { ids: val.join(',') } })
7273
}
74+
75+
// 商机转移
76+
export const transferBusiness = async (data: TransferReqVO) => {
77+
return await request.put({ url: '/crm/business/transfer', data })
78+
}

0 commit comments

Comments
 (0)