Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9c3c3306
authored
Jun 10, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户添加方式问题
1 parent
7a033a91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
40 deletions
vue3-lw-pc/src/api/customer/index.js
vue3-lw-pc/src/utils/dictionary.js
vue3-lw-pc/src/views/customerManage/customer.vue
vue3-lw-pc/src/views/customerManage/customerDetail.vue
vue3-lw-pc/src/api/customer/index.js
View file @
9c3c330
...
...
@@ -25,7 +25,7 @@ export function getListNew(params) {
return
request
({
url
:
service
+
'/findWeCustomerList'
,
method
:
'get'
,
params
params
,
})
}
...
...
@@ -47,7 +47,7 @@ export function getList(params) {
return
request
({
url
:
service
+
'/list'
,
method
:
'get'
,
params
params
,
})
}
...
...
@@ -56,7 +56,7 @@ export function getList(params) {
*/
export
function
sync
()
{
return
request
({
url
:
service
+
'/synchWeCustomer'
url
:
service
+
'/synchWeCustomer'
,
})
}
...
...
@@ -76,7 +76,7 @@ export function makeLabel(data) {
return
request
({
url
:
service
+
'/makeLabel'
,
method
:
'post'
,
data
data
,
})
}
...
...
@@ -96,7 +96,7 @@ export function removeLabel(data) {
return
request
({
url
:
service
+
'/removeLabel'
,
method
:
'DELETE'
,
data
data
,
})
}
...
...
@@ -112,7 +112,7 @@ export function updateBirthday(data) {
return
request
({
url
:
service
,
method
:
'PUT'
,
data
data
,
})
}
...
...
@@ -121,7 +121,7 @@ export function exportCustomer(query) {
return
request
({
url
:
service
+
'/export'
,
method
:
'get'
,
params
:
query
params
:
query
,
})
}
...
...
@@ -132,13 +132,13 @@ export function exportCustomer(query) {
export
function
lossRemind
(
status
)
{
return
request
({
url
:
getway
+
'/corp/startCustomerChurnNoticeSwitch/'
+
status
,
method
:
'PUT'
method
:
'PUT'
,
})
}
export
function
getLossRemindStatus
(
status
)
{
return
request
({
url
:
getway
+
'/corp/getCustomerChurnNoticeSwitch/'
url
:
getway
+
'/corp/getCustomerChurnNoticeSwitch/'
,
})
}
/**
...
...
@@ -155,7 +155,7 @@ export function jobExtends(data) {
return
request
({
url
:
service
+
'/jobExtends'
,
method
:
'POST'
,
data
data
,
})
}
...
...
@@ -169,7 +169,7 @@ export function jobExtends(data) {
export
function
getDetail
(
params
)
{
return
request
({
url
:
service
+
'/findWeCustomerBaseInfo'
,
params
params
,
})
}
...
...
@@ -184,8 +184,8 @@ export function getSummary({ externalUserid, delFlag }) {
url
:
service
+
'/findWeCustomerInfoSummary'
,
params
:
{
externalUserid
,
delFlag
}
delFlag
,
}
,
})
}
/**
...
...
@@ -199,7 +199,7 @@ export function getSummary({ externalUserid, delFlag }) {
export
function
getCustomerInfoByUserId
(
data
)
{
return
request
({
url
:
service
+
'/findWeCustomerInfoByUserId'
,
params
:
data
params
:
data
,
})
}
...
...
@@ -217,14 +217,14 @@ export function getFollowUpRecord(params) {
return
request
({
// url: service + '/followUpRecord',
url
:
getway
+
'/trajectory/findTrajectory'
,
params
params
,
})
}
export
function
getRecordList
(
params
)
{
return
request
({
url
:
getway
+
'/trackRecord/followUpRecord'
,
params
params
,
})
}
...
...
@@ -235,7 +235,7 @@ export function getRecordList(params) {
*/
export
function
syncTrack
(
userIds
)
{
return
request
({
url
:
getway
+
`/moments/synchMomentsInteracte/
${
userIds
}
`
url
:
getway
+
`/moments/synchMomentsInteracte/
${
userIds
}
`
,
})
}
...
...
@@ -253,7 +253,7 @@ export function checkByCondition(data) {
return
request
({
url
:
service
+
'/checkByCondition'
,
method
:
'post'
,
data
data
,
})
}
...
...
@@ -262,7 +262,7 @@ export function multiMakeTag(data) {
return
request
({
url
:
service
+
'/batchMakeLabel'
,
method
:
'post'
,
data
data
,
})
}
...
...
@@ -270,6 +270,13 @@ export function multiMakeTag(data) {
export
function
getFieldFn
(
params
)
{
return
request
({
url
:
getway
+
'/portrait/findSysFieldTemplate'
,
params
params
,
})
}
export
function
findCustomerAddWay
(
params
)
{
return
request
({
url
:
service
+
'/findCustomerAddWay'
,
params
,
})
}
vue3-lw-pc/src/utils/dictionary.js
View file @
9c3c330
export
const
dictAddType
=
Object
.
freeze
({
0
:
'未知来源'
,
1
:
'扫描二维码'
,
2
:
'搜索手机号'
,
3
:
'名片分享'
,
4
:
'群聊'
,
5
:
'手机通讯录'
,
6
:
'微信联系人'
,
7
:
'来自微信好友的添加申请'
,
8
:
'安装第三方应用时自动添加的客服人员'
,
9
:
'搜索邮箱'
,
10
:
'视频号主页添加'
,
11
:
'员工活码'
,
12
:
'新客拉群'
,
13
:
'活动裂变'
,
201
:
'内部成员共享'
,
202
:
'管理员/负责人分配'
})
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
:
'通过扫描群二维码入群'
3
:
'通过扫描群二维码入群'
,
})
export
const
dictTrackState
=
Object
.
freeze
({
...
...
@@ -28,5 +33,5 @@ export const dictTrackState = Object.freeze({
2
:
{
name
:
'跟进中'
,
color
:
'warning'
},
3
:
{
name
:
'已成交'
,
color
:
'success'
},
4
:
{
name
:
'无意向'
,
color
:
'info'
},
5
:
{
name
:
'已流失'
,
color
:
'danger'
}
5
:
{
name
:
'已流失'
,
color
:
'danger'
}
,
})
vue3-lw-pc/src/views/customerManage/customer.vue
View file @
9c3c330
...
...
@@ -70,6 +70,7 @@ export default {
watch
:
{},
computed
:
{},
created
()
{
dictAddType
.
then
((
res
)
=>
(
this
.
dictAddType
=
res
))
this
.
getStage
()
this
.
getList
()
this
.
getListTag
()
...
...
vue3-lw-pc/src/views/customerManage/customerDetail.vue
View file @
9c3c330
...
...
@@ -29,6 +29,7 @@ export default {
}
},
created
()
{
dictAddType
.
then
((
res
)
=>
(
this
.
dictAddType
=
res
))
this
.
getDetail
()
this
.
getStage
()
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment