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 2a9d19c6
authored
Jun 07, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
触达接口联调
1 parent
a059dafe
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
63 deletions
src/components/CustomerCard.vue
src/components/CustomerFollowPopup.vue
src/components/CustomerInfoPopup.vue
src/config/env.development.js
src/views/solicit/overview.vue
src/views/solicit/statistic.vue
src/components/CustomerCard.vue
View file @
2a9d19c
...
...
@@ -24,7 +24,7 @@
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-name"
>
企微账号:
</div>
<div
v-if=
"item.wechatnick"
>
<span
class=
"customer-info-message"
>
{{
item
.
wechatnick
}}
</span>
<span
class=
"customer-info-message
customer-info-wechatnick text-hide
"
>
{{
item
.
wechatnick
}}
</span>
<span
class=
"customer-info-wechat customer-info-message"
v-if=
"item.type == 1"
>
@微信
</span>
<span
class=
"customer-info-qiwechat customer-info-message"
v-else
>
@企微
</span>
</div>
...
...
@@ -72,7 +72,7 @@ export default {
}
},
groupId
:
{
type
:
Number
,
type
:
String
,
default
:
()
=>
{
return
null
}
...
...
@@ -146,7 +146,7 @@ export default {
followCustomer
(
val
)
{
console
.
log
(
val
)
this
.
followCustomerData
=
val
this
.
$refs
.
customerFollowRef
.
init
()
this
.
$refs
.
customerFollowRef
.
init
(
val
)
},
// 客户详情
sendMessage
(
val
)
{
...
...
@@ -224,10 +224,16 @@ export default {
color
:
#333333
;
line-height
:
18px
;
}
.customer-info-wechatnick
{
display
:
inline-block
;
max-width
:
58px
;
}
.customer-info-wechat
{
vertical-align
:
bottom
;
color
:
#3975c6
;
}
.customer-info-qiwechat
{
vertical-align
:
bottom
;
color
:
#2cca74
;
}
</
style
>
src/components/CustomerFollowPopup.vue
View file @
2a9d19c
...
...
@@ -2,7 +2,7 @@
<div>
<van-action-sheet
v-model=
"show"
>
<van-sticky
class=
"name-title"
>
<div
class=
"name-title-text"
>
{{
info
.
name
}}
</div>
<div
class=
"name-title-text"
>
xxx
</div>
</van-sticky>
<div
class=
"follow-content"
>
<!--
<div
class=
"name-title"
>
...
...
@@ -13,8 +13,8 @@
<van-field
name=
"跟进结果"
label=
"跟进结果"
class=
"field-bottom"
>
<template
#
input
>
<div
class=
"follow-list"
>
<div
class=
"follow-list-
item
"
v-for=
"item in followResultList"
:key=
"item.dictValue"
@
click=
"selectFollow(item)"
>
<div
:class=
"item.dictValue == selectFollowForm.followResult ? 'follow-list-item-select' : ''"
>
{{
item
.
dictLabel
}}
</div>
<div
class=
"follow-list-
tag
"
v-for=
"item in followResultList"
:key=
"item.dictValue"
@
click=
"selectFollow(item)"
>
<div
:class=
"item.dictValue == selectFollowForm.followResult ? 'follow-list-item-select' : '
follow-list-item
'"
>
{{
item
.
dictLabel
}}
</div>
</div>
</div>
</
template
>
...
...
@@ -61,7 +61,7 @@
</template>
<
script
>
import
{
Toast
}
from
'vant'
import
{
Toast
,
Notify
}
from
'vant'
import
{
mapState
}
from
'vuex'
import
{
solicitApi
}
from
'@/api'
export
default
{
...
...
@@ -101,10 +101,10 @@ export default {
}
},
props
:
{
info
:
{
type
:
Object
,
default
:
()
=>
{}
},
//
info: {
//
type: Object,
//
default: () => {}
//
},
groupId
:
{
type
:
String
,
default
:
''
...
...
@@ -118,7 +118,8 @@ export default {
})
},
methods
:
{
init
()
{
init
(
val
)
{
// this.customerName = val.customerName
console
.
log
(
this
.
followResultList
)
console
.
log
(
this
.
activityId
)
this
.
show
=
true
...
...
@@ -191,7 +192,7 @@ export default {
}
if
(
this
.
selectFollowForm
.
followResult
==
1
)
params
.
orderTime
=
this
.
selectFollowForm
.
orderTime
console
.
log
(
params
)
solicitApi
.
sendSolicitRecord
().
then
(({
code
,
data
,
message
})
=>
{
solicitApi
.
sendSolicitRecord
(
{
params
}
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
Toast
(
'提交成功'
)
this
.
initFormData
()
...
...
@@ -200,7 +201,7 @@ export default {
}
})
},
//数据清空
//
数据清空
initFormData
()
{
this
.
selectFollowForm
=
{
followResult
:
''
,
...
...
@@ -270,21 +271,23 @@ export default {
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-around
;
&-
item
{
&-
tag
{
width
:
80px
;
height
:
28px
;
margin-bottom
:
8px
;
text-align
:
center
;
line-height
:
28px
;
}
&
-item
{
background
:
#ffffff
;
border-radius
:
14px
;
border
:
1px
solid
#dadde0
;
text-align
:
center
;
line-height
:
28px
;
}
&
-item-select
{
color
:
#3975c6
;
border-radius
:
14px
;
background
:
rgba
(
57
,
117
,
198
,
0.1
);
border
:
none
;
border
:
1px
solid
transparent
;
}
}
.item
{
...
...
@@ -340,12 +343,12 @@ export default {
.van-sheet-gap
{
height
:
8px
;
background-color
:
#f7f8fa
;
margin-bottom
:
40px
;
margin-bottom
:
40px
;
}
.btn-group
{
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
}
.dialog-follow
/
deep
/
.van-field__label
{
width
:
60px
!important
;
...
...
src/components/CustomerInfoPopup.vue
View file @
2a9d19c
...
...
@@ -212,7 +212,7 @@ export default {
&-text
{
font-size
:
16px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
5
00
;
font-weight
:
6
00
;
color
:
#333333
;
line-height
:
48px
;
}
...
...
@@ -227,6 +227,7 @@ export default {
font-weight
:
400
;
color
:
#333333
;
line-height
:
22px
;
margin-bottom
:
12px
;
}
.customer-info-item
{
display
:
flex
;
...
...
@@ -272,8 +273,8 @@ export default {
width
:
1px
;
background
:
#e6e8eb
;
position
:
absolute
;
left
:
8
px
;
top
:
4
px
;
left
:
10
px
;
top
:
20
px
;
}
.stepBox
{
width
:
90%
;
...
...
@@ -284,7 +285,7 @@ export default {
&-name
{
font-size
:
14px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
5
00
;
font-weight
:
6
00
;
color
:
#333333
;
line-height
:
22px
;
}
...
...
src/config/env.development.js
View file @
2a9d19c
...
...
@@ -8,10 +8,10 @@
*/
// 本地环境配置
module
.
exports
=
{
envVersion
:
"develop"
,
envVersion
:
'develop'
,
title
:
'嘀加企微管家'
,
request
:
{
baseURL
:
'http://scrm.
test
.glsx.com.cn'
,
// 本地测试项目地址,
baseURL
:
'http://scrm.
dev
.glsx.com.cn'
,
// 本地测试项目地址,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
@@ -28,14 +28,14 @@ module.exports = {
logout_function
:
'reLogin'
,
code_message_map
:
{}
},
secret
:
"c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b"
,
shopmall_appid
:
"wxe10067a63c1856ac"
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
,
shopmall_appid
:
'wxe10067a63c1856ac'
,
sign
:
{
appKey
:
"48e5e13229b82c1b4e6e8c96151f0637"
,
format
:
"json"
,
locale
:
"zh_CN"
,
source
:
"scrm-main"
,
v
:
"1.0.0"
,
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
format
:
'json'
,
locale
:
'zh_CN'
,
source
:
'scrm-main'
,
v
:
'1.0.0'
},
vconsole
:
true
}
\ No newline at end of file
}
src/views/solicit/overview.vue
View file @
2a9d19c
...
...
@@ -47,7 +47,7 @@
import
pieChart
from
'../solicit/components/pie.vue'
import
barChart
from
'../solicit/components/bar.vue'
import
{
solicitApi
}
from
'@/api'
import
{
mapState
}
from
'vuex'
export
default
{
components
:
{
pieChart
,
...
...
@@ -101,16 +101,24 @@ export default {
}
}
},
computed
:
{
...
mapState
({
activityId
:
state
=>
state
.
solicit
.
activityId
,
staffId
:
state
=>
state
.
solicit
.
staffId
})
},
created
()
{
this
.
bulletinList
=
this
.
$constants
.
BULLETINLIST
//
this.getTaskOverviewData()
this
.
initChartData
()
this
.
getTaskOverviewData
()
//
this.initChartData()
},
methods
:
{
getTaskOverviewData
()
{
let
params
=
{
activityId
:
this
.
activityId
,
staffId
:
this
.
staffId
// activityId: this.activityId,
activityId
:
1
,
// staffId: this.staffId
staffId
:
363
}
this
.
showLoading
()
solicitApi
.
taskOverviewData
(
params
).
then
(({
code
,
data
,
message
})
=>
{
...
...
src/views/solicit/statistic.vue
View file @
2a9d19c
...
...
@@ -23,7 +23,7 @@
<div
class=
"circle"
:style=
"
{ background: status.color }">
</div>
{{
status
.
text
}}
<span
class=
"font-16 color-3 m-l-8 bold"
>
{{
status
.
value
(
deliveredData
)
}}
</span>
<span
class=
"font-10 color39 m-l-4 fw5"
>
(
{{
(
Number
(
status
.
value
(
deliveredData
))
/
Number
(
status
.
proportion
(
deliveredData
)))
*
100
}}
%)
</span>
<span
class=
"font-10 color39 m-l-4 fw5"
>
(
{{
(
(
Number
(
status
.
value
(
deliveredData
))
/
Number
(
status
.
proportion
(
deliveredData
)))
*
100
).
toFixed
(
2
)
}}
%)
</span>
</div>
</
template
>
</div>
...
...
@@ -155,7 +155,7 @@ export default {
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
type
:
2
,
wechatnick
:
'横穿'
,
wechatnick
:
'横
公司高峰期
穿'
,
cars
:
[
{
customerId
:
0
,
...
...
@@ -186,10 +186,10 @@ export default {
}
],
deliveredData
:
{
delivered
:
'2000'
,
viewed
:
'1600'
,
received
:
'800'
,
arrived
:
'400'
//
delivered: '2000',
//
viewed: '1600',
//
received: '800',
//
arrived: '400'
},
reachStatus
:
[
{
...
...
@@ -251,6 +251,8 @@ export default {
this
.
getSendCustomerList
(
0
)
// 已送达
this
.
getSendCustomerList
(
1
)
// 触达统计-客户送达分层
this
.
deliveredStatistics
()
},
methods
:
{
// tab栏切换
...
...
@@ -274,10 +276,13 @@ export default {
let
target
=
[
'customerInfo1'
,
'customerInfo2'
]
let
{
alreadyIndex
}
=
this
let
params
=
{
customerGroupType
:
2
,
id
:
this
.
activityId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
,
customerGroupType
:
1
,
// id: this.activityId,
id
:
3
,
// staffId: this.staffId,
staffId
:
363
,
// groupId: this.groupId,
groupId
:
527
,
// 发送状态 0-未发送 1-已发送
sendStatus
:
index
}
...
...
@@ -290,24 +295,26 @@ export default {
if
(
alreadyIndex
===
3
)
params
.
retFacFlag
=
1
}
console
.
log
(
params
)
// solicitApi.getCustomerList().then(({ code, data, message }) => {
// if (code === 0) {
// this.target[index] = data
// } else {
// Notify(message)
// }
// })
solicitApi
.
getCustomerList
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
this
.
target
[
index
]
=
data
}
})
},
// 客户送达分层
deliveredStatistics
()
{
let
params
=
{
id
:
this
.
activityId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
// id: this.activityId,
id
:
3
,
// staffId: this.staffId,
staffId
:
363
,
// groupId: this.groupId
groupId
:
527
}
solicitApi
.
deliveredStatistics
(
{
params
}
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
=
0
)
{
solicitApi
.
deliveredStatistics
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
this
.
deliveredData
=
data
console
.
log
(
this
.
deliveredData
,
'------'
)
}
})
},
...
...
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