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 38ecd6a2
authored
Jun 17, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'wangzh_dev_2.3.3' into 'v2.3.3'
commit See merge request
!67
2 parents
7e5d8ee8
f031600c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
10 deletions
src/components/CustomerCard.vue
src/views/solicit/lookCustomer.vue
src/views/solicit/statistic.vue
src/components/CustomerCard.vue
View file @
38ecd6a
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</div>
</div>
</div>
</div>
<!-- 电话营销弹窗 -->
<!-- 电话营销弹窗 -->
<
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"
/>
--
>
</div>
</div>
</
template
>
</
template
>
...
@@ -127,14 +127,15 @@ export default {
...
@@ -127,14 +127,15 @@ export default {
},
},
// 电话招揽
// 电话招揽
callCustomer
(
val
)
{
callCustomer
(
val
)
{
//
console.log(val)
console
.
log
(
val
)
if
(
!
val
.
phoneNumber
)
{
if
(
!
val
.
phoneNumber
)
{
Toast
(
'系统尚未查询到该用户的电话号码'
)
Toast
(
'系统尚未查询到该用户的电话号码'
)
return
return
}
}
this
.
phoneNumber
=
val
.
phoneNumber
this
.
phoneNumber
=
val
.
phoneNumber
// 打开电话营销弹窗
// 打开电话营销弹窗
this
.
show
=
true
// this.show = true
this
.
$emit
(
'showAction'
,
{
phoneNumber
:
this
.
phoneNumber
})
},
},
// 选择电话营销方式
// 选择电话营销方式
onSelect
(
e
)
{
onSelect
(
e
)
{
...
...
src/views/solicit/lookCustomer.vue
View file @
38ecd6a
...
@@ -11,13 +11,14 @@
...
@@ -11,13 +11,14 @@
<drop-down
:selectOption1=
"statusList"
:selectOption2=
"resultList"
:currentValue1=
"status"
:currentValue2=
"result"
@
changeFirst=
"changeFirst"
@
changeSecond=
"selectSecondChange"
></drop-down>
<drop-down
:selectOption1=
"statusList"
:selectOption2=
"resultList"
:currentValue1=
"status"
:currentValue2=
"result"
@
changeFirst=
"changeFirst"
@
changeSecond=
"selectSecondChange"
></drop-down>
</div>
</div>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<customer-card
v-if=
"customerInfo.length > 0"
:customerInfo=
"customerInfo"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
></customer-card>
<customer-card
v-if=
"customerInfo.length > 0"
:customerInfo=
"customerInfo"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
@
showAction=
"showAction"
></customer-card>
<empty
v-else
></empty>
<empty
v-else
></empty>
</scroll-view>
</scroll-view>
<!-- 跟进弹窗 -->
<!-- 跟进弹窗 -->
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
@
changeIndexEvent=
"changeIndexEvent"
></customer-follow-popup>
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
@
changeIndexEvent=
"changeIndexEvent"
></customer-follow-popup>
<!-- 客户信息弹窗 -->
<!-- 客户信息弹窗 -->
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
<van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -27,6 +28,10 @@ import { Notify } from 'vant'
...
@@ -27,6 +28,10 @@ import { Notify } from 'vant'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
// 电话营销弹窗
show
:
false
,
actions
:
[{
name
:
'呼叫'
},
{
name
:
'复制'
}],
phoneNumber
:
''
,
flag
:
false
,
flag
:
false
,
keyWord
:
''
,
keyWord
:
''
,
status
:
0
,
status
:
0
,
...
@@ -66,6 +71,26 @@ export default {
...
@@ -66,6 +71,26 @@ export default {
this
.
getSendCustomerList
()
this
.
getSendCustomerList
()
},
},
methods
:
{
methods
:
{
// 初始化微信接口
initWx
()
{
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'setClipboardData'
,
'navigateToAddCustomer'
,
'openEnterpriseChat'
,
'makePhoneCall'
]).
then
(()
=>
{})
},
// 电话招揽弹窗关闭
onCancel
()
{
this
.
show
=
false
},
// 选择电话营销方式
onSelect
(
e
)
{
// 呼叫
if
(
e
.
name
===
'呼叫'
)
{
// window.location.href = 'tel://' + this.telNumber
this
.
makePhoneCall
(
this
.
phoneNumber
)
return
}
// 复制
this
.
setClipboardData
(
this
.
phoneNumber
)
},
showFollowPop
(
data
)
{
showFollowPop
(
data
)
{
this
.
$refs
.
customerFollowRef
.
init
()
this
.
$refs
.
customerFollowRef
.
init
()
this
.
customerIndex
=
data
.
customerIndex
this
.
customerIndex
=
data
.
customerIndex
...
@@ -74,6 +99,10 @@ export default {
...
@@ -74,6 +99,10 @@ export default {
showInfoPop
(
data
)
{
showInfoPop
(
data
)
{
this
.
$refs
.
customerInfoRef
.
getCustomerDetail
(
data
.
followCustomerData
)
this
.
$refs
.
customerInfoRef
.
getCustomerDetail
(
data
.
followCustomerData
)
},
},
showAction
(
data
)
{
this
.
show
=
true
this
.
phoneNumber
=
data
.
phoneNumber
},
changeIndexEvent
()
{
changeIndexEvent
()
{
let
params
=
{
let
params
=
{
customerId
:
this
.
followCustomerData
.
actCutId
customerId
:
this
.
followCustomerData
.
actCutId
...
...
src/views/solicit/statistic.vue
View file @
38ecd6a
...
@@ -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 > 0"
:customerInfo=
"customerInfo1"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
></customer-card>
<customer-card
v-if=
"customerInfo1.length > 0"
:customerInfo=
"customerInfo1"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
@
showAction=
"showAction"
></customer-card>
<empty
v-else
></empty>
<empty
v-else
></empty>
</scroll-view>
</scroll-view>
</van-tab>
</van-tab>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
</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
v-if=
"customerInfo2.length > 0"
:customerInfo=
"customerInfo2"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
></customer-card>
<customer-card
v-if=
"customerInfo2.length > 0"
:customerInfo=
"customerInfo2"
@
showFollowPop=
"showFollowPop"
@
showInfoPop=
"showInfoPop"
@
showAction=
"showAction"
></customer-card>
<empty
v-else
></empty>
<empty
v-else
></empty>
</van-tab>
</van-tab>
</van-tabs>
</van-tabs>
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
@
changeIndexEvent=
"changeIndexEvent"
></customer-follow-popup>
<customer-follow-popup
ref=
"customerFollowRef"
:info=
"followCustomerData"
@
changeIndexEvent=
"changeIndexEvent"
></customer-follow-popup>
<!-- 客户信息弹窗 -->
<!-- 客户信息弹窗 -->
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
<customer-info-popup
ref=
"customerInfoRef"
></customer-info-popup>
<van-action-sheet
v-model:show=
"show"
:actions=
"actions"
@
select=
"onSelect"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
/>
</div>
</div>
</template>
</template>
...
@@ -54,6 +55,10 @@ export default {
...
@@ -54,6 +55,10 @@ export default {
components
:
{
SelectBar
,
Empty
,
ScrollView
},
components
:
{
SelectBar
,
Empty
,
ScrollView
},
data
()
{
data
()
{
return
{
return
{
// 电话营销弹窗
show
:
false
,
actions
:
[{
name
:
'呼叫'
},
{
name
:
'复制'
}],
phoneNumber
:
''
,
tabIndex
:
0
,
tabIndex
:
0
,
alreadyIndex
:
0
,
alreadyIndex
:
0
,
deliveredNum
:
0
,
deliveredNum
:
0
,
...
@@ -146,6 +151,30 @@ export default {
...
@@ -146,6 +151,30 @@ export default {
this
.
getSendCustomerList
(
1
)
// 已送达
this
.
getSendCustomerList
(
1
)
// 已送达
},
},
methods
:
{
methods
:
{
// 初始化微信接口
initWx
()
{
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'setClipboardData'
,
'navigateToAddCustomer'
,
'openEnterpriseChat'
,
'makePhoneCall'
]).
then
(()
=>
{})
},
// 电话招揽弹窗关闭
onCancel
()
{
this
.
show
=
false
},
// 选择电话营销方式
onSelect
(
e
)
{
// 呼叫
if
(
e
.
name
===
'呼叫'
)
{
// window.location.href = 'tel://' + this.telNumber
this
.
makePhoneCall
(
this
.
phoneNumber
)
return
}
// 复制
this
.
setClipboardData
(
this
.
phoneNumber
)
},
showAction
(
data
)
{
this
.
show
=
true
this
.
phoneNumber
=
data
.
phoneNumber
},
staffSendStatus
()
{
staffSendStatus
()
{
let
params
=
{
let
params
=
{
// id: 65,
// id: 65,
...
@@ -206,10 +235,14 @@ export default {
...
@@ -206,10 +235,14 @@ export default {
let
{
alreadyIndex
}
=
this
let
{
alreadyIndex
}
=
this
let
params
=
{
let
params
=
{
customerGroupType
:
2
,
customerGroupType
:
2
,
id
:
this
.
activityId
,
id
:
86
,
staffId
:
this
.
staffId
,
staffId
:
26816
,
groupId
:
this
.
groupId
,
groupId
:
112
,
sendStatus
:
index
// 发送状态 0-未发送 1-已发送
sendStatus
:
1
,
// id: this.activityId,
// staffId: this.staffId,
// groupId: this.groupId,
// sendStatus: index // 发送状态 0-未发送 1-已发送
}
}
if
(
index
===
1
)
{
if
(
index
===
1
)
{
// 0-未查看 1-已查看
// 0-未查看 1-已查看
...
...
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