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 2f2afec7
authored
Jun 06, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
触达统计接口字段对接
1 parent
926aec14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
150 additions
and
113 deletions
src/components/CustomerCard.vue
src/components/CustomerFollowPopup.vue
src/components/CustomerInfoPopup.vue
src/views/solicit/statistic.vue
src/components/CustomerCard.vue
View file @
2f2afec
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
<div>
<div>
<div
class=
"customer-box"
v-for=
"item in customerInfo"
:key=
"item.id"
>
<div
class=
"customer-box"
v-for=
"item in customerInfo"
:key=
"item.id"
>
<div
class=
"customer-title"
>
<div
class=
"customer-title"
>
<div
class=
"customer-name"
>
{{
item
.
n
ame
}}
</div>
<div
class=
"customer-name"
>
{{
item
.
customerN
ame
}}
</div>
<div
class=
"customer-carnumber"
>
{{
item
.
cars
.
length
>
0
&&
item
.
cars
[
0
].
carNumber
}}
</div>
<div
class=
"customer-carnumber"
>
{{
item
.
cars
.
length
>
0
&&
item
.
cars
[
0
].
carNumber
}}
</div>
</div>
</div>
<div
class=
"customer-info"
>
<div
class=
"customer-info"
>
<div
class=
"customer-info-left"
>
<div
class=
"customer-info-left"
>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-name"
>
车系:
</div>
<div
class=
"customer-info-name"
>
车系:
</div>
<div
class=
"customer-info-message"
>
{{
item
.
cars
.
length
>
0
&&
item
.
cars
[
0
].
carSeries
}}
</div>
<div
class=
"customer-info-message"
>
{{
item
.
cars
.
length
>
0
&&
item
.
cars
[
0
].
carSeries
}}
</div>
</div>
</div>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-name"
>
招揽结果:
</div>
<div
class=
"customer-info-name"
>
招揽结果:
</div>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-name"
>
企微营销:
</div>
<div
class=
"customer-info-name"
>
企微营销:
</div>
<div
class=
"customer-info-message"
>
{{
item
.
checkStatus
}}
</div>
<div
class=
"customer-info-message"
>
{{
item
.
checkStatus
==
0
?
'未查看'
:
'已查看'
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"customer-info-right"
>
<div
class=
"customer-info-right"
>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<!-- 电话营销弹窗 -->
<!-- 电话营销弹窗 -->
<van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/>
<van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/>
<!-- 跟进弹窗 -->
<!-- 跟进弹窗 -->
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
></customer-follow-popup>
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
></customer-follow-popup>
<!-- 客户信息弹窗 -->
<!-- 客户信息弹窗 -->
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
</div>
</div>
...
@@ -70,6 +70,18 @@ export default {
...
@@ -70,6 +70,18 @@ export default {
default
:
()
=>
{
default
:
()
=>
{
return
[]
return
[]
}
}
},
groupId
:
{
type
:
Number
,
default
:
()
=>
{
return
null
}
},
groupName
:
{
type
:
String
,
default
:
()
=>
{
return
''
}
}
}
},
},
data
()
{
data
()
{
...
@@ -83,7 +95,7 @@ export default {
...
@@ -83,7 +95,7 @@ export default {
userIds
:
[],
userIds
:
[],
chatId
:
''
chatId
:
''
},
},
followCustomerData
:{},
followCustomerData
:
{},
phoneNumber
:
null
phoneNumber
:
null
}
}
},
},
...
@@ -91,7 +103,7 @@ export default {
...
@@ -91,7 +103,7 @@ export default {
// this.initWx()
// this.initWx()
},
},
methods
:
{
methods
:
{
//初始化微信接口
//
初始化微信接口
initWx
()
{
initWx
()
{
window
.
$wx
=
wxConfig
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'setClipboardData'
,
'makePhoneCall'
]).
then
(()
=>
{})
window
.
$wx
.
init
([
'setClipboardData'
,
'makePhoneCall'
]).
then
(()
=>
{})
...
@@ -139,7 +151,7 @@ export default {
...
@@ -139,7 +151,7 @@ export default {
// 客户详情
// 客户详情
sendMessage
(
val
)
{
sendMessage
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
$refs
.
customerInfoRef
.
init
()
this
.
$refs
.
customerInfoRef
.
init
(
val
)
},
},
// 企微沟通
// 企微沟通
sendWechat
(
val
)
{
sendWechat
(
val
)
{
...
...
src/components/CustomerFollowPopup.vue
View file @
2f2afec
...
@@ -119,6 +119,8 @@ export default {
...
@@ -119,6 +119,8 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
console
.
log
(
this
.
followResultList
)
console
.
log
(
this
.
activityId
)
this
.
show
=
true
this
.
show
=
true
// 获取当前时间
// 获取当前时间
const
date
=
new
Date
(
new
Date
().
getTime
()
+
(
parseInt
(
new
Date
().
getTimezoneOffset
()
/
60
)
+
8
)
*
3600
*
1000
)
const
date
=
new
Date
(
new
Date
().
getTime
()
+
(
parseInt
(
new
Date
().
getTimezoneOffset
()
/
60
)
+
8
)
*
3600
*
1000
)
...
@@ -128,14 +130,14 @@ export default {
...
@@ -128,14 +130,14 @@ export default {
selectFollow
(
val
)
{
selectFollow
(
val
)
{
this
.
selectFollowForm
.
followResult
=
val
.
dictValue
this
.
selectFollowForm
.
followResult
=
val
.
dictValue
},
},
//
//
获取跟进备注
// 获取跟进备注
//
getTips(e) {
getTips
(
e
)
{
//
console.log(e)
console
.
log
(
e
)
//
this.selectFollowForm.followTips = e
this
.
selectFollowForm
.
followTips
=
e
//
},
},
// 继续跟进按钮切换
// 继续跟进按钮切换
switchChange
()
{
switchChange
()
{
//
this.selectFollowForm.checked = !this.selectFollowForm.checked
this
.
selectFollowForm
.
checked
=
!
this
.
selectFollowForm
.
checked
console
.
log
(
this
.
selectFollowForm
.
checked
)
console
.
log
(
this
.
selectFollowForm
.
checked
)
},
},
// 展示日历表
// 展示日历表
...
...
src/components/CustomerInfoPopup.vue
View file @
2f2afec
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<van-action-sheet
v-model:show=
"showCustomerDetail"
cancel-text=
"关闭详情"
close-on-click-action
@
cancel=
"onCancel"
>
<van-action-sheet
v-model:show=
"showCustomerDetail"
cancel-text=
"关闭详情"
close-on-click-action
@
cancel=
"onCancel"
>
<div
class=
"popup-card"
>
<div
class=
"popup-card"
>
<div
class=
"name-title"
>
<div
class=
"name-title"
>
<div
class=
"name-title-text"
>
{{
customerList
.
n
ame
}}
</div>
<div
class=
"name-title-text"
>
{{
customerList
.
customerN
ame
}}
</div>
</div>
</div>
<!-- 客户信息 -->
<!-- 客户信息 -->
<div
class=
"customer-message"
>
<div
class=
"customer-message"
>
...
@@ -15,19 +15,19 @@
...
@@ -15,19 +15,19 @@
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
车系
</div>
<div
class=
"customer-info-item-title"
>
车系
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
car
Brand
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
car
s
.
length
>
0
&&
customerList
.
cars
[
0
].
carSeries
}}
</div>
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
车牌号码
</div>
<div
class=
"customer-info-item-title"
>
车牌号码
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
carNumber
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
car
s
.
length
>
0
&&
customerList
.
cars
[
0
].
car
Number
}}
</div>
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
购车日期
</div>
<div
class=
"customer-info-item-title"
>
购车日期
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
buyCar
Date
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
.
length
>
0
&&
customerList
.
cars
[
0
].
carBuy
Date
}}
</div>
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
最近保养
</div>
<div
class=
"customer-info-item-title"
>
最近保养
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
recentCar
e
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
length
>
0
&&
customerList
.
maListcars
[
0
].
maDat
e
}}
</div>
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
人群分组
</div>
<div
class=
"customer-info-item-title"
>
人群分组
</div>
...
@@ -35,7 +35,12 @@
...
@@ -35,7 +35,12 @@
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
企微账号
</div>
<div
class=
"customer-info-item-title"
>
企微账号
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
wechatNumber
}}
</div>
<div
v-if=
"customerList.wechatnick"
>
<span
class=
"customer-info-item-content"
>
{{
customerList
.
wechatnick
}}
</span>
<span
class=
"customer-info-wechat customer-info-message"
v-if=
"customerList.type == 1"
>
@微信
</span>
<span
class=
"customer-info-qiwechat customer-info-message"
v-else
>
@企微
</span>
</div>
<div
class=
"customer-info-message"
v-else
>
未添加
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -47,17 +52,17 @@
...
@@ -47,17 +52,17 @@
<div
class=
"sprite-icon icon-maintant"
></div>
<div
class=
"sprite-icon icon-maintant"
></div>
<div
class=
"stepBox"
>
<div
class=
"stepBox"
>
<div
class=
"stepBox-left"
>
<div
class=
"stepBox-left"
>
<div
class=
"stepBox-left-name"
>
{{
item
.
name
}}
</div>
<div
class=
"stepBox-left-name"
>
{{
item
.
repairItems
}}
</div>
<div
class=
"stepBox-left-title"
>
<div
class=
"stepBox-left-title"
>
费用:
费用:
<span
class=
"stepBox-left-content"
>
{{
item
.
price
}}
</span>
<span
class=
"stepBox-left-content"
>
{{
item
.
price
}}
</span>
</div>
</div>
<div
class=
"stepBox-left-title"
>
<div
class=
"stepBox-left-title"
>
跟进人:
跟进人:
<span
class=
"stepBox-left-content"
>
{{
item
.
follow
Staff
}}
</span>
<span
class=
"stepBox-left-content"
>
{{
item
.
follow
er
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"stepBox-right"
>
{{
item
.
d
ate
}}
</div>
<div
class=
"stepBox-right"
>
{{
item
.
maD
ate
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -66,22 +71,22 @@
...
@@ -66,22 +71,22 @@
<!-- 跟进记录 -->
<!-- 跟进记录 -->
<div
class=
"record"
>
<div
class=
"record"
>
<div
class=
"customer-info-title"
>
跟进记录
</div>
<div
class=
"customer-info-title"
>
跟进记录
</div>
<
template
v-if=
"
r
ecordList.length"
>
<
template
v-if=
"
customerList.followR
ecordList.length"
>
<div
class=
"stepItem"
v-for=
"(item, index) in
r
ecordList"
:key=
"index"
>
<div
class=
"stepItem"
v-for=
"(item, index) in
customerList.followR
ecordList"
:key=
"index"
>
<div
class=
"sprite-icon icon-followRecord"
></div>
<div
class=
"sprite-icon icon-followRecord"
></div>
<div
class=
"stepBox"
>
<div
class=
"stepBox"
>
<div
class=
"stepBox-left"
>
<div
class=
"stepBox-left"
>
<div
class=
"stepBox-left-name"
>
{{
item
.
name
}}
</div>
<div
class=
"stepBox-left-name"
>
{{
item
.
followResult
}}
</div>
<div
class=
"stepBox-left-title"
>
<div
class=
"stepBox-left-title"
>
预约时间:
预约时间:
<span
class=
"stepBox-left-content"
>
{{
item
.
recordDate
?
item
.
recordDat
e
:
'-'
}}
</span>
<span
class=
"stepBox-left-content"
>
{{
item
.
orderTime
?
item
.
orderTim
e
:
'-'
}}
</span>
</div>
</div>
<div
class=
"stepBox-left-title"
>
<div
class=
"stepBox-left-title"
>
备注:
备注:
<span
class=
"stepBox-left-content"
>
{{
item
.
tips
?
item
.
tips
:
'-'
}}
</span>
<span
class=
"stepBox-left-content"
>
{{
item
.
followMark
?
item
.
followMark
:
'-'
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"stepBox-right"
>
{{
item
.
dat
e
}}
</div>
<div
class=
"stepBox-right"
>
{{
item
.
createdTim
e
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -93,6 +98,8 @@
...
@@ -93,6 +98,8 @@
</template>
</template>
<
script
>
<
script
>
import
{
solicitApi
}
from
'@/api'
import
{
Notify
}
from
'vant'
export
default
{
export
default
{
name
:
'CustomerInfoPopup'
,
name
:
'CustomerInfoPopup'
,
data
()
{
data
()
{
...
@@ -102,78 +109,87 @@ export default {
...
@@ -102,78 +109,87 @@ export default {
// 客户信息表
// 客户信息表
customerList
:
{
customerList
:
{
id
:
1
,
id
:
1
,
n
ame
:
'徐妹妹'
,
customerN
ame
:
'徐妹妹'
,
vinCode
:
'LFMAYACC5M029512'
,
vinCode
:
'LFMAYACC5M029512'
,
carBrand
:
'兰博基尼'
,
carNumber
:
'粤B 88888'
,
buyCarDate
:
'2021-04-20'
,
recentCare
:
'2022-05-16'
,
recentCare
:
'2022-05-16'
,
customerGroup
:
'定保招揽 N-6'
,
customerGroup
:
'定保招揽 N-6'
,
wechatNumber
:
'未添加'
,
wechatNumber
:
'未添加'
,
careRecord
:
[
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
],
maList
:
[
{
{
type
:
'保养项目保养项目AAA'
,
repairItems
:
'保养项目保养项目AAA'
,
cost
:
'240元'
,
price
:
'240元'
,
follow
Staff
:
'kuangge'
,
follow
er
:
'kuangge'
,
d
ate
:
'05-28 16:00'
maD
ate
:
'05-28 16:00'
},
},
{
{
type
:
'保养项目保养项目保养项目BB'
,
repairItems
:
'保养项目保养项目保养项目BB'
,
cost
:
'240元'
,
price
:
'240元'
,
follow
Staff
:
'kuangge'
,
follow
er
:
'kuangge'
,
d
ate
:
'05-28 16:00'
maD
ate
:
'05-28 16:00'
}
}
],
],
followRecord
:
[
followRecord
List
:
[
{
{
type
:
'预约到店'
,
followResult
:
'预约到店'
,
o
ppointment
Time
:
'2022-05-21'
,
o
rder
Time
:
'2022-05-21'
,
tips
:
''
,
followMark
:
''
,
dat
e
:
'05-28 16:00'
createdTim
e
:
'05-28 16:00'
},
},
{
{
type
:
'未接听'
,
followResult
:
'未接听'
,
o
ppointment
Time
:
''
,
o
rder
Time
:
''
,
tips
:
''
,
followMark
:
''
,
dat
e
:
'05-28 16:00'
createdTim
e
:
'05-28 16:00'
}
}
]
]
},
},
// 维保记录表
// 维保记录表
maintennceList
:
[
maintennceList
:
[
// {
// name: '保养项目A',
// price: '240元',
// followStaff: '续梅厄米',
// date: '05-28 16:00'
// },
// {
// name: '保养项目B',
// price: '240元',
// followStaff: '续梅厄米',
// date: '05-28 16:00'
// }
],
// 跟进记录表
recordList
:
[
{
{
name
:
'预约到店
'
,
repairItems
:
'保养项目保养项目AAA
'
,
recordDate
:
'2022-05-21
'
,
price
:
'240元
'
,
tips
:
'续梅厄米
'
,
follower
:
'kuangge
'
,
d
ate
:
'05-28 16:00'
maD
ate
:
'05-28 16:00'
},
},
{
{
name
:
'未接听
'
,
repairItems
:
'保养项目保养项目保养项目BB
'
,
recordDate
:
'
'
,
price
:
'240元
'
,
tips
:
'续梅厄米
'
,
follower
:
'kuangge
'
,
d
ate
:
'05-28 16:00'
maD
ate
:
'05-28 16:00'
}
}
]
]
}
}
},
},
methods
:
{
methods
:
{
init
()
{
init
(
val
)
{
console
.
log
(
val
)
this
.
showCustomerDetail
=
true
this
.
showCustomerDetail
=
true
this
.
getCustomerDetail
(
val
)
},
// 获取客户详情
getCustomerDetail
(
val
)
{
var
params
=
{
// customerId:
groupId
:
val
.
groupId
,
id
:
val
.
id
,
staffId
:
val
.
staffId
}
console
.
log
(
params
)
// solicitApi.getCustomerDetail().then(({ code, data, message }) => {
// if (code === 0) {
// this.customerList = data
// } else {
// Notify(message)
// }
// })
},
},
// 关闭弹窗
// 关闭弹窗
onCancel
()
{
onCancel
()
{
...
@@ -226,6 +242,18 @@ export default {
...
@@ -226,6 +242,18 @@ export default {
&
-content
{
&
-content
{
color
:
#333333
;
color
:
#333333
;
}
}
&
-message
{
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
line-height
:
18px
;
}
&
-wechat
{
color
:
#3975c6
;
}
&
-qiwei
{
color
:
#2cca74
;
}
}
}
.record
{
.record
{
margin-top
:
16px
;
margin-top
:
16px
;
...
...
src/views/solicit/statistic.vue
View file @
2f2afec
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div>
1. 客户开启消息免打扰,消息发送失败;
</div>
<div>
1. 客户开启消息免打扰,消息发送失败;
</div>
<div>
2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)
</div>
<div>
2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)
</div>
</div>
</div>
<customer-card
v-if=
"customerInfo1.length"
:customerInfo=
"customerInfo1"
:groupId=
"groupId
"
></customer-card>
<customer-card
v-if=
"customerInfo1.length"
:customerInfo=
"customerInfo1"
:groupId=
"groupId"
:groupName=
"groupName
"
></customer-card>
<empty
v-else
></empty>
<empty
v-else
></empty>
</scroll-view>
</scroll-view>
</van-tab>
</van-tab>
...
@@ -29,7 +29,8 @@
...
@@ -29,7 +29,8 @@
</div>
</div>
</div>
</div>
<select-bar
:index=
"alreadyIndex"
:list=
"selectBarList"
@
change=
"changeSelectTab"
></select-bar>
<select-bar
:index=
"alreadyIndex"
:list=
"selectBarList"
@
change=
"changeSelectTab"
></select-bar>
<customer-card
:customerInfo=
"customerInfo2"
></customer-card>
<customer-card
v-if=
"customerInfo1.length"
:customerInfo=
"customerInfo2"
:groupId=
"groupId"
:groupName=
"groupName"
></customer-card>
<empty
v-else
></empty>
</van-tab>
</van-tab>
</van-tabs>
</van-tabs>
</div>
</div>
...
@@ -41,6 +42,7 @@ import ScrollView from '../../components/ScrollView.vue'
...
@@ -41,6 +42,7 @@ import ScrollView from '../../components/ScrollView.vue'
import
SelectBar
from
'../../components/SelectBar.vue'
import
SelectBar
from
'../../components/SelectBar.vue'
import
{
solicitApi
}
from
'@/api'
import
{
solicitApi
}
from
'@/api'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
Notify
}
from
'vant'
export
default
{
export
default
{
components
:
{
SelectBar
,
Empty
,
ScrollView
},
components
:
{
SelectBar
,
Empty
,
ScrollView
},
data
()
{
data
()
{
...
@@ -67,7 +69,7 @@ export default {
...
@@ -67,7 +69,7 @@ export default {
customerInfo1
:
[
customerInfo1
:
[
{
{
id
:
1
,
id
:
1
,
n
ame
:
'崔美女'
,
customerN
ame
:
'崔美女'
,
followResult
:
'未接听'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
solicitTime
:
'05-07 15:30'
,
...
@@ -86,7 +88,7 @@ export default {
...
@@ -86,7 +88,7 @@ export default {
},
},
{
{
id
:
2
,
id
:
2
,
n
ame
:
'匡先生'
,
customerN
ame
:
'匡先生'
,
followResult
:
'未接听'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
solicitTime
:
'05-07 15:30'
,
...
@@ -105,7 +107,7 @@ export default {
...
@@ -105,7 +107,7 @@ export default {
},
},
{
{
id
:
3
,
id
:
3
,
n
ame
:
'xu先生'
,
customerN
ame
:
'xu先生'
,
followResult
:
'未接听'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
solicitTime
:
'05-07 15:30'
,
...
@@ -127,9 +129,9 @@ export default {
...
@@ -127,9 +129,9 @@ export default {
customerInfo2
:
[
customerInfo2
:
[
{
{
id
:
1
,
id
:
1
,
n
ame
:
'崔美女'
,
customerN
ame
:
'崔美女'
,
followResult
:
'未接听'
,
followResult
:
'未接听'
,
checkStatus
:
'
一查看
'
,
checkStatus
:
'
1
'
,
solicitTime
:
'05-07 15:30'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
''
,
phoneNumber
:
''
,
...
@@ -146,9 +148,9 @@ export default {
...
@@ -146,9 +148,9 @@ export default {
},
},
{
{
id
:
2
,
id
:
2
,
n
ame
:
'匡先生'
,
customerN
ame
:
'匡先生'
,
followResult
:
'未接听'
,
followResult
:
'未接听'
,
checkStatus
:
'
一查看
'
,
checkStatus
:
'
0
'
,
solicitTime
:
'05-07 15:30'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
phoneNumber
:
'18818188989'
,
...
@@ -165,9 +167,9 @@ export default {
...
@@ -165,9 +167,9 @@ export default {
},
},
{
{
id
:
3
,
id
:
3
,
n
ame
:
'xu先生'
,
customerN
ame
:
'xu先生'
,
followResult
:
'未接听'
,
followResult
:
'未接听'
,
checkStatus
:
'
一查看
'
,
checkStatus
:
'
1
'
,
solicitTime
:
'05-07 15:30'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
phoneNumber
:
'18818188989'
,
...
@@ -241,11 +243,14 @@ export default {
...
@@ -241,11 +243,14 @@ export default {
},
},
created
()
{
created
()
{
this
.
groupId
=
this
.
getQuery
().
groupId
?
this
.
getQuery
().
groupId
:
''
this
.
groupId
=
this
.
getQuery
().
groupId
?
this
.
getQuery
().
groupId
:
''
this
.
groupName
=
this
.
getQuery
().
groupName
?
this
.
getQuery
().
groupName
:
''
},
},
mounted
()
{
mounted
()
{
this
.
showLoading
()
this
.
showLoading
()
this
.
getSendCustomerList
(
0
)
//未送达
// 未送达
this
.
getSendCustomerList
(
1
)
//已送达
this
.
getSendCustomerList
(
0
)
// 已送达
this
.
getSendCustomerList
(
1
)
},
},
methods
:
{
methods
:
{
// tab栏切换
// tab栏切换
...
@@ -256,47 +261,37 @@ export default {
...
@@ -256,47 +261,37 @@ export default {
// this.deliveredStatistics()
// this.deliveredStatistics()
}
}
},
},
//已送达Tab四种状态
//
已送达Tab四种状态
changeSelectTab
(
e
)
{
changeSelectTab
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
this
.
alreadyIndex
=
e
this
.
alreadyIndex
=
e
this
.
getSendCustomerList
(
1
)
this
.
getSendCustomerList
(
1
)
},
},
// // 获取未送达客户信息
// 获取送达/未送达客户信息
// getUnSendCustomerList(index) {
// let target = ['customerInfo1', 'customerInfo2']
// // var params = { ...this.unSendPageParam }
// params.followFlag = 0
// // params.groupId =
// // params.id =
// // params.staffId =
// console.log(params)
// solicitApi.getCustomerList().then(res => {
// console.log(res)
// })
// },
// 获取送达客户信息
getSendCustomerList
(
index
)
{
getSendCustomerList
(
index
)
{
console
.
log
(
index
)
console
.
log
(
index
)
this
.
hideLoading
()
this
.
hideLoading
()
let
target
=
[
'customerInfo1'
,
'customerInfo2'
]
let
target
=
[
'customerInfo1'
,
'customerInfo2'
]
let
{
alreadyIndex
}
=
this
let
{
alreadyIndex
}
=
this
let
params
=
{
let
params
=
{
customerGroupType
:
2
,
customerGroupType
:
2
,
id
:
this
.
activityId
,
id
:
this
.
activityId
,
staffId
:
this
.
staffId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
,
groupId
:
this
.
groupId
,
sendStatus
:
index
//发送状态 0-未发送 1-已发送
// 发送状态 0-未发送 1-已发送
sendStatus
:
index
}
}
if
(
index
==
1
)
{
if
(
index
===
1
)
{
if
(
alreadyIndex
==
1
)
params
.
checkStatus
=
1
//0-未查看 1-已查看
// 0-未查看 1-已查看
if
(
alreadyIndex
==
2
)
params
.
receiveStatus
=
1
//0-未领取 1-已领取
if
(
alreadyIndex
===
1
)
params
.
checkStatus
=
1
if
(
alreadyIndex
==
3
)
params
.
retFacFlag
=
1
//0.未到店 1.已到店
// 0-未领取 1-已领取
if
(
alreadyIndex
===
2
)
params
.
receiveStatus
=
1
// 0.未到店 1.已到店
if
(
alreadyIndex
===
3
)
params
.
retFacFlag
=
1
}
}
console
.
log
(
params
)
console
.
log
(
params
)
// solicitApi.getCustomerList().then(({ code, data, message }) => {
// solicitApi.getCustomerList().then(({ code, data, message }) => {
// if (code == 0) {
// if (code ==
=
0) {
// this.target[index] = data
// this.target[index] = data
// } else {
// } else {
// Notify(message)
// Notify(message)
...
@@ -311,7 +306,7 @@ export default {
...
@@ -311,7 +306,7 @@ export default {
groupId
:
this
.
groupId
groupId
:
this
.
groupId
}
}
solicitApi
.
deliveredStatistics
({
params
}).
then
(({
code
,
data
,
message
})
=>
{
solicitApi
.
deliveredStatistics
({
params
}).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
if
(
code
==
=
0
)
{
this
.
deliveredData
=
data
this
.
deliveredData
=
data
}
}
})
})
...
@@ -322,7 +317,7 @@ export default {
...
@@ -322,7 +317,7 @@ export default {
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
this
.
$refs
.
scrollView
.
finished
=
true
// 未送达页面
// 未送达页面
if
(
this
.
tabIndex
==
0
)
{
if
(
this
.
tabIndex
==
=
0
)
{
this
.
unSendPageParam
.
pageNum
++
this
.
unSendPageParam
.
pageNum
++
return
return
}
}
...
...
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