cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
1
2
3
4
5
|
import { http } from '@/typing/http';
import request from '@/utils/request';
import { ORDER3 } from '@/utils/host';
export interface ListItem {
|
48455300
舒述军
零售任务自动调整
|
6
|
totalTaskCount?: number, //任务总数
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
7
|
shopTaskList?: ShopTaskList[],
|
48455300
舒述军
零售任务自动调整
|
8
|
year?: number, //年份
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
9
|
id?: number,
|
48455300
舒述军
零售任务自动调整
|
10
|
month?: number, //月份
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
11
12
13
14
|
canModified?: boolean//是否可调整
}
export interface ShopTaskList {
|
48455300
舒述军
零售任务自动调整
|
15
16
17
|
shopId?: number, //门店id
shopName?: string, //门店名称
taskCount?: number, //任务数量
|
c531dd20
曾柯
关于薪酬阶梯单位回显
|
18
|
clueDealTaskCount?: number // 线索到店零售数量
|
48455300
舒述军
零售任务自动调整
|
19
|
clueDealTaskRate?: number // 线索到店零售占比
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
20
21
22
23
|
staffTaskList?: StaffTaskList[]//员工任务列表
}
interface StaffTaskList {
|
48455300
舒述军
零售任务自动调整
|
24
25
26
27
|
id?: number
staffId?: number, //员工id
staffName?: string, //员工名称
taskCount?: number, //任务数量
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
28
|
regularMonth?: number//转正几个月
|
c531dd20
曾柯
关于薪酬阶梯单位回显
|
29
|
clueDealTaskCount?: number // 线索到店零售数量
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
30
31
32
33
34
35
36
37
38
39
|
}
export interface saveParams {
id?: number,
shopTaskList?: ShopTaskList[]
}
interface ListParams {
taskDate?: number,
autoAssign?: boolean
}
|
2ee855e8
舒述军
零售任务和攻坚车任务调整
|
40
41
42
43
44
45
|
export interface SaveParams {
id?: number // 任务id
remark?: string // 备注
attachmentList?: string[] // 附件列表
}
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
46
47
48
49
50
51
52
53
54
|
/** 获取列表 */
export function getRetailManualList(params?: ListParams): http.PromiseResp<ListItem> {
return request.get(`${ORDER3}/erp/sales/task/detail`, { params });
}
/**自动分配*/
export function autoAlloctionApi(params: saveParams) {
return request.post(`${ORDER3}/erp/sales/task/auto/assign`, { ...params });
}
/*提交 */
|
2ee855e8
舒述军
零售任务和攻坚车任务调整
|
55
56
|
export function save(params?: SaveParams) {
return request.post(`${ORDER3}/erp/sales/task/submit`, params);
|
cc26d1fc
张志伟
🎉 重新构建项目,解决项目过大的问题
|
57
|
}
|