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 58857b7b
authored
Jun 20, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
CustomerDetail
1 parent
9ce888fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
625 additions
and
632 deletions
linkwe-pc/src/views/contentCenter/components/DataDetail.vue
linkwe-pc/src/views/contentCenter/trackMaterial/detail.vue
linkwe-pc/src/views/customerManage/customer.vue
linkwe-pc/src/views/customerManage/lossRemind.vue
linkwe-pc/src/views/contentCenter/components/DataDetail.vue
View file @
58857b7
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
goDetail
(
row
)
{
goDetail
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/operateCenter/customerManage/c
ustomerDetail'
,
name
:
'C
ustomerDetail'
,
query
:
{
externalUserid
,
userId
},
query
:
{
externalUserid
,
userId
},
})
})
},
},
...
...
linkwe-pc/src/views/contentCenter/trackMaterial/detail.vue
View file @
58857b7
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
show-overflow-tooltip
/>
show-overflow-tooltip
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.row
.id
)"
v-if=
"scope.row.isCustomer"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.row)"
v-if=
"scope.row.isCustomer"
>
客户详情
客户详情
</el-button>
</el-button>
</
template
>
</
template
>
...
@@ -584,6 +584,13 @@ export default {
...
@@ -584,6 +584,13 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
goRoute
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
name
:
'CustomerDetail'
,
query
:
{
externalUserid
,
userId
},
})
},
},
},
mounted
()
{
mounted
()
{
this
.
dealLength
()
this
.
dealLength
()
...
...
linkwe-pc/src/views/customerManage/customer.vue
View file @
58857b7
<
script
>
<
script
>
import
*
as
api
from
'@/api/customer'
import
*
as
api
from
'@/api/customer'
import
{
getList
as
getListTag
}
from
'@/api/customer/tag'
import
{
getList
as
getListTag
}
from
'@/api/customer/tag'
import
AddTag
from
'@/components/AddTag'
import
AddTag
from
'@/components/AddTag'
import
SelectTag
from
'@/components/SelectTag'
import
SelectTag
from
'@/components/SelectTag'
import
DeleteTag
from
'@/components/DeleteTag'
import
DeleteTag
from
'@/components/DeleteTag'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
export
default
{
export
default
{
name
:
'Customer'
,
name
:
'Customer'
,
components
:
{
AddTag
,
SelectTag
,
DeleteTag
},
components
:
{
AddTag
,
SelectTag
,
DeleteTag
},
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
stageList
:
[],
stageList
:
[],
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
name
:
''
,
// "客户名称",
name
:
''
,
// "客户名称",
userIds
:
''
,
// "添加人id",
userIds
:
''
,
// "添加人id",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
endTime
:
''
,
// "结束时间"
customerType
:
''
,
//客户类型 1:微信客户;2:企业客户
customerType
:
''
,
//客户类型 1:微信客户;2:企业客户
trackState
:
''
,
//跟进状态 1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失
trackState
:
''
,
//跟进状态 1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失
addMethod
:
''
,
//添加方式 0:未知来源;1:扫描二维码;2:搜索手机号;3:名片分享;4:群聊;5:手机通讯录;6:微信联系人;7:来自微信好友的添加申请;8:安装第三方应用时自动添加的客服人员;9:搜索邮箱;10:视频号主页添加;11:员工活码;12:新客拉群;13:活动裂变;201:内部成员共享;202:管理员/负责人分配
addMethod
:
''
,
//添加方式 0:未知来源;1:扫描二维码;2:搜索手机号;3:名片分享;4:群聊;5:手机通讯录;6:微信联系人;7:来自微信好友的添加申请;8:安装第三方应用时自动添加的客服人员;9:搜索邮箱;10:视频号主页添加;11:员工活码;12:新客拉群;13:活动裂变;201:内部成员共享;202:管理员/负责人分配
gender
:
''
,
//0-未知 1-男性 2-女性
gender
:
''
,
//0-未知 1-男性 2-女性
noTagCheck
:
false
noTagCheck
:
false
,
},
},
queryTag
:
[],
// 搜索框选择的标签
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
queryUser
:
[],
// 搜索框选择的添加人
dateRange
:
[],
// 添加日期
dateRange
:
[],
// 添加日期
loading
:
false
,
loading
:
false
,
total
:
0
,
total
:
0
,
lastSyncTime
:
''
,
lastSyncTime
:
''
,
noRepeatCustomerTotal
:
0
,
noRepeatCustomerTotal
:
0
,
// 添加标签表单
// 添加标签表单
form
:
{
form
:
{
gourpName
:
''
,
gourpName
:
''
,
weTags
:
[]
weTags
:
[],
},
},
list
:
[],
// 客户列表
list
:
[],
// 客户列表
staffList
:
[],
// 所有员工列表
staffList
:
[],
// 所有员工列表
dialogVisible
:
false
,
// 选择标签弹窗显隐
dialogVisible
:
false
,
// 选择标签弹窗显隐
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
dialogVisibleAddTag
:
false
,
// 添加标签弹窗显隐
dialogVisibleAddTag
:
false
,
// 添加标签弹窗显隐
dialogVisibleExtend
:
false
,
// 在职继承弹窗显隐
dialogVisibleExtend
:
false
,
// 在职继承弹窗显隐
extendStaff
:
''
,
// 在职继承选择的员工
extendStaff
:
''
,
// 在职继承选择的员工
currentEidt
:
''
,
// 当前编辑项
currentEidt
:
''
,
// 当前编辑项
selectedTag
:
[],
// 选择的标签
selectedTag
:
[],
// 选择的标签
tagDialogType
:
{
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
title
:
''
,
// 选择标签弹窗标题
type
:
''
// 弹窗类型
type
:
''
,
// 弹窗类型
},
},
dictCustomerType
:
Object
.
freeze
({
1
:
'微信客户'
,
2
:
'企业客户'
}),
dictCustomerType
:
Object
.
freeze
({
1
:
'微信客户'
,
2
:
'企业客户'
}),
dictAddType
:
{},
dictAddType
:
{},
dictTrackState
,
dictTrackState
,
multiObj
:
{
multiObj
:
{
state
:
'add'
,
// 'delete'
state
:
'add'
,
// 'delete'
title
:
'批量打标签'
,
title
:
'批量打标签'
,
showDialog
:
false
showDialog
:
false
,
},
},
multipleSelection
:
[],
// 多选数组
multipleSelection
:
[],
// 多选数组
mulSelectedTag
:
[],
mulSelectedTag
:
[],
deleteData
:
[],
deleteData
:
[],
deleteDialog
:
false
deleteDialog
:
false
,
}
}
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
findCustomerAddWay
()
this
.
findCustomerAddWay
()
this
.
getStage
()
this
.
getStage
()
this
.
getList
()
this
.
getList
()
this
.
getListTag
()
this
.
getListTag
()
this
.
$store
.
dispatch
(
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
'app/setBusininessDesc'
,
`
`
<div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
<div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
`
`
,
)
)
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
findCustomerAddWay
()
{
findCustomerAddWay
()
{
api
.
findCustomerAddWay
().
then
(({
data
})
=>
{
api
.
findCustomerAddWay
().
then
(({
data
})
=>
{
data
.
forEach
((
element
)
=>
{
data
.
forEach
((
element
)
=>
{
this
.
dictAddType
[
element
.
code
]
=
element
.
value
this
.
dictAddType
[
element
.
code
]
=
element
.
value
})
})
})
},
})
setValue
(
data
)
{
},
let
str
=
''
setValue
(
data
)
{
this
.
stageList
.
forEach
((
dd
)
=>
{
let
str
=
''
if
(
dd
.
stageVal
==
data
)
{
this
.
stageList
.
forEach
((
dd
)
=>
{
str
=
dd
.
stageKey
if
(
dd
.
stageVal
==
data
)
{
}
str
=
dd
.
stageKey
})
return
str
},
unique
(
arr
)
{
if
(
!
Array
.
isArray
(
arr
))
{
console
.
log
(
'type error!'
)
return
}
}
let
res
=
[]
})
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
return
str
if
(
res
.
indexOf
(
arr
[
i
])
===
-
1
)
{
},
res
.
push
(
arr
[
i
])
unique
(
arr
)
{
}
if
(
!
Array
.
isArray
(
arr
))
{
console
.
log
(
'type error!'
)
return
}
let
res
=
[]
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
res
.
indexOf
(
arr
[
i
])
===
-
1
)
{
res
.
push
(
arr
[
i
])
}
}
return
res
}
},
return
res
openDeleteDialog
()
{
},
let
str
=
''
openDeleteDialog
()
{
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
let
str
=
''
if
(
dd
.
tagIds
)
{
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
str
=
str
+
','
+
dd
.
tagIds
if
(
dd
.
tagIds
)
{
}
str
=
str
+
','
+
dd
.
tagIds
}
})
this
.
deleteData
=
this
.
unique
(
str
.
split
(
','
))
this
.
deleteDialog
=
true
},
getDeleteData
(
data
)
{
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
let
obj
=
{
externalUserid
:
dd
.
externalUserid
,
addTag
:
data
,
userId
:
dd
.
firstUserId
,
}
arr
.
push
(
obj
)
})
this
.
loading
=
true
api
.
multiMakeTag
({
addOrRemove
:
false
,
weMakeCustomerTagList
:
arr
})
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
msgSuccess
(
'批量删除标签成功'
)
this
.
deleteData
=
[]
this
.
deleteDialog
=
false
this
.
loading
=
false
})
})
this
.
deleteData
=
this
.
unique
(
str
.
split
(
','
))
.
catch
(()
=>
{
this
.
deleteDialog
=
true
this
.
loading
=
false
},
getDeleteData
(
data
)
{
let
arr
=
[]
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
let
obj
=
{
externalUserid
:
dd
.
externalUserid
,
addTag
:
data
,
userId
:
dd
.
firstUserId
}
arr
.
push
(
obj
)
})
})
this
.
loading
=
true
},
api
multiOperation
(
state
)
{
.
multiMakeTag
({
addOrRemove
:
false
,
weMakeCustomerTagList
:
arr
})
this
.
multiObj
.
state
=
state
.
then
((
res
)
=>
{
if
(
state
===
'add'
)
{
this
.
getList
(
1
)
this
.
multiObj
.
title
=
'批量打标签'
this
.
msgSuccess
(
'批量删除标签成功'
)
}
else
{
this
.
deleteData
=
[]
this
.
multiObj
.
title
=
'批量删标签'
this
.
deleteDialog
=
false
}
this
.
loading
=
false
this
.
multiObj
.
showDialog
=
true
})
},
.
catch
(()
=>
{
getMultiOperation
(
data
)
{
this
.
loading
=
false
let
arr
=
[]
})
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
},
let
obj
=
{
multiOperation
(
state
)
{
externalUserid
:
dd
.
externalUserid
,
this
.
multiObj
.
state
=
state
addTag
:
data
,
if
(
state
===
'add'
)
{
userId
:
dd
.
firstUserId
,
this
.
multiObj
.
title
=
'批量打标签'
}
else
{
this
.
multiObj
.
title
=
'批量删标签'
}
}
this
.
multiObj
.
showDialog
=
true
arr
.
push
(
obj
)
}
,
}
)
getMultiOperation
(
data
)
{
this
.
loading
=
true
let
arr
=
[]
api
this
.
multipleSelection
.
forEach
((
dd
)
=>
{
.
multiMakeTag
({
addOrRemove
:
this
.
multiObj
.
state
===
'add'
?
true
:
false
,
weMakeCustomerTagList
:
arr
})
let
obj
=
{
.
then
((
res
)
=>
{
externalUserid
:
dd
.
externalUserid
,
this
.
getList
(
1
)
addTag
:
data
,
this
.
msgSuccess
(
this
.
multiObj
.
state
===
'add'
?
'批量设置标签成功'
:
'批量删除标签成功'
)
userId
:
dd
.
firstUserId
this
.
multiObj
.
showDialog
=
false
}
this
.
multipleSelection
=
[]
arr
.
push
(
obj
)
this
.
loading
=
false
})
})
this
.
loading
=
true
.
catch
(()
=>
{
api
this
.
loading
=
false
.
multiMakeTag
({
addOrRemove
:
this
.
multiObj
.
state
===
'add'
?
true
:
false
,
weMakeCustomerTagList
:
arr
})
.
then
((
res
)
=>
{
this
.
getList
(
1
)
this
.
msgSuccess
(
this
.
multiObj
.
state
===
'add'
?
'批量设置标签成功'
:
'批量删除标签成功'
)
this
.
multiObj
.
showDialog
=
false
this
.
multipleSelection
=
[]
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
getStage
()
{
getList
().
then
((
res
)
=>
{
this
.
stageList
=
res
.
data
})
})
},
},
getList
(
page
)
{
getStage
()
{
// console.log(this.dateRange);
getList
().
then
((
res
)
=>
{
if
(
this
.
dateRange
)
{
this
.
stageList
=
res
.
data
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
})
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
},
}
else
{
getList
(
page
)
{
this
.
query
.
beginTime
=
''
// console.log(this.dateRange);
this
.
query
.
endTime
=
''
if
(
this
.
dateRange
)
{
}
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
this
.
query
.
tagIds
=
this
.
queryTag
.
map
((
d
)
=>
d
.
tagId
)
+
''
}
else
{
this
.
query
.
userIds
=
this
.
queryUser
.
map
((
d
)
=>
d
.
userId
)
+
''
this
.
query
.
beginTime
=
''
this
.
loading
=
true
this
.
query
.
endTime
=
''
api
}
.
getListNew
(
this
.
query
)
page
&&
(
this
.
query
.
pageNum
=
page
)
.
then
(({
rows
,
total
,
lastSyncTime
,
noRepeatCustomerTotal
})
=>
{
this
.
query
.
tagIds
=
this
.
queryTag
.
map
((
d
)
=>
d
.
tagId
)
+
''
rows
.
forEach
((
element
)
=>
{
this
.
query
.
userIds
=
this
.
queryUser
.
map
((
d
)
=>
d
.
userId
)
+
''
if
(
element
.
tagIds
&&
element
.
tagNames
)
{
this
.
loading
=
true
element
.
tagIds
=
element
.
tagIds
.
split
(
','
)
api
element
.
tagNames
=
element
.
tagNames
.
split
(
','
)
.
getListNew
(
this
.
query
)
element
.
tags
=
[]
.
then
(({
rows
,
total
,
lastSyncTime
,
noRepeatCustomerTotal
})
=>
{
element
.
tagIds
.
forEach
((
unit
,
index
)
=>
{
rows
.
forEach
((
element
)
=>
{
element
.
tags
.
push
({
if
(
element
.
tagIds
&&
element
.
tagNames
)
{
tagId
:
unit
,
element
.
tagIds
=
element
.
tagIds
.
split
(
','
)
tagName
:
element
.
tagNames
[
index
]
element
.
tagNames
=
element
.
tagNames
.
split
(
','
)
})
element
.
tags
=
[]
element
.
tagIds
.
forEach
((
unit
,
index
)
=>
{
element
.
tags
.
push
({
tagId
:
unit
,
tagName
:
element
.
tagNames
[
index
],
})
})
}
})
})
}
this
.
list
=
rows
this
.
total
=
+
total
this
.
lastSyncTime
=
lastSyncTime
this
.
noRepeatCustomerTotal
=
+
noRepeatCustomerTotal
this
.
loading
=
false
this
.
multipleSelection
=
[]
})
.
catch
(()
=>
{
this
.
loading
=
false
})
})
},
this
.
list
=
rows
getListTag
(
refresh
)
{
this
.
total
=
+
total
getListTag
().
then
(({
rows
})
=>
{
this
.
lastSyncTime
=
lastSyncTime
this
.
listTagOneArray
=
[]
this
.
noRepeatCustomerTotal
=
+
noRepeatCustomerTotal
rows
.
forEach
((
element
)
=>
{
this
.
loading
=
false
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
multipleSelection
=
[]
this
.
listTagOneArray
.
push
(
d
)
})
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
getListTag
(
refresh
)
{
getListTag
().
then
(({
rows
})
=>
{
this
.
listTagOneArray
=
[]
rows
.
forEach
((
element
)
=>
{
element
.
weTags
.
forEach
((
d
)
=>
{
this
.
listTagOneArray
.
push
(
d
)
})
})
if
(
refresh
)
{
this
.
$refs
.
selectTag
.
getList
()
this
.
form
=
{
gourpName
:
''
,
weTags
:
[]
}
}
})
})
},
if
(
refresh
)
{
showTagDialog
()
{
this
.
$refs
.
selectTag
.
getList
()
this
.
query
.
noTagCheck
=
false
this
.
form
=
{
this
.
selectedTag
=
this
.
queryTag
gourpName
:
''
,
this
.
tagDialogType
=
{
weTags
:
[],
title
:
'选择标签'
,
}
type
:
'query'
}
}
this
.
dialogVisible
=
true
})
// this.$refs.selectTag.$forceUpdate()
},
},
showTagDialog
()
{
makeTag
(
row
)
{
this
.
query
.
noTagCheck
=
false
this
.
currentEidt
=
row
this
.
selectedTag
=
this
.
queryTag
// if (!this.multipleSelection.length) {
this
.
tagDialogType
=
{
// this.msgInfo('请选择一位客户')
title
:
'选择标签'
,
// return
type
:
'query'
,
// }
}
// if (this.multipleSelection.length > 1) {
this
.
dialogVisible
=
true
// this.msgInfo('同时只能选择一位客户')
// this.$refs.selectTag.$forceUpdate()
// return
},
// }
makeTag
(
row
)
{
this
.
selectedTag
=
[]
this
.
currentEidt
=
row
let
hasErrorTag
=
[]
// if (!this.multipleSelection.length) {
let
repeat
=
[]
// this.msgInfo('请选择一位客户')
row
.
tags
&&
// return
row
.
tags
.
forEach
((
unit
)
=>
{
// }
// 判断是否有重复标签
// if (this.multipleSelection.length > 1) {
let
isRepeat
=
this
.
selectedTag
.
some
((
d
)
=>
{
// this.msgInfo('同时只能选择一位客户')
return
d
.
tagId
===
unit
.
tagId
// return
})
// }
// 去重
this
.
selectedTag
=
[]
if
(
isRepeat
)
{
let
hasErrorTag
=
[]
repeat
.
push
(
unit
.
tagName
)
let
repeat
=
[]
return
row
.
tags
&&
}
row
.
tags
.
forEach
((
unit
)
=>
{
let
filter
=
this
.
listTagOneArray
.
find
((
d
)
=>
{
// 判断是否有重复标签
return
d
.
tagId
===
unit
.
tagId
let
isRepeat
=
this
.
selectedTag
.
some
((
d
)
=>
{
})
return
d
.
tagId
===
unit
.
tagId
// 如果没有匹配到,则说明该便签处于异常状态,可能已被删除或破坏
if
(
!
filter
)
{
hasErrorTag
.
push
(
unit
.
tagName
)
return
}
this
.
selectedTag
.
push
(
filter
)
})
})
// this.multipleSelection.forEach((element) => {
// 去重
// })
if
(
isRepeat
)
{
if
(
hasErrorTag
.
length
>
0
)
{
repeat
.
push
(
unit
.
tagName
)
this
.
$notify
({
return
// title: '标题名称',
}
message
:
this
.
$createElement
(
let
filter
=
this
.
listTagOneArray
.
find
((
d
)
=>
{
'i'
,
return
d
.
tagId
===
unit
.
tagId
{
style
:
'color: red'
},
'已有标签['
+
hasErrorTag
+
']不在标签库中,已被删除或存在异常'
),
type
:
'warning'
,
customClass
:
'mzindex'
})
})
// this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常')
// 如果没有匹配到,则说明该便签处于异常状态,可能已被删除或破坏
}
if
(
!
filter
)
{
hasErrorTag
.
push
(
unit
.
tagName
)
return
}
this
.
tagDialogType
=
{
this
.
selectedTag
.
push
(
filter
)
title
:
'标签设置'
+
(
repeat
.
length
?
'(重复的标签已去重显示)'
:
''
)
})
// this.multipleSelection.forEach((element) => {
// })
if
(
hasErrorTag
.
length
>
0
)
{
this
.
$notify
({
// title: '标题名称',
message
:
this
.
$createElement
(
'i'
,
{
style
:
'color: red'
},
'已有标签['
+
hasErrorTag
+
']不在标签库中,已被删除或存在异常'
,
),
type
:
'warning'
,
customClass
:
'mzindex'
,
})
// this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常')
}
this
.
tagDialogType
=
{
title
:
'标签设置'
+
(
repeat
.
length
?
'(重复的标签已去重显示)'
:
''
),
}
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
},
sync
()
{
// const loading = this.$loading({
// lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)',
// })
api
.
sync
()
.
then
(()
=>
{
// loading.close()
this
.
getList
(
1
)
this
.
msgSuccess
(
'后台开始同步数据,请稍后关注进度'
)
})
.
catch
((
fail
)
=>
{
// loading.close()
console
.
log
(
fail
)
})
},
// /** 导出按钮操作 */
// exportCustomer() {
// const queryParams = this.query
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(function() {
// return api.exportCustomer(queryParams)
// })
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
},
submitSelectTag
(
selected
)
{
if
(
this
.
tagDialogType
.
type
===
'query'
)
{
this
.
queryTag
=
selected
this
.
dialogVisible
=
false
}
else
{
let
deleteTag
=
[]
this
.
selectedTag
.
forEach
((
dd
)
=>
{
let
index
=
selected
.
findIndex
((
item
)
=>
item
.
tagId
==
dd
.
tagId
)
if
(
index
==
-
1
)
{
deleteTag
.
push
(
dd
)
}
})
let
data
=
{
externalUserid
:
this
.
currentEidt
.
externalUserid
,
removeTag
:
deleteTag
,
addTag
:
selected
,
userId
:
this
.
currentEidt
.
firstUserId
,
}
}
this
.
dialogVisible
=
true
// let apiType = {
// this.$refs.selectTag.$forceUpdate()
// add: 'makeLabel',
},
// remove: 'removeLabel'
sync
()
{
// }
// const loading = this.$loading({
this
.
loading
=
true
// lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)',
// })
api
api
.
sync
(
)
.
makeLabel
(
data
)
.
then
(()
=>
{
.
then
(()
=>
{
// loading.close()
this
.
msgSuccess
(
'操作成功'
)
this
.
getList
(
1
)
this
.
dialogVisible
=
false
this
.
msgSuccess
(
'后台开始同步数据,请稍后关注进度'
)
this
.
getList
()
})
this
.
loading
=
false
.
catch
((
fail
)
=>
{
// loading.close()
console
.
log
(
fail
)
})
})
},
.
catch
(()
=>
{
// /** 导出按钮操作 */
this
.
loading
=
false
// exportCustomer() {
// const queryParams = this.query
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(function() {
// return api.exportCustomer(queryParams)
// })
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
},
submitSelectTag
(
selected
)
{
if
(
this
.
tagDialogType
.
type
===
'query'
)
{
this
.
queryTag
=
selected
this
.
dialogVisible
=
false
}
else
{
let
deleteTag
=
[]
this
.
selectedTag
.
forEach
((
dd
)
=>
{
let
index
=
selected
.
findIndex
((
item
)
=>
item
.
tagId
==
dd
.
tagId
)
if
(
index
==
-
1
)
{
deleteTag
.
push
(
dd
)
}
})
})
let
data
=
{
}
externalUserid
:
this
.
currentEidt
.
externalUserid
,
},
removeTag
:
deleteTag
,
resetForm
(
formName
)
{
addTag
:
selected
,
this
.
dateRange
=
[]
userId
:
this
.
currentEidt
.
firstUserId
this
.
queryTag
=
[]
}
this
.
queryUser
=
[]
// let apiType = {
this
.
query
.
noTagCheck
=
false
// add: 'makeLabel',
this
.
$refs
[
'queryForm'
].
resetFields
()
// remove: 'removeLabel'
this
.
getList
(
1
)
// }
},
this
.
loading
=
true
// 多选框选中数据
api
handleSelectionChange
(
selection
)
{
.
makeLabel
(
data
)
this
.
multipleSelection
=
selection
.
then
(()
=>
{
},
this
.
msgSuccess
(
'操作成功'
)
// 用于多选变单选
this
.
dialogVisible
=
false
handleSelection
(
selection
,
row
)
{
this
.
getList
()
this
.
$nextTick
(()
=>
{
this
.
loading
=
false
this
.
$refs
.
table
.
clearSelection
()
})
this
.
$refs
.
table
.
toggleRowSelection
(
row
)
.
catch
(()
=>
{
})
this
.
loading
=
false
},
})
goRoute
(
row
)
{
}
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
},
this
.
$router
.
push
({
resetForm
(
formName
)
{
name
:
'CustomerDetail'
,
this
.
dateRange
=
[]
query
:
{
externalUserid
,
userId
},
this
.
queryTag
=
[]
})
this
.
queryUser
=
[]
},
this
.
query
.
noTagCheck
=
false
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
multipleSelection
=
selection
},
// 用于多选变单选
handleSelection
(
selection
,
row
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
table
.
clearSelection
()
this
.
$refs
.
table
.
toggleRowSelection
(
row
)
})
},
goRoute
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
path
:
'customerDetail'
,
query
:
{
externalUserid
,
userId
}
})
},
// 在职继承
// 在职继承
async
transfer
(
row
)
{
async
transfer
(
row
)
{
await
this
.
$refs
[
'SelectStaffForm'
].
validate
()
await
this
.
$refs
[
'SelectStaffForm'
].
validate
()
// if (!this.extendStaff) {
// if (!this.extendStaff) {
// this.msgError('请选择员工')
// this.msgError('请选择员工')
// return
// return
// }
// }
let
data
=
{
let
data
=
{
handoverUserId
:
this
.
currentEidt
.
firstUserId
,
//移交人
handoverUserId
:
this
.
currentEidt
.
firstUserId
,
//移交人
takeoverUserId
:
this
.
extendStaff
,
//接受人
takeoverUserId
:
this
.
extendStaff
,
//接受人
externalUserid
:
this
.
currentEidt
.
externalUserid
//客户id,多个客户使用逗号隔开
externalUserid
:
this
.
currentEidt
.
externalUserid
,
//客户id,多个客户使用逗号隔开
}
api
.
jobExtends
(
data
).
then
((
res
)
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisibleExtend
=
false
this
.
getList
()
})
},
setData
(
data
)
{
this
.
queryTag
=
[]
this
.
query
.
tagIds
=
''
}
}
}
api
.
jobExtends
(
data
).
then
((
res
)
=>
{
}
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisibleExtend
=
false
this
.
getList
()
})
},
setData
(
data
)
{
this
.
queryTag
=
[]
this
.
query
.
tagIds
=
''
},
},
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -461,8 +461,7 @@
...
@@ -461,8 +461,7 @@
v-for=
"(item, index) in stageList"
v-for=
"(item, index) in stageList"
:key=
"index"
:key=
"index"
:label=
"item.stageKey"
:label=
"item.stageKey"
:value=
"item.stageVal"
:value=
"item.stageVal"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"添加方式"
prop=
"addMethod"
>
<el-form-item
label=
"添加方式"
prop=
"addMethod"
>
...
@@ -479,8 +478,7 @@
...
@@ -479,8 +478,7 @@
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
align=
"right"
align=
"right"
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户标签"
prop=
"customerType"
>
<el-form-item
label=
"客户标签"
prop=
"customerType"
>
<div
class=
"tag-input"
@
click=
"showTagDialog"
>
<div
class=
"tag-input"
@
click=
"showTagDialog"
>
...
@@ -536,8 +534,7 @@
...
@@ -536,8 +534,7 @@
:data=
"list"
:data=
"list"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
highlight-current-row
highlight-current-row
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
>
>
<!-- -->
<!-- -->
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
></el-table-column>
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
></el-table-column>
<el-table-column
label=
"客户"
prop=
"customerName"
header-align=
"center"
align=
""
width=
"180"
>
<el-table-column
label=
"客户"
prop=
"customerName"
header-align=
"center"
align=
""
width=
"180"
>
...
@@ -597,8 +594,7 @@
...
@@ -597,8 +594,7 @@
@click="
@click="
dialogVisibleExtend
=
true
dialogVisibleExtend
=
true
currentEidt
=
row
currentEidt
=
row
"
">
>
在职继承
在职继承
</el-button>
</el-button>
</template>
</template>
...
@@ -610,8 +606,7 @@
...
@@ -610,8 +606,7 @@
:total="
total
"
:total="
total
"
:page.sync="
query
.
pageNum
"
:page.sync="
query
.
pageNum
"
:limit.sync="
query
.
pageSize
"
:limit.sync="
query
.
pageSize
"
@pagination="
getList
()
"
@pagination="
getList
()
" />
/>
</div>
</div>
<!-- 选择标签弹窗 -->
<!-- 选择标签弹窗 -->
...
@@ -620,8 +615,7 @@
...
@@ -620,8 +615,7 @@
:visible.sync="
dialogVisible
"
:visible.sync="
dialogVisible
"
:title="
tagDialogType
.
title
"
:title="
tagDialogType
.
title
"
:defaultValues="
selectedTag
"
:defaultValues="
selectedTag
"
@success="
submitSelectTag
"
@success="
submitSelectTag
">
>
<!-- <el-button class="
ml20
" type="
primary
" @click="
dialogVisibleAddTag
=
true
"
<!-- <el-button class="
ml20
" type="
primary
" @click="
dialogVisibleAddTag
=
true
"
>添加标签</el-button
>添加标签</el-button
> -->
> -->
...
@@ -648,43 +642,41 @@
...
@@ -648,43 +642,41 @@
:selected="
mulSelectedTag
"
:selected="
mulSelectedTag
"
:visible.sync="
multiObj
.
showDialog
"
:visible.sync="
multiObj
.
showDialog
"
:title="
multiObj
.
title
"
:title="
multiObj
.
title
"
@success="
getMultiOperation
"
@success="
getMultiOperation
"></SelectTag>
></SelectTag>
<DeleteTag
<DeleteTag
v-if="
deleteDialog
"
v-if="
deleteDialog
"
ref="
deleteTag
"
ref="
deleteTag
"
:visible.sync="
deleteDialog
"
:visible.sync="
deleteDialog
"
:initList="
deleteData
"
:initList="
deleteData
"
:selected="
deleteData
"
:selected="
deleteData
"
@success="
getDeleteData
"
@success="
getDeleteData
"></DeleteTag>
></DeleteTag>
</div>
</div>
</template>
</template>
<style lang="
scss
"
scoped
>
<style lang="
scss
"
scoped
>
.
avatar
{
.
avatar
{
width
:
56
px
;
width
:
56
px
;
height
:
56
px
;
height
:
56
px
;
flex
:
none
;
flex
:
none
;
border
-
radius
:
var
(
--
border
-
radius
-
big
);
border
-
radius
:
var
(
--
border
-
radius
-
big
);
}
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
// margin-left: 4px;
color
:
#
999
;
&
.
man
{
color
:
#
13
a2e8
;
}
}
.
el
-
icon
-
s
-
custom
{
&
.
woman
{
font
-
size
:
16
px
;
color
:
#
f753b2
;
// margin-left: 4px;
color
:
#
999
;
&
.
man
{
color
:
#
13
a2e8
;
}
&
.
woman
{
color
:
#
f753b2
;
}
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
margin
-
left
:
10
px
;
}
}
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
margin
-
left
:
10
px
;
}
<
/style
>
<
/style
>
<
style
>
<
style
>
.
mzindex
{
.
mzindex
{
z
-
index
:
5000
!
important
;
z
-
index
:
5000
!
important
;
}
}
<
/style
>
<
/style
>
linkwe-pc/src/views/customerManage/lossRemind.vue
View file @
58857b7
<
script
>
<
script
>
import
{
getListNew
,
exportCustomer
,
lossRemind
,
getLossRemindStatus
}
from
'@/api/customer'
import
{
getListNew
,
exportCustomer
,
lossRemind
,
getLossRemindStatus
}
from
'@/api/customer'
// import { getList as getListTag } from '@/api/customer/tag'
// import { getList as getListTag } from '@/api/customer/tag'
// import { getList as getListOrganization } from '@/api/organization'
// import { getList as getListOrganization } from '@/api/organization'
import
SelectTag
from
'@/components/SelectTag'
import
SelectTag
from
'@/components/SelectTag'
export
default
{
export
default
{
name
:
'LossRemind'
,
name
:
'LossRemind'
,
components
:
{
SelectTag
},
components
:
{
SelectTag
},
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
name
:
''
,
// "客户名称",
name
:
''
,
// "客户名称",
userIds
:
''
,
// "添加人id",
userIds
:
''
,
// "添加人id",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
endTime
:
''
,
// "结束时间"
trackState
:
5
trackState
:
5
,
},
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
dateRange
:
[],
// 添加日期
loading
:
false
,
isMoreFilter
:
false
,
total
:
0
,
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[]
},
list
:
[],
// 客户列表
listOrganization
:
[],
// 组织架构列表
multipleSelection
:
[],
// 多选数组
dialogVisible
:
false
,
// 选择标签弹窗显隐
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
selectedGroup
:
''
,
// 选择的标签分组
selectedTag
:
[],
// 选择的标签
removeTag
:
[],
// 可移除的标签
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
type
:
''
// 弹窗类型
},
isNotice
:
'0'
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
()
// this.getListTag()
// this.getListOrganization()
this
.
getLossRemindStatus
()
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>当企业成员被客户删除时,会在流失列表中产生一条记录,开启删除通知后,被删除的成员会收到一条推送</div>
`
)
},
mounted
()
{},
methods
:
{
getList
(
page
)
{
// console.log(this.dateRange);
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
getListNew
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
this
.
multipleSelection
=
[]
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
// getListTag() {
// getListTag().then(({ rows }) => {
// this.listTagOneArray = []
// rows.forEach((element) => {
// element.weTags.forEach((d) => {
// this.listTagOneArray.push(d)
// })
// })
// })
// },
// getListOrganization() {
// getListOrganization().then(({ rows }) => {
// this.listOrganization = Object.freeze(rows)
// })
// },
getLossRemindStatus
()
{
getLossRemindStatus
().
then
(({
data
})
=>
{
this
.
isNotice
=
data
})
},
},
showTagDialog
()
{
queryTag
:
[],
// 搜索框选择的标签
this
.
selectedTag
=
this
.
queryTag
queryUser
:
[],
// 搜索框选择的添加人
this
.
tagDialogType
=
{
dateRange
:
[],
// 添加日期
title
:
'选择标签'
,
loading
:
false
,
type
:
'1'
isMoreFilter
:
false
,
}
total
:
0
,
this
.
dialogVisible
=
true
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[],
},
},
// /** 导出按钮操作 */
list
:
[],
// 客户列表
// exportCustomer() {
listOrganization
:
[],
// 组织架构列表
// const queryParams = this.query
multipleSelection
:
[],
// 多选数组
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
dialogVisible
:
false
,
// 选择标签弹窗显隐
// confirmButtonText: '确定',
dialogVisibleSelectUser
:
false
,
// 选择添加人弹窗显隐
// cancelButtonText: '取消',
selectedGroup
:
''
,
// 选择的标签分组
// type: 'warning'
selectedTag
:
[],
// 选择的标签
// })
removeTag
:
[],
// 可移除的标签
// .then(function() {
tagDialogType
:
{
// return exportCustomer(queryParams)
title
:
''
,
// 选择标签弹窗标题
// })
type
:
''
,
// 弹窗类型
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
this
.
query
.
userIds
=
list
.
map
((
d
)
=>
d
.
userId
)
+
''
},
},
submitSelectTag
(
selected
)
{
isNotice
:
'0'
,
if
(
this
.
tagDialogType
.
type
===
'1'
)
{
}
this
.
query
.
tagIds
=
selected
.
map
((
d
)
=>
d
.
tagId
)
+
''
},
// debugger;
watch
:
{},
this
.
queryTag
=
selected
computed
:
{},
this
.
dialogVisible
=
false
created
()
{
}
this
.
getList
()
},
// this.getListTag()
resetForm
()
{
// this.getListOrganization()
this
.
dateRange
=
[]
this
.
getLossRemindStatus
()
this
.
queryTag
=
[]
this
.
queryUser
=
[]
this
.
$store
.
dispatch
(
this
.
$refs
[
'queryForm'
].
resetFields
()
'app/setBusininessDesc'
,
this
.
getList
(
1
)
`
},
<div>当企业成员被客户删除时,会在流失列表中产生一条记录,开启删除通知后,被删除的成员会收到一条推送</div>
// 多选框选中数据
`
,
handleSelectionChange
(
selection
)
{
)
this
.
multipleSelection
=
selection
},
},
mounted
()
{},
// 流失提醒开关事件
methods
:
{
remindSwitch
(
val
)
{
getList
(
page
)
{
lossRemind
(
val
).
then
(()
=>
{
// console.log(this.dateRange);
this
.
msgSuccess
(
'操作成功'
)
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
getListNew
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
this
.
multipleSelection
=
[]
})
.
catch
(()
=>
{
this
.
loading
=
false
})
})
},
// getListTag() {
// getListTag().then(({ rows }) => {
// this.listTagOneArray = []
// rows.forEach((element) => {
// element.weTags.forEach((d) => {
// this.listTagOneArray.push(d)
// })
// })
// })
// },
// getListOrganization() {
// getListOrganization().then(({ rows }) => {
// this.listOrganization = Object.freeze(rows)
// })
// },
getLossRemindStatus
()
{
getLossRemindStatus
().
then
(({
data
})
=>
{
this
.
isNotice
=
data
})
},
showTagDialog
()
{
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
title
:
'选择标签'
,
type
:
'1'
,
}
}
}
this
.
dialogVisible
=
true
}
},
// /** 导出按钮操作 */
// exportCustomer() {
// const queryParams = this.query
// this.$confirm('是否确认导出所有客户数据项?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(function() {
// return exportCustomer(queryParams)
// })
// .then((response) => {
// this.download(response.msg)
// })
// .catch(function() {})
// },
selectedUser
(
list
)
{
this
.
queryUser
=
list
this
.
query
.
userIds
=
list
.
map
((
d
)
=>
d
.
userId
)
+
''
},
submitSelectTag
(
selected
)
{
if
(
this
.
tagDialogType
.
type
===
'1'
)
{
this
.
query
.
tagIds
=
selected
.
map
((
d
)
=>
d
.
tagId
)
+
''
// debugger;
this
.
queryTag
=
selected
this
.
dialogVisible
=
false
}
},
resetForm
()
{
this
.
dateRange
=
[]
this
.
queryTag
=
[]
this
.
queryUser
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
this
.
getList
(
1
)
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
multipleSelection
=
selection
},
// 流失提醒开关事件
remindSwitch
(
val
)
{
lossRemind
(
val
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
})
},
},
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -187,8 +187,7 @@
...
@@ -187,8 +187,7 @@
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
align=
"right"
align=
"right"
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签"
>
<el-form-item
label=
"标签"
>
<div
class=
"tag-input"
@
click=
"showTagDialog"
>
<div
class=
"tag-input"
@
click=
"showTagDialog"
>
...
@@ -223,8 +222,7 @@
...
@@ -223,8 +222,7 @@
inactive-value=
"0"
inactive-value=
"0"
active-color=
"#07c160"
active-color=
"#07c160"
inactive-color=
"#ff4949"
inactive-color=
"#ff4949"
@
change=
"remindSwitch"
@
change=
"remindSwitch"
></el-switch>
></el-switch>
</div>
</div>
<!-- v-hasPermi="['customerManage/customer:makeTag']" -->
<!-- v-hasPermi="['customerManage/customer:makeTag']" -->
</div>
</div>
...
@@ -234,9 +232,8 @@
...
@@ -234,9 +232,8 @@
ref=
"multipleTable"
ref=
"multipleTable"
:data=
"list"
:data=
"list"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
style=
"width: 100%;"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
>
>
<!-- <el-table-column type="selection" align="center" width="55"></el-table-column> -->
<!-- <el-table-column type="selection" align="center" width="55"></el-table-column> -->
<el-table-column
label=
"客户"
prop=
"name"
align=
"center"
>
<el-table-column
label=
"客户"
prop=
"name"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -254,7 +251,7 @@
...
@@ -254,7 +251,7 @@
<
el
-
table
-
column
prop
=
"firstAddTime"
label
=
"添加时间"
align
=
"center"
>
<
el
-
table
-
column
prop
=
"firstAddTime"
label
=
"添加时间"
align
=
"center"
>
<!--
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
weFlowerCustomerRels
[
0
].
createTime
}}
<
/template> --
>
<!--
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
weFlowerCustomerRels
[
0
].
createTime
}}
<
/template> --
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"留存天数"
prop
=
"retentionDays"
align
=
"center"
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"留存天数"
prop
=
"retentionDays"
align
=
"center"
><
/el-table-column
>
<
el
-
table
-
column
prop
=
"updateTime"
label
=
"流失时间"
align
=
"center"
>
<
el
-
table
-
column
prop
=
"updateTime"
label
=
"流失时间"
align
=
"center"
>
<!--
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
weFlowerCustomerRels
[
0
].
createTime
}}
<
/template> --
>
<!--
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
weFlowerCustomerRels
[
0
].
createTime
}}
<
/template> --
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -276,15 +273,14 @@
...
@@ -276,15 +273,14 @@
<el-button
<el-button
@click="
@click="
$router
.
push
({
$router
.
push
({
path
:
'/customerManage/customerManage/customer/c
ustomerDetail'
,
name
:
'C
ustomerDetail'
,
query
:
{
query
:
{
externalUserid
:
row
.
externalUserid
,
externalUserid
:
row
.
externalUserid
,
userId
:
row
.
firstUserId
userId
:
row
.
firstUserId
,
}
}
,
}
)
}
)
"
"
type="
text
"
type="
text
">
>
查看
查看
</el-button>
</el-button>
<!-- <el-button type="
text
" >编辑</el-button> -->
<!-- <el-button type="
text
" >编辑</el-button> -->
...
@@ -297,8 +293,7 @@
...
@@ -297,8 +293,7 @@
:total="
total
"
:total="
total
"
:page.sync="
query
.
pageNum
"
:page.sync="
query
.
pageNum
"
:limit.sync="
query
.
pageSize
"
:limit.sync="
query
.
pageSize
"
@pagination="
getList
()
"
@pagination="
getList
()
" />
/>
</div>
</div>
<!-- 选择标签弹窗 -->
<!-- 选择标签弹窗 -->
...
@@ -307,8 +302,7 @@
...
@@ -307,8 +302,7 @@
:title="
tagDialogType
.
title
"
:title="
tagDialogType
.
title
"
:selected="
selectedTag
"
:selected="
selectedTag
"
:type="
tagDialogType
.
type
"
:type="
tagDialogType
.
type
"
@success="
submitSelectTag
"
@success="
submitSelectTag
"></SelectTag>
></SelectTag>
<!-- 选择添加人弹窗 -->
<!-- 选择添加人弹窗 -->
<SelectUser :visible.sync="
dialogVisibleSelectUser
" title="
选择添加人
" @success="
selectedUser
"></SelectUser>
<SelectUser :visible.sync="
dialogVisibleSelectUser
" title="
选择添加人
" @success="
selectedUser
"></SelectUser>
...
@@ -316,18 +310,18 @@
...
@@ -316,18 +310,18 @@
</template>
</template>
<style lang="
scss
"
scoped
>
<style lang="
scss
"
scoped
>
.
el
-
icon
-
s
-
custom
{
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
font
-
size
:
16
px
;
margin
-
left
:
4
px
;
margin
-
left
:
4
px
;
color
:
#
999
;
color
:
#
999
;
&
.
man
{
&
.
man
{
color
:
#
13
a2e8
;
color
:
#
13
a2e8
;
}
&
.
woman
{
color
:
#
f753b2
;
}
}
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
&
.
woman
{
margin
-
left
:
10
px
;
color
:
#
f753b2
;
}
}
}
.
bfc
-
d
+
.
bfc
-
d
.
el
-
checkbox
:
first
-
child
{
margin
-
left
:
10
px
;
}
<
/style
>
<
/style
>
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