store-daily-submit-confirm.js
1.77 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
/**
* 门店日报保存和上报流程的确认弹窗配置。
* 纯函数:供页面和单元测试共同使用。
*/
function buildStoreDailySubmitConfirmModal() {
return {
title: '确定上报数据?',
content:
'请确认已记录今日所有非成交客户信息,并确保成交客户已完成录单。门店日报上报后,将立即发送相关门店经营统计数据到指定消息群。',
cancelText: '我再想想',
confirmText: '确定'
}
}
function buildStoreDailyConflictModal() {
return {
title: '数据已被他人更新',
content: '在你编辑期间,其他用户已完成保存操作。若直接保存,将覆盖对方的最新修改。',
cancelText: '取消',
confirmText: '直接保存'
}
}
function buildStoreDailyLeaveModal() {
return {
title: '重要提示',
content: '内容尚未提交,是否退出编辑?',
cancelText: '继续编辑',
confirmText: '确定退出'
}
}
/**
* 二手车新车订单数连续三日明确为 0 时的营业状态确认。
* @returns {Object} wx.showModal 配置
*/
function buildUsedCarThreeDayZeroModal() {
return {
title: '提示',
content: '新车订单数连续三天为0,请确认门店是否正常营业',
cancelText: '取消',
confirmText: '确认'
}
}
/**
* 二手车置换评估数大于订单置换数时的数据准确性确认。
* @returns {Object} wx.showModal 配置
*/
function buildUsedCarEvaluationCountModal() {
return {
title: '提示',
content: '置换评估数通常不大于订单置换数,请确认数据准确性。',
cancelText: '取消',
confirmText: '确认'
}
}
module.exports = {
buildStoreDailySubmitConfirmModal,
buildStoreDailyConflictModal,
buildStoreDailyLeaveModal,
buildUsedCarThreeDayZeroModal,
buildUsedCarEvaluationCountModal
}