contant.js
4.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
const TASKTYPEOPTION = [
{ label: "转化类-督导带教", value: 8 },
{ label: "转化类-人员更换评估", value: 9 },
{ label: "流量类-提升触客率", value: 12 },
{ label: "流量类-多场景拓展", value: 13 },
{ label: "流量类-拓新店流量", value: 14 },
];
const mentoringTopic = [
{ label: "新品知识培训", value: 1 },
{ label: "销售话术", value: 2 },
{ label: "产品卖点讲解", value: 3 },
{ label: "竞品对比分析", value: 4 },
{ label: "客户服务标准", value: 5 },
{ label: "门店管理规范", value: 6 },
{ label: "系统操作培训", value: 7 },
{ label: "其他", value: 99 },
];
const mentoringMethod_online = [
{ label: "视频培训", value: 1 },
{ label: "语音培训", value: 2 },
{ label: "课程推送", value: 3 },
];
const mentoringMethod_offline = [
{ label: "陪同谈客", value: 1 },
{ label: "话术演练", value: 2 },
{ label: "知识赋能", value: 3 },
{ label: "心态疏导", value: 4 },
{ label: "新人带教", value: 5 },
];
const TASK_FORM_8 = [
{
label: "需带教人员",
type: "multipleTag",
btnText: "选择人员",
componentName: "staffTag",
key: "staffList",
positionTypeList: [0],
tagNameKey: "staffName",
},
{
label: "指定带教督导",
type: "select",
key: "executorUuid",
placeholder: "请选择指定带教督导",
options: [],
labelKey: "name",
valueKey: "uuid",
filterable: true,
},
{
label: "带教目标",
type: "numberInput",
key: "targetValue",
placeholder: "请输入带教目标",
filterRule: "decimalRange",
min: 0,
maxFun: val => val == 2 ? 999999 : 100,
precision: 2,
prevTextFun: val => val == 2 ? "平均客单价=" : "转化率=",
unitFun: val => val == 2 ? "" : "%",
class: "flex date-range",
},
{
label: "带教场景",
type: "select",
key: "mentoringScene",
placeholder: "请选择带教场景",
options: [
{ label: "线上", value: 1 },
{ label: "线下", value: 2 },
],
},
{
label: "带教时间",
type: "date",
key: "mentoringDate",
placeholder: "请选择带教时间",
pickerOptions: "afterPickerOptions",
},
{
label: "带教方式",
type: "select",
key: "mentoringMethod",
placeholder: "请选择带教方式",
disabledFun: (data) => {
let { mentoringScene } = data;
return !mentoringScene;
},
optionsFun: (data) => {
let { mentoringScene } = data;
return mentoringScene == 1
? mentoringMethod_online
: mentoringMethod_offline;
},
},
// {
// label: "推送课程",
// type: "multipleTag",
// btnText: "选择课程",
// componentName: "courseTag",
// key: "courseList",
// tagKey: "courseId",
// tagNameKey: "title",
// hide: (val) => {
// let { mentoringMethod, mentoringScene } = val;
// return mentoringScene != 1 || mentoringMethod != 3;
// },
// },
{
label: "带教主题",
type: "select",
key: "mentoringTopic",
placeholder: "请选择带教主题",
options: mentoringTopic,
},
];
const TASK_FORM_DEFAULT = [
{
label: "问题人员",
type: "multipleTag",
btnText: "选择人员",
componentName: "staffTag",
key: "staffList",
positionTypeList: [0],
tagNameKey: "staffName",
hide: (val) => {
let { taskType } = val;
return taskType != 9;
},
},
{
label: "目标触客率",
type: "numberInput",
key: "targetValue",
placeholder: "请输入目标触客率",
filterRule: "decimalRange",
min: 0,
max: 100,
precision: 2,
unit: "%",
class: "flex date-range",
hide: (val) => {
let { taskType } = val;
return taskType != 12;
},
},
{
label: "执行人员",
type: "select",
key: "executorUuid",
placeholder: "请选择执行人员",
options: [],
labelKey: "directorName",
valueKey: "directorUserId",
},
];
const TASK_FORM_RULES_8 = {
staffList: [{ required: true, message: "请选择需带教人员" }],
executorUuid: [{ required: true, message: "请选择指定带教督导", trigger: "change" }],
targetValue: [{ required: true, message: "请输入带教目标", trigger: "blur" }],
};
const EXECUTOR_UUID_RULES = [{ required: true, message: "请选择执行人员", trigger: "change" }];
const DESCRIPTION_RULES = [{ required: true, message: "请输入任务说明", trigger: "blur" }];
const TASK_FORM_RULES_9 = {
staffList: [{ required: true, message: "请选择问题人员" }],
executorUuid: EXECUTOR_UUID_RULES,
};
const TASK_FORM_RULES_12 = {
targetValue: [{ required: true, message: "请输入目标触客率", trigger: "blur" }],
executorUuid: EXECUTOR_UUID_RULES,
};
const TASK_FORM_RULES_13_14 = {
executorUuid: EXECUTOR_UUID_RULES,
};
export {
DESCRIPTION_RULES,
TASK_FORM_8,
TASK_FORM_DEFAULT,
TASK_FORM_RULES_8,
TASK_FORM_RULES_9,
TASK_FORM_RULES_12,
TASK_FORM_RULES_13_14,
TASKTYPEOPTION,
};