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
| import type { Ref } from 'vue';
|
| export interface LeftSideItem {
| name: string;
| menu: string;
| count: Ref<number>;
| }
|
| /** 跟进状态 */
| export const FOLLOWUP_STATUS = [
| { label: '待跟进', value: false },
| { label: '已跟进', value: true },
| ];
|
| /** 归属范围 */
| export const SCENE_TYPES = [
| { label: '我负责的', value: 1 },
| { label: '我参与的', value: 2 },
| { label: '下属负责的', value: 3 },
| ];
|
| /** 联系状态 */
| export const CONTACT_STATUS = [
| { label: '今日需联系', value: 1 },
| { label: '已逾期', value: 2 },
| { label: '已联系', value: 3 },
| ];
|
| /** 审批状态 */
| export const AUDIT_STATUS = [
| { label: '待审批', value: 10 },
| { label: '审核通过', value: 20 },
| { label: '审核不通过', value: 30 },
| ];
|
| /** 回款提醒类型 */
| export const RECEIVABLE_REMIND_TYPE = [
| { label: '待回款', value: 1 },
| { label: '已逾期', value: 2 },
| { label: '已回款', value: 3 },
| ];
|
| /** 合同过期状态 */
| export const CONTRACT_EXPIRY_TYPE = [
| { label: '即将过期', value: 1 },
| { label: '已过期', value: 2 },
| ];
|
| /** 左侧菜单 */
| export const useLeftSides = (
| customerTodayContactCount: Ref<number>,
| clueFollowCount: Ref<number>,
| customerFollowCount: Ref<number>,
| customerPutPoolRemindCount: Ref<number>,
| contractAuditCount: Ref<number>,
| contractRemindCount: Ref<number>,
| receivableAuditCount: Ref<number>,
| receivablePlanRemindCount: Ref<number>,
| ): LeftSideItem[] => {
| return [
| {
| name: '今日需联系客户',
| menu: 'customerTodayContact',
| count: customerTodayContactCount,
| },
| {
| name: '分配给我的线索',
| menu: 'clueFollow',
| count: clueFollowCount,
| },
| {
| name: '分配给我的客户',
| menu: 'customerFollow',
| count: customerFollowCount,
| },
| {
| name: '待进入公海的客户',
| menu: 'customerPutPoolRemind',
| count: customerPutPoolRemindCount,
| },
| {
| name: '待审核合同',
| menu: 'contractAudit',
| count: contractAuditCount,
| },
| {
| name: '待审核回款',
| menu: 'receivableAudit',
| count: receivableAuditCount,
| },
| {
| name: '待回款提醒',
| menu: 'receivablePlanRemind',
| count: receivablePlanRemindCount,
| },
| {
| name: '即将到期的合同',
| menu: 'contractRemind',
| count: contractRemindCount,
| },
| ];
| };
|
|