lqYcsdMdmbsd.js
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import request from '@/utils/request'
/**
* 总经理门店生命线设置API
*/
export const lqYcsdMdmbsdApi = {
/**
* 获取分页列表
* @param {Object} params 查询参数
*/
getPageList(params) {
return request({
url: '/api/Extend/lqmdgeneralmanagerlifeline',
method: 'GET',
data: params
})
},
/**
* 根据ID获取详情
* @param {string} id 记录ID
*/
getById(id) {
return request({
url: `/api/Extend/lqmdgeneralmanagerlifeline/${id}`,
method: 'GET'
})
},
/**
* 新增
* @param {Object} data 新增数据
*/
create(data) {
return request({
url: '/api/Extend/lqmdgeneralmanagerlifeline',
method: 'POST',
data
})
},
/**
* 更新
* @param {string} id 记录ID
* @param {Object} data 更新数据
*/
update(id, data) {
return request({
url: `/api/Extend/lqmdgeneralmanagerlifeline/${id}`,
method: 'PUT',
data
})
},
/**
* 删除
* @param {string} id 记录ID
*/
delete(id) {
return request({
url: `/api/Extend/lqmdgeneralmanagerlifeline/${id}`,
method: 'DELETE'
})
},
/**
* 获取总经理用户列表
*/
getGeneralManagerList() {
return request({
url: '/api/Extend/User/ManagerSelector',
method: 'GET'
})
},
/**
* 获取门店列表
*/
getStoreList() {
return request({
url: '/api/Extend/LqMdxx',
method: 'GET',
data: { pageSize: 1000 }
})
},
/**
* 一键创建(从门店目标批量创建)
* @param {string} month 月份,格式 yyyyMM
*/
batchCreateFromTarget(month) {
return request({
url: '/api/Extend/lqmdgeneralmanagerlifeline/BatchCreateFromTarget?month=' + month,
method: 'POST',
data: { month }
})
},
/**
* 同步上月数据
* @param {string} targetMonth 目标月份,格式 yyyyMM
*/
copyLastMonthData(targetMonth) {
return request({
url: '/api/Extend/lqmdgeneralmanagerlifeline/CopyLastMonthData?targetMonth=' + targetMonth,
method: 'POST',
data: { targetMonth }
})
}
}