api.js
2.99 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
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
/**获取当前登录账号能查看的园区店列表 */
getYQList() {
return api.post('dj.api.smartcarlife.serviceMerchant.curYqList')
},
/**门店礼券发放数据 */
getMerchantCouponList(data) {
return api.post(
// 'dj.api.smartcarlife.couponDayReport.countByMerchant',
// 'dj.api.smartcarlife.couponDayReport.countByMerchantByOrderReport',
'dj.api.smartcarlife.couponDayReport.countByMerchantByOrderSummary', //接口替换
{
pageSize: 9999,
pageNum: 1,
...data
}
)
},
/** 首页账户数据 */
getHomeReport() {
return api.post('dj.api.smartcarlife.report.home')
},
/**切换子登录信息 */
swtichSubLoginInfo(data) {
data.productCode = 'PC00c2'
return api.post('dj.api.smartcarlife.switch.subLoginInfo', data)
},
/** 修改统计的贴膜台次 */
updateCouponDayReport(data) {
return api.post(
'dj.api.smartcarlife.couponDayReport.updateOrInsertDayReport',
data
)
},
/** 待补录订单统计 */
waitinputorder(data) {
let params = data || {}
params.inputStatus = 0
// params.payType = 1
return api.post('dj.api.smartcarlife.weapp.waitinputorder.count', params)
},
/** 查询负责人产值 */
goodsOrderOutputValueBelong(data) {
return api.post(
'dj.api.smartcarlife.goodsOrderOutputValueBelong.listOutputValue',
data
)
},
/** 首页统计数据 */
userStat(data) {
return api.post('dj.api.smartcarlife.user.stat', data)
},
/** 查询当周员工日报是否填写列表 */
staffDailyReportDetailWeeklyList(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.weekly.list', data)
},
/** 员工是否需要推送开单预警 */
orderStaffValid(data) {
return api.post('dj.api.smartcarlife.order.staff.valid', data)
},
/** 二次核验权限校验 */
extractCheck(data) {
return api.post(
'dj.api.car.boutique.script.extract.second.check.permission',
data
)
},
/** 待处理招聘统计 */
waitstaffstateAPI(data) {
return api.post(
'dj.api.staff.miniprogram.recruitment.demand.stat',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 统计技师施工单量 */
countTechnicianItems(data) {
return api.post(
'dj.api.smartcarlife.construction.count.technician.items',
data
)
},
/**
*
* 门店号是否是直营门店校验
*/
checkMerchantDirect(data) {
return api.post('dj.api.car.boutique.resident.direct.sale.merchant', data)
},
/**
* 查询给定日期如果填了日报是否缺失接待记录
*/
checkMissingReception(data) {
return api.post('dj.api.smartcarlife.staff.missing.reception.report.mini.check', data)
},
// 工资申述入口判断
hasPerformanceConfig(data) {
return api.post('dj.staff.api.has.performance.config.formerchant', data, [], '/rop-dj-staff-miniprogram/router')
}
}