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 09744465
authored
Jun 09, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户添加方式字典
1 parent
6a9a918c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
23 deletions
linkwe-pc/src/utils/dictionary.js
linkwe-pc/src/views/customerManage/customer.vue
linkwe-pc/src/views/customerManage/customerDetail.vue
linkwe-pc/src/utils/dictionary.js
View file @
0974446
export
const
dictAddType
=
Object
.
freeze
({
0
:
'未知来源'
,
1
:
'扫描二维码'
,
2
:
'搜索手机号'
,
3
:
'名片分享'
,
4
:
'群聊'
,
5
:
'手机通讯录'
,
6
:
'微信联系人'
,
7
:
'来自微信好友的添加申请'
,
8
:
'安装第三方应用时自动添加的客服人员'
,
9
:
'搜索邮箱'
,
10
:
'视频号主页添加'
,
11
:
'员工活码'
,
12
:
'新客拉群'
,
13
:
'活动裂变'
,
201
:
'内部成员共享'
,
202
:
'管理员/负责人分配'
})
export
const
dictJoinGroupType
=
Object
.
freeze
({
export
const
dictJoinGroupType
=
Object
.
freeze
({
1
:
'由成员邀请入群(直接邀请入群)'
,
1
:
'由成员邀请入群(直接邀请入群)'
,
2
:
'由成员邀请入群(通过邀请链接入群)'
,
2
:
'由成员邀请入群(通过邀请链接入群)'
,
3
:
'通过扫描群二维码入群'
3
:
'通过扫描群二维码入群'
,
})
})
export
const
dictTrackState
=
Object
.
freeze
({
export
const
dictTrackState
=
Object
.
freeze
({
...
@@ -28,5 +9,5 @@ export const dictTrackState = Object.freeze({
...
@@ -28,5 +9,5 @@ export const dictTrackState = Object.freeze({
2
:
{
name
:
'跟进中'
,
color
:
'warning'
},
2
:
{
name
:
'跟进中'
,
color
:
'warning'
},
3
:
{
name
:
'已成交'
,
color
:
'success'
},
3
:
{
name
:
'已成交'
,
color
:
'success'
},
4
:
{
name
:
'无意向'
,
color
:
'info'
},
4
:
{
name
:
'无意向'
,
color
:
'info'
},
5
:
{
name
:
'已流失'
,
color
:
'danger'
}
5
:
{
name
:
'已流失'
,
color
:
'danger'
}
,
})
})
linkwe-pc/src/views/customerManage/customer.vue
View file @
0974446
This diff is collapsed.
Click to expand it.
linkwe-pc/src/views/customerManage/customerDetail.vue
View file @
0974446
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
{
updateBirthday
,
getDetail
,
getSummary
,
getFollowUpRecord
,
getCustomerInfoByUserId
}
from
'@/api/customer'
import
{
updateBirthday
,
getDetail
,
getSummary
,
getFollowUpRecord
,
getCustomerInfoByUserId
}
from
'@/api/customer'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
import
{
dict
AddType
,
dict
JoinGroupType
,
dictTrackState
}
from
'@/utils/dictionary'
import
{
dictJoinGroupType
,
dictTrackState
}
from
'@/utils/dictionary'
import
InfoTab
from
'./customer/infoTab.vue'
import
InfoTab
from
'./customer/infoTab.vue'
export
default
{
export
default
{
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
return
time
.
getTime
()
>
Date
.
now
()
return
time
.
getTime
()
>
Date
.
now
()
},
},
},
},
dictAddType
,
dictAddType
:
{}
,
dictJoinGroupType
,
dictJoinGroupType
,
dictTrackState
,
dictTrackState
,
...
@@ -29,10 +29,18 @@ export default {
...
@@ -29,10 +29,18 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
findCustomerAddWay
()
this
.
getDetail
()
this
.
getDetail
()
this
.
getStage
()
this
.
getStage
()
},
},
methods
:
{
methods
:
{
findCustomerAddWay
()
{
findCustomerAddWay
().
then
(({
data
})
=>
{
data
.
forEach
((
element
)
=>
{
this
.
dictAddType
[
element
.
code
]
=
element
.
value
})
})
},
getStage
()
{
getStage
()
{
getList
().
then
((
res
)
=>
{
getList
().
then
((
res
)
=>
{
this
.
stageList
=
res
.
data
this
.
stageList
=
res
.
data
...
...
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