constant.js
5.92 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
// 订单状态
export const orderStatusList = [
{
confId: 1,
confLabel: '待升级'
},
{
confId: 2,
confLabel: '战败'
},
{
confId: 3,
confLabel: '待支付'
},
{
confId: 4,
confLabel: '已支付'
},
/* {
confId: 5,
confLabel: '已退款'
}, */ {
confId: 6,
confLabel: '已评价'
},
{
confId: 9,
confLabel: '已撤销'
},
{
confId: 10,
confLabel: '已关闭'
},
{
confId: 11,
confLabel: '错误订单'
},
{
confId: 12,
confLabel: '已退款'
}
]
// 升级状态
export const upgradeList = [
{
confId: 'Y',
confLabel: '已升级'
},
{
confId: 'N',
confLabel: '战败'
},
{
confId: 'R',
confLabel: '待升级'
}
]
// 施工状态
export const constructionList = [
{
confId: 'Y',
confLabel: '已施工'
},
{
confId: 'N',
confLabel: '未施工'
}
]
// 分账状态
export const profitAllocationStatusList = [
{
confId: '1',
confLabel: '未分账'
},
{
confId: '2',
confLabel: '已分账'
},
{
confId: '4',
confLabel: '待分账'
}
]
// 订单来源
export const sourceList = [
{
confId: '1',
confLabel: '小程序订单'
},
{
confId: '7',
confLabel: '系统导入'
}
]
export const payType = {
1: '微信支付',
2: '4S店支付',
3: 'POS机收款',
4: '支付宝支付',
5: '嘀加收款',
6: '对公转账',
7: '其他收款'
}
export const businessType = [
{
optionId: 1,
optionLabel: '1.2'
},
{
optionId: 2,
optionLabel: '1.3'
},
{
optionId: 3,
optionLabel: '2.0'
}
]
export const orderManageStatusList = [
{ confId: '1', confName: '待付款' },
{ confId: '2', confName: '已支付' },
{ confId: '3', confName: '已失效' },
// { confId: '21', confName: '待收货(待核销)' },
{ confId: '21', confName: '待核销' },
{ confId: '22', confName: '已核销' },
// { confId: '22', confName: '已收货(已核销)' },
{ confId: '6', confName: '待发货' },
// { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' },
{ confId: '10', confName: '售后完成' },
{ confId: '11', confName: '待审批' }
]
export const afterSaleStatusList = [
{ confId: '1', confName: '待审核' },
{ confId: '2', confName: '审核成功' },
{ confId: '3', confName: '审核失败' },
{ confId: '4', confName: '待确认' },
{ confId: '5', confName: '退款中' },
{ confId: '6', confName: '已退款' },
{ confId: '7', confName: '退款失败' }
]
export const orderSourceList = [
{ confId: '1', confName: '商城订单' },
{ confId: '2', confName: '直播订单' },
{ confId: '3', confName: '活动订单' },
{ confId: '4', confName: '众筹订单' }
]
export const deliveryTypeList = [
{ confId: '1', confName: '到店核销' },
{ confId: '2', confName: '快递到家' }
]
function getExplorer() {
var ua = navigator.userAgent.toLocaleLowerCase()
var browserType = null
if (ua.match(/msie/) != null || ua.match(/trident/) != null) {
browserType = 'IE'
} else if (ua.match(/firefox/) != null) {
browserType = '火狐'
} else if (ua.match(/ubrowser/) != null) {
browserType = 'UC'
} else if (ua.match(/opera/) != null) {
browserType = '欧朋'
} else if (ua.match(/bidubrowser/) != null) {
browserType = '百度'
} else if (ua.match(/metasr/) != null) {
browserType = '搜狗'
} else if (ua.match(/tencenttraveler/) != null || ua.match(/qqbrowse/) != null) {
browserType = 'QQ'
} else if (ua.match(/maxthon/) != null) {
browserType = '遨游'
} else {
browserType = '谷歌'
}
return browserType
}
export const exportFn = url => {
url = url + '?timestamp=' + new Date().getTime()
let browserType = getExplorer()
if (browserType == 'QQ') {
window.open(url)
return
}
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = url
document.body.appendChild(iframe)
}
// 订单类型
export const orderTypeList = [
{
confId: '1',
confLabel: '正常'
},
{
confId: '2',
confLabel: '异常'
},
{
confId: '3',
confLabel: '正常测试'
},
{
confId: '4',
confLabel: '异常测试'
},
{
confId: '5',
confLabel: '未收款'
},
{
confId: '-1',
confLabel: '无'
}
]
// 分账状态
export const divisionStatusList = [
{
confId: '1',
confLabel: '待分账'
},
{
confId: '2',
confLabel: '分账中'
},
{
confId: '3',
confLabel: '分账成功'
},
{
confId: '4',
confLabel: '分账失败'
},
{
confId: '5',
confLabel: '异常'
}
]
// 分账方式
export const divisionTypeList = [
{
confId: '1',
confLabel: '线下对账'
},
{
confId: '2',
confLabel: '线上分账'
}
]
// 支付方式
export const payTypeList = [
{
confId: '1',
confLabel: '微信支付'
},
{
confId: '2',
confLabel: '4S店支付'
},
{
confId: '3',
confLabel: 'POS机收款'
},
{
confId: '4',
confLabel: '支付宝支付'
},
{
confId: '5',
confLabel: '嘀加收款'
},
{
confId: '6',
confLabel: '对公转账'
},
{
confId: '7',
confLabel: '其他收款'
}
]
// 园区店模式/经营模式
export const manageTypeList = [
{ confId: 0, confLabel: '园区店' },
{ confId: 1, confLabel: '驻店' }
]
// 所属场景
export const sceneList = {
1: '精品升级',
2: '次新车转化',
3: '售后众筹',
0: '会员权益/升级'
}
export const proportionType = {
1: '(毛利)',
2: '(收入)',
3: '(固定金额)',
4: '(产值-流量成本)',
5: '(产值-流量成本-其他费用不包含产品成本)',
6: '(产值-流量成本-其他费用包含产品成本)',
8: '(收入-自定义其他费用)',
9: '(收入-其他费用)'
}
export const targetType = {
1: '流量方',
2: '服务商',
3: '平台方'
}