index_mixins.js
4.46 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
186
187
188
189
190
191
192
export default {
data: {
navStyle: "background-color: #ffffff;box-shadow:none;",
subIndex: 0,
staticDataList: [
{
label: "今日营业额",
valueObj: "merchantTodayTotal",
tipsLabel: "今日成交量",
},
{
label: "本月营业额",
valueObj: "merchantMonthTotal",
tipsLabel: "本月成交量",
},
{
label: "累计营业额",
valueObj: "merchantTotal",
tipsLabel: "累计成交量",
},
],
menu: [
{
name: "新建工单",
url: "tabWorkOrder.createOrder",
recordId: 6,
icon: "create_newworkorder",
hot: true,
},
{
name: "战败下单",
url: "tabWorkOrder.defeatOrder",
recordId: 8,
icon: "defeat_order",
hot: true,
},
// {
// name: "精品升级",
// url: "tabWorkOrder.premiumUpgrade",
// recordId: 6,
// icon: "boutique_upgrade",
// },
// {
// name: "客户建档",
// // name: '战败下单',
// url: "tabWorkOrder.createArchives",
// recordId: 8,
// icon: "customer_filing",
// },
// {
// name: "扫码下单",
// url: "tabWorkOrder.createOrder",
// type: "scanCode",
// recordId: 7,
// icon: "scancode_verification",
// },
// {
// name: '预约管理',
// url: 'pages.tabDateIndex',
// recordId: 9,
// icon: 'booking_management'
// },
// {
// name: "生意助手",
// type: "mini",
// recordId: 12,
// icon: "boutique-syzs",
// },
// {
// name: "驻店日报",
// url: "tabWorkOrder.staffDaily",
// recordId: 13,
// icon: "staffreport",
// },
// {
// name: "营销素材",
// url: "/pages/materails/index",
// recordId: 9,
// icon: "icon-market",
// },
],
newMenu: [],
tableHeight: (20 + 1) * 96,
pageNum: 1,
totalList: [
// {
// name: '服务客户',
// itemName: 'totalCustomer',
// index: 1,
// url: 'tabOperating.index'
// },
{
name: "已预约",
itemName: "totalInvited",
index: 2,
url: "pages.tabDateIndex",
icon: "icon_14",
activeIndex: 1,
waitname: "待预约客户",
waititemName: "totalWaitToInvited",
waiturl: "pages.tabDateIndex",
activeWIndex: 2,
},
{
name: "转化订单",
itemName: "totalUpgrade",
index: 4,
url: "pages.index",
icon: "icon_17",
activeIndex: 2,
},
{
name: "战败订单",
itemName: "totalNotUpgrade",
index: 5,
url: "pages.index",
icon: "icon_16",
activeIndex: 3,
},
{
name: "客单价",
itemName: "customerUnitPrice",
unit: "¥",
icon: "icon_7",
index: 6,
url: "tabOperating.index",
},
// {
// name: '服务客户',
// key: 'customerTotal'
// },
// {
// name: '转化订单',
// key: 'upgradeOrderTotal'
// },
// {
// name: '累计产值',
// key: 'upgradeMoneyTotal',
// unit: '¥'
// }
],
tableBtn: [
{
text: "今日",
type: "today",
active: true,
},
{
text: "本月",
type: "month",
// active: true
},
{
text: "自定义",
type: "date",
},
],
orderByTypeEnum: {
true: [1, 3, 13, 5, 7, 9, 11],
false: [2, 4, 14, 6, 8, 10, 12],
},
table: [],
loginRoleLabel: {
1: "超管",
2: "商户管理员",
3: "区域运营",
4: "驻店负责人",
5: '广联销售',
},
// 个人产值过滤条件
changeBtnData: [
{
label: "本日",
valueObj: "staffTodayTotal",
valueFn: "merchantTodayTotal",
},
{
label: "本月",
valueObj: "staffMonthTotal",
valueFn: "merchantMonthTotal",
},
{
label: "累计",
valueObj: "staffTotal",
valueFn: "merchantTotal",
},
],
},
};