dynamicDailyReport.js
2.68 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
112
113
114
115
import api from '~/utils/request/request.js'
function dailyReportWeeklyList(data) {
return api.post('dj.api.smartcarlife.dailyReport.weekly.list', data)
}
function dynamicDailyReportSave(data) {
return api.post('dj.api.smartcarlife.dailyReport.dynamic.save', data, [], undefined, 'dj', false)
}
function dynamicDailyReportDraftSave(data) {
return api.post('dj.api.smartcarlife.dailyReport.dynamic.draft.save', data, [], undefined, 'dj', false)
}
/**
* 门店日报数据上报(推送经营统计到消息群)
* @param {Object} data dailyReportRecordId
* @returns {Promise}
*/
function dynamicDailyReportDataPush(data) {
return api.post(
'dj.api.smartcarlife.dailyReport.dynamic.data.push',
data,
[],
undefined,
'dj',
false
)
}
function dailyReportDetailGet(data) {
return api.get('dj.api.smartcarlife.dailyReport.detail.get', data, [], undefined, 'dj', false)
}
function dailyReportMonthlyPendingCountGet(data) {
return api.post(
// 'dj.api.smartcarlife.dailyReport.monthly.pending.count',
'dj.api.smartcarlife.dailyReport.monthly.pending.get',
data,
[],
undefined,
'dj',
false
)
}
function getUserScene(data) {
return api.post(
'dj.api.smartcarlife.scene.config.getUserScene',
data,
[],
undefined,
'dj',
false
)
}
function findSceneByMerchantIdAndSceneType(data) {
return api.post(
'dj.api.scenemerchantref.findByMerchantIdAndSceneType',
data,
[],
undefined,
'dj',
false
)
}
function staffDailyReportCarBrand(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.car.brand', data)
}
function dailyReportDiscussionStaffList(data) {
return api.post(
'dj.api.smartcarlife.dailyReport.discussion.staff.list',
data,
[],
undefined,
'dj',
false
)
}
/**
* 统计客户今日计划到店数
* @param {Object} data merchantId、advanceUserId、inviteDate(可空,默认当日)
* @returns {Promise} dj.api.smartcarlife.customer.todayPlanStore.count
*/
function customerTodayPlanStoreCount(data) {
return api.post('dj.api.smartcarlife.customer.todayPlanStore.count', data)
}
/**
* 查询客户今日计划到店列表
* @param {Object} data merchantId、advanceUserId、inviteDate
* @returns {Promise} dj.api.smartcarlife.customer.todayPlanStore.list
*/
function customerTodayPlanStoreList(data) {
return api.post('dj.api.smartcarlife.customer.todayPlanStore.list', data)
}
module.exports = {
dailyReportWeeklyList,
dynamicDailyReportSave,
dynamicDailyReportDraftSave,
dynamicDailyReportDataPush,
dailyReportDetailGet,
dailyReportMonthlyPendingCountGet,
getUserScene,
findSceneByMerchantIdAndSceneType,
staffDailyReportCarBrand,
dailyReportDiscussionStaffList,
customerTodayPlanStoreCount,
customerTodayPlanStoreList
}