Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
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 19d50df9
authored
Jun 03, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
d961bd1b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
44 deletions
src/api/solicit.js
src/components/CustomerFollowPopup.vue
src/views/solicit/statistic.vue
src/api/solicit.js
View file @
19d50df
...
@@ -5,7 +5,7 @@ export default {
...
@@ -5,7 +5,7 @@ export default {
followFindAllDictData
(
data
)
{
followFindAllDictData
(
data
)
{
data
.
method
=
'merchants.api.menu.findAllDictData'
data
.
method
=
'merchants.api.menu.findAllDictData'
return
window
.
$HTTP
({
return
window
.
$HTTP
({
url
:
'rop-merchants/router'
,
url
:
'
http://rop-merchant.dev.glsx.com.cn/
rop-merchants/router'
,
data
,
data
,
returnAll
:
true
returnAll
:
true
})
})
...
...
src/components/CustomerFollowPopup.vue
View file @
19d50df
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<van-field
name=
"跟进结果"
label=
"跟进结果"
class=
"field-bottom"
>
<van-field
name=
"跟进结果"
label=
"跟进结果"
class=
"field-bottom"
>
<template
#
input
>
<template
#
input
>
<div
class=
"follow-list"
>
<div
class=
"follow-list"
>
<div
class=
"follow-list-item"
v-for=
"item in followResultList"
:key=
"item.
id
"
@
click=
"selectFollow(item)"
>
<div
class=
"follow-list-item"
v-for=
"item in followResultList"
:key=
"item.
dictValue
"
@
click=
"selectFollow(item)"
>
<div
:class=
"item.id == selectFollowForm.followResultId ? 'follow-list-item-select' : ''"
>
{{
item
.
title
}}
</div>
<div
:class=
"item.id == selectFollowForm.followResultId ? 'follow-list-item-select' : ''"
>
{{
item
.
dictLabel
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -82,44 +82,7 @@ export default {
...
@@ -82,44 +82,7 @@ export default {
isShow
:
false
,
isShow
:
false
,
show
:
false
,
show
:
false
,
tabIndex
:
0
,
tabIndex
:
0
,
followResultList
:
[
followResultList
:
[],
{
id
:
1
,
title
:
'预约到店'
},
{
id
:
2
,
title
:
'价格高'
},
{
id
:
3
,
title
:
'已保养'
},
{
id
:
4
,
title
:
'未接听'
},
{
id
:
5
,
title
:
'不感兴趣'
},
{
id
:
6
,
title
:
'空号'
},
{
id
:
7
,
title
:
'距离远'
},
{
id
:
8
,
title
:
'非本人'
},
{
id
:
9
,
title
:
'其他'
}
],
datePickList
:
[
datePickList
:
[
{
{
index
:
0
,
index
:
0
,
...
@@ -164,12 +127,13 @@ export default {
...
@@ -164,12 +127,13 @@ export default {
}
}
solicitApi
.
followFindAllDictData
(
params
).
then
(
res
=>
{
solicitApi
.
followFindAllDictData
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
followResultList
=
res
.
data
})
})
},
},
// 选择跟进结果
// 选择跟进结果
selectFollow
(
val
)
{
selectFollow
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
selectFollowForm
.
followResultId
=
val
.
id
this
.
selectFollowForm
.
followResultId
=
val
.
dictValue
},
},
// 获取跟进备注
// 获取跟进备注
getTips
(
e
)
{
getTips
(
e
)
{
...
...
src/views/solicit/statistic.vue
View file @
19d50df
<
template
>
<
template
>
<div>
<div>
<van-tabs
v-model=
"tabIndex"
sticky
>
<van-tabs
v-model=
"tabIndex"
sticky
@
change=
"tabChange"
>
<van-tab
:title=
"'未送达(' + customerInfo1.length + ')'"
>
<van-tab
:title=
"'未送达(' + customerInfo1.length + ')'"
>
<scroll-view
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<scroll-view
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<div
class=
"reason"
>
<div
class=
"reason"
>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</div>
</div>
</div>
</div>
<select-bar
:index=
"3"
:list=
"selectBarList"
></select-bar>
<select-bar
:index=
"3"
:list=
"selectBarList"
></select-bar>
<customer-card
:customerInfo=
"customerInfo"
></customer-card>
<customer-card
:customerInfo=
"customerInfo
2
"
></customer-card>
</van-tab>
</van-tab>
</van-tabs>
</van-tabs>
</div>
</div>
...
@@ -57,6 +57,10 @@ export default {
...
@@ -57,6 +57,10 @@ export default {
pagesize
:
10
,
pagesize
:
10
,
pageNum
:
1
pageNum
:
1
},
},
// 未送达客户数量
unSendCount
:
null
,
// 送达客户数量
sendCount
:
null
,
// 未送达客户列表
// 未送达客户列表
customerInfo1
:
[
customerInfo1
:
[
{
{
...
@@ -202,11 +206,19 @@ export default {
...
@@ -202,11 +206,19 @@ export default {
// this.getSendCustomerList()
// this.getSendCustomerList()
},
},
methods
:
{
methods
:
{
// tab栏切换
tabChange
(
e
)
{
console
.
log
(
e
)
this
.
tabIndex
=
e
},
// 获取未送达客户信息
// 获取未送达客户信息
getUnSendCustomerList
()
{
getUnSendCustomerList
()
{
var
params
=
{
...
this
.
unSendPageParam
}
var
params
=
{
...
this
.
unSendPageParam
}
// followFlag-跟进状态:0待跟进、1已跟进
// followFlag-跟进状态:0待跟进、1已跟进
params
.
followFlag
=
0
params
.
followFlag
=
0
// params.groupId =
// params.id =
// params.staffId =
console
.
log
(
params
)
console
.
log
(
params
)
solicitApi
.
getCustomerList
().
then
(
res
=>
{
solicitApi
.
getCustomerList
().
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -217,6 +229,9 @@ export default {
...
@@ -217,6 +229,9 @@ export default {
var
params
=
{
...
this
.
sendPageParam
}
var
params
=
{
...
this
.
sendPageParam
}
// followFlag-跟进状态:0待跟进、1已跟进
// followFlag-跟进状态:0待跟进、1已跟进
params
.
followFlag
=
1
params
.
followFlag
=
1
// params.groupId =
// params.id =
// params.staffId =
console
.
log
(
params
)
console
.
log
(
params
)
solicitApi
.
getCustomerList
().
then
(
res
=>
{
solicitApi
.
getCustomerList
().
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -227,6 +242,13 @@ export default {
...
@@ -227,6 +242,13 @@ export default {
console
.
log
(
'触底'
)
console
.
log
(
'触底'
)
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
this
.
$refs
.
scrollView
.
finished
=
true
// 未送达页面
if
(
this
.
tabIndex
==
0
)
{
this
.
unSendPageParam
.
pageNum
++
return
}
// 送达页面
this
.
sendPageParam
.
pageNum
++
}
}
}
}
}
}
...
...
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