api.js
1.11 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
// const api = wx.$request
import api from "~/utils/request/request.js";
// const api = wx.$request
module.exports = {
/**驻店管理-获取4s店 */
getshopMerchantList(data) {
return api.post("dj.api.smartcarlife.scene.shopMerchant.pageList", data);
},
/**驻店管理-获取园区店 */
getyqMerchantList(data) {
return api.post('dj.api.smartcarlife.scene.yqMerchant.pageList', data)
},
/**小程序新增员工*/
createStaffAccount(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.staffBaseInfo.account.add', params)
},
/** 员工日报配置列表查询 */
getDailyReportConfigList(data) {
let params = data || {};
return api.post("dj.api.smartcarlife.staff.dailyReportConfig.page", {
pageSize: 10,
...params,
});
},
/** 禁启用员工园区店账号 */
updateAccountStatus(data) {
return api.post("dj.api.smartcarlife.staffBaseInfo.accountStatus.update", data);
},
/**修改员工日报填报门店配置 */
updateDailyReportConfig(data) {
return api.post("dj.api.smartcarlife.staff.dailyReportConfig.update", data);
}
};