dictionary.js
1.02 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
import { findCustomerAddWay } from '@/api/customer'
let _dictAddType = undefined
export let dictAddType = (async function () {
if (!_dictAddType) {
let { data } = await findCustomerAddWay()
_dictAddType = {}
data.forEach((element) => {
_dictAddType[element.code] = element.value
})
}
return _dictAddType
})()
// export default {
// get dictAddType() {
// return findCustomerAddWay().then(({ data }) => {
// data.forEach((element) => {
// this.dictAddType[element.code] = element.value
// })
// })
// },
// }
export const dictJoinGroupType = Object.freeze({
1: '由成员邀请入群(直接邀请入群)',
2: '由成员邀请入群(通过邀请链接入群)',
3: '通过扫描群二维码入群',
})
export const dictTrackState = Object.freeze({
1: { name: '待跟进', color: '' },
2: { name: '跟进中', color: 'warning' },
3: { name: '已成交', color: 'success' },
4: { name: '无意向', color: 'info' },
5: { name: '已流失', color: 'danger' },
})