File tree Expand file tree Collapse file tree 8 files changed +1090
-0
lines changed Expand file tree Collapse file tree 8 files changed +1090
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * @Author : zyna
3
+ * @Date : 2023-11-05 13:34:41
4
+ * @LastEditTime : 2023-11-11 16:20:19
5
+ * @FilePath : \yudao-ui-admin-vue3\src\api\crm\contact\index.ts
6
+ * @Description :
7
+ */
8
+ import request from '@/config/axios'
9
+
10
+ export interface ContactVO {
11
+ name : string
12
+ nextTime : Date
13
+ mobile : string
14
+ telephone : string
15
+ email : string
16
+ post : string
17
+ customerId : number
18
+ address : string
19
+ remark : string
20
+ ownerUserId : string
21
+ lastTime : Date
22
+ id : number
23
+ parentId : number
24
+ qq : number
25
+ webchat : string
26
+ sex : number
27
+ policyMakers : boolean
28
+ creatorName : string
29
+ updateTime ?: Date
30
+ createTime ?: Date
31
+ customerName : string
32
+ }
33
+
34
+ // 查询crm联系人列表
35
+ export const getContactPage = async ( params ) => {
36
+ return await request . get ( { url : `/crm/contact/page` , params } )
37
+ }
38
+
39
+ // 查询crm联系人详情
40
+ export const getContact = async ( id : number ) => {
41
+ return await request . get ( { url : `/crm/contact/get?id=` + id } )
42
+ }
43
+
44
+ // 新增crm联系人
45
+ export const createContact = async ( data : ContactVO ) => {
46
+ return await request . post ( { url : `/crm/contact/create` , data } )
47
+ }
48
+
49
+ // 修改crm联系人
50
+ export const updateContact = async ( data : ContactVO ) => {
51
+ return await request . put ( { url : `/crm/contact/update` , data } )
52
+ }
53
+
54
+ // 删除crm联系人
55
+ export const deleteContact = async ( id : number ) => {
56
+ return await request . delete ( { url : `/crm/contact/delete?id=` + id } )
57
+ }
58
+
59
+ // 导出crm联系人 Excel
60
+ export const exportContact = async ( params ) => {
61
+ return await request . download ( { url : `/crm/contact/export-excel` , params } )
62
+ }
63
+ export const simpleAlllist = async ( ) => {
64
+ return await request . get ( { url : `/crm/contact/simpleAlllist` } )
65
+ }
Original file line number Diff line number Diff line change @@ -503,6 +503,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
503
503
hidden : true
504
504
} ,
505
505
component : ( ) => import ( '@/views/crm/customer/detail/index.vue' )
506
+ } ,
507
+ {
508
+ path : 'contact/detail/:id' ,
509
+ name : 'CrmContactDetail' ,
510
+ meta : {
511
+ title : '联系人详情' ,
512
+ noCache : true ,
513
+ hidden : true
514
+ } ,
515
+ component : ( ) => import ( '@/views/crm/contact/detail/index.vue' )
506
516
}
507
517
]
508
518
}
You can’t perform that action at this time.
0 commit comments