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 8fc6aee2
authored
Jun 11, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'wangzh_dev_2.3.3' into 'v2.3.3'
Wangzh dev 2.3.3 See merge request
!51
2 parents
62803f23
fe936f0d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
87 additions
and
35 deletions
src/api/solicit.js
src/components/CustomerFollowPopup.vue
src/views/solicit/follow.vue
src/views/solicit/overview.vue
src/views/solicit/statistic.vue
src/views/solicit/succeed.vue
src/api/solicit.js
View file @
8fc6aee
...
@@ -9,11 +9,11 @@ const url = '/rop-scrm-marketing/router'
...
@@ -9,11 +9,11 @@ const url = '/rop-scrm-marketing/router'
export
default
{
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
:
window
.
$fetchConfig
.
dict
,
url
:
window
.
$fetchConfig
.
dict
,
data
,
data
,
returnAll
:
true
returnAll
:
true
})
})
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
returnAll
:
true
returnAll
:
true
})
})
},
},
// 客户招揽-任务总览
// 客户招揽-任务总览
taskOverviewData
(
data
)
{
taskOverviewData
(
data
)
{
data
.
method
=
'marketing.api.solicit.taskOverview'
data
.
method
=
'marketing.api.solicit.taskOverview'
...
@@ -83,6 +83,15 @@ export default {
...
@@ -83,6 +83,15 @@ export default {
returnAll
:
true
returnAll
:
true
})
})
},
},
// 一键营销-员工发送状态判断
staffSendStatus
(
data
)
{
data
.
method
=
'marketing.api.solicit.ocmarketing.staff.sendStatus'
return
window
.
$HTTP
({
url
,
data
,
returnAll
:
true
})
},
// 获取送达、未送达列表
// 获取送达、未送达列表
getCustomerList
(
data
)
{
getCustomerList
(
data
)
{
...
@@ -111,22 +120,22 @@ export default {
...
@@ -111,22 +120,22 @@ export default {
returnAll
:
true
returnAll
:
true
})
})
},
},
// 跟进结果-成功到店与战败分析
// 跟进结果-成功到店与战败分析
getFollowResult
(
data
)
{
getFollowResult
(
data
)
{
data
.
method
=
'marketing.api.solicit.staffid.getFollowResult'
data
.
method
=
'marketing.api.solicit.staffid.getFollowResult'
return
window
.
$HTTP
({
return
window
.
$HTTP
({
url
,
url
,
data
,
data
,
returnAll
:
true
returnAll
:
true
})
})
},
},
// 跟进结果-成功到店与战败分析
// 跟进结果-成功到店与战败分析
getCustomerFollowTotal
(
data
)
{
getCustomerFollowTotal
(
data
)
{
data
.
method
=
'marketing.api.solicit.staffid.getCustomerFollowTotal'
data
.
method
=
'marketing.api.solicit.staffid.getCustomerFollowTotal'
return
window
.
$HTTP
({
return
window
.
$HTTP
({
url
,
url
,
data
,
data
,
returnAll
:
true
returnAll
:
true
})
})
}
}
}
}
src/components/CustomerFollowPopup.vue
View file @
8fc6aee
<
template
>
<
template
>
<div>
<div>
<van-action-sheet
v-model=
"show"
>
<van-action-sheet
v-model=
"show"
@
click-overlay=
"clickOverlay"
>
<van-sticky
class=
"name-title"
>
<van-sticky
class=
"name-title"
>
<div
class=
"name-title-text"
>
{{
info
.
customerName
}}
</div>
<div
class=
"name-title-text"
>
{{
info
.
customerName
}}
</div>
</van-sticky>
</van-sticky>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<van-switch
v-model=
"selectFollowForm.checked"
active-color=
"#3975C6"
size=
"24px"
/>
<van-switch
v-model=
"selectFollowForm.checked"
active-color=
"#3975C6"
size=
"24px"
/>
</
template
>
</
template
>
</van-field>
</van-field>
<div
class=
"continue-follow-text field-bottom"
>
若「打开」表示该客户暂未战败,仍需再次招揽; 若「关闭」表示该客户信息将从「
待跟进」迁移至「已跟进
」列表。
</div>
<div
class=
"continue-follow-text field-bottom"
>
若「打开」表示该客户暂未战败,仍需再次招揽; 若「关闭」表示该客户信息将从「
跟进」迁移至「结果
」列表。
</div>
<van-field
<van-field
v-show=
"selectFollowForm.followResult == 1"
v-show=
"selectFollowForm.followResult == 1"
v-model=
"selectFollowForm.orderTime"
v-model=
"selectFollowForm.orderTime"
...
@@ -56,7 +56,16 @@
...
@@ -56,7 +56,16 @@
:style=
"{ height: '500px' }"
:style=
"{ height: '500px' }"
@
select=
"selectDate"
@
select=
"selectDate"
/>
/>
<van-datetime-picker
type=
"time"
:default-time=
"defaultTime"
v-model=
"defaultTime"
v-show=
"tabIndex"
@
change=
"confirmTime"
:min-hour=
"minHour"
:show-toolbar=
"false"
/>
<van-datetime-picker
type=
"time"
:default-time=
"defaultTime"
v-model=
"defaultTime"
v-show=
"tabIndex"
@
change=
"confirmTime"
:min-hour=
"minHour"
:min-minute=
"minMinute"
:show-toolbar=
"false"
/>
</div>
</div>
</van-cell-group>
</van-cell-group>
</van-form>
</van-form>
...
@@ -108,10 +117,11 @@ export default {
...
@@ -108,10 +117,11 @@ export default {
timeNow
:
''
,
timeNow
:
''
,
// 时间标签可选最小时间
// 时间标签可选最小时间
minHour
:
''
,
minHour
:
''
,
minMinute
:
''
,
// 默认日期
// 默认日期
defaultDate
:
''
,
defaultDate
:
''
,
// 默认时间
// 默认时间
defaultTime
:
''
,
defaultTime
:
''
}
}
},
},
props
:
{
props
:
{
...
@@ -172,12 +182,15 @@ export default {
...
@@ -172,12 +182,15 @@ export default {
cancel
()
{
cancel
()
{
this
.
initFormData
()
this
.
initFormData
()
},
},
clickOverlay
()
{
this
.
initFormData
()
},
// 提交按钮
// 提交按钮
submit
()
{
submit
()
{
let
params
=
{
let
params
=
{
followResult
:
this
.
selectFollowForm
.
followResult
,
followResult
:
this
.
selectFollowForm
.
followResult
,
followMark
:
this
.
selectFollowForm
.
followMark
,
followMark
:
this
.
selectFollowForm
.
followMark
,
followFlag
:
this
.
selectFollowForm
.
checked
?
1
:
0
,
followFlag
:
this
.
selectFollowForm
.
checked
?
0
:
1
,
activityId
:
this
.
activityId
,
activityId
:
this
.
activityId
,
staffId
:
this
.
staffId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
,
groupId
:
this
.
groupId
,
...
@@ -221,6 +234,7 @@ export default {
...
@@ -221,6 +234,7 @@ export default {
},
},
// 日期格式转化
// 日期格式转化
formatterDate
(
val
,
type
)
{
formatterDate
(
val
,
type
)
{
const
dateNow
=
new
Date
(
new
Date
().
getTime
()
+
(
parseInt
(
new
Date
().
getTimezoneOffset
()
/
60
)
+
8
)
*
3600
*
1000
)
let
date
=
new
Date
(
val
)
let
date
=
new
Date
(
val
)
let
y
=
date
.
getFullYear
()
let
y
=
date
.
getFullYear
()
let
m
=
date
.
getMonth
()
+
1
let
m
=
date
.
getMonth
()
+
1
...
@@ -228,19 +242,23 @@ export default {
...
@@ -228,19 +242,23 @@ export default {
let
h
=
date
.
getHours
()
let
h
=
date
.
getHours
()
let
h1
=
h
<
10
?
'0'
+
h
:
h
let
h1
=
h
<
10
?
'0'
+
h
:
h
let
d
=
date
.
getDate
()
let
d
=
date
.
getDate
()
let
s
=
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
()
d
=
d
<
10
?
'0'
+
d
:
d
d
=
d
<
10
?
'0'
+
d
:
d
const
time
=
y
+
'-'
+
m
+
'-'
+
d
const
time
=
y
+
'-'
+
m
+
'-'
+
d
this
.
datePickList
[
0
].
date
=
time
this
.
datePickList
[
0
].
date
=
time
//初始化当天的最小时分
if
(
!
type
)
{
if
(
!
type
)
{
this
.
dayNow
=
time
this
.
dayNow
=
time
this
.
timeNow
=
h1
+
1
this
.
timeNow
=
h1
}
}
if
(
this
.
dayNow
==
time
)
{
if
(
this
.
dayNow
==
time
)
{
this
.
datePickList
[
1
].
date
=
this
.
timeNow
+
':00'
this
.
minMinute
=
dateNow
.
getMinutes
()
<
10
?
'0'
+
dateNow
.
getMinutes
()
:
dateNow
.
getMinutes
()
this
.
datePickList
[
1
].
date
=
this
.
timeNow
+
':'
+
this
.
minMinute
this
.
minHour
=
this
.
timeNow
this
.
minHour
=
this
.
timeNow
return
return
}
}
this
.
minHour
=
''
this
.
minHour
=
''
this
.
minMinute
=
''
}
}
}
}
}
}
...
...
src/views/solicit/follow.vue
View file @
8fc6aee
...
@@ -10,11 +10,9 @@
...
@@ -10,11 +10,9 @@
</div>
</div>
<tab-customer
:list=
"['企微营销', '电话招揽']"
@
change=
"changeFollow"
:index=
"follewIndex"
>
<tab-customer
:list=
"['企微营销', '电话招揽']"
@
change=
"changeFollow"
:index=
"follewIndex"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<
template
<
template
v-if=
"solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0"
>
v-if=
"solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0"
>
<div
class=
"follow-content"
>
<div
class=
"follow-content"
>
<div
class=
"follow-content-item m-b-12"
v-for=
"(item, index) in solicitationFollowData.weComMarketingList"
<div
class=
"follow-content-item m-b-12"
v-for=
"(item, index) in solicitationFollowData.weComMarketingList"
:key=
"index"
>
:key=
"index"
>
<div
class=
"follow-content-item-top"
>
<div
class=
"follow-content-item-top"
>
<div
class=
"font-16 color-3 fw5 text-hide"
>
{{
item
.
groupName
}}
</div>
<div
class=
"font-16 color-3 fw5 text-hide"
>
{{
item
.
groupName
}}
</div>
<div
class=
"m-t-8 flex-between fw7"
>
<div
class=
"m-t-8 flex-between fw7"
>
...
@@ -127,7 +125,8 @@ export default {
...
@@ -127,7 +125,8 @@ export default {
.follow-statistics
{
.follow-statistics
{
background
:
#fff
;
background
:
#fff
;
height
:
82px
;
height
:
82px
;
box-shadow
:
0px
3px
10px
0px
rgba
(
223
,
228
,
234
,
0.81
);
border-radius
:
4px
;
&-single
{
&-single
{
padding
:
12px
0
;
padding
:
12px
0
;
width
:
33.3%
;
width
:
33.3%
;
...
...
src/views/solicit/overview.vue
View file @
8fc6aee
...
@@ -155,7 +155,7 @@ export default {
...
@@ -155,7 +155,7 @@ export default {
]
]
this
.
chart
.
centerData
=
{
this
.
chart
.
centerData
=
{
text
:
'达成率'
,
text
:
'达成率'
,
rate
:
overviewInfo
.
followedUpPercent
rate
:
overviewInfo
.
followedUpPercent
?
(
overviewInfo
.
followedUpPercent
*
100
)
+
'%'
:
0
}
}
overviewInfo
.
customerGroupList
.
length
>
0
&&
overviewInfo
.
customerGroupList
.
length
>
0
&&
overviewInfo
.
customerGroupList
.
forEach
(
item
=>
{
overviewInfo
.
customerGroupList
.
forEach
(
item
=>
{
...
@@ -173,7 +173,8 @@ export default {
...
@@ -173,7 +173,8 @@ export default {
.overview-container
{
.overview-container
{
.overview-wrap
{
.overview-wrap
{
background
:
#fff
;
background
:
#fff
;
box-shadow
:
0px
3px
10px
0px
rgba
(
223
,
228
,
234
,
0.81
);
border-radius
:
4px
;
.overview-content
{
.overview-content
{
height
:
160px
;
height
:
160px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
...
src/views/solicit/statistic.vue
View file @
8fc6aee
...
@@ -137,12 +137,35 @@ export default {
...
@@ -137,12 +137,35 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
showLoading
()
this
.
showLoading
()
//员工发送状态判断
this
.
staffSendStatus
()
// 触达统计-客户送达分层
// 触达统计-客户送达分层
this
.
deliveredStatistics
()
this
.
deliveredStatistics
()
this
.
getSendCustomerList
(
0
)
// 未送达
this
.
getSendCustomerList
(
0
)
// 未送达
this
.
getSendCustomerList
(
1
)
// 已送达
this
.
getSendCustomerList
(
1
)
// 已送达
},
},
methods
:
{
methods
:
{
staffSendStatus
()
{
let
params
=
{
// id: 65,
// staffId: 67,
// groupId: 26816
id
:
this
.
activityId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
}
solicitApi
.
staffSendStatus
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
if
(
data
.
createFlag
==
0
)
{
Notify
(
'营销活动尚未创建,请创建一键营销后重试'
)
}
if
(
data
.
massStatus
==
1
&&
data
.
createFlag
==
1
&&
data
.
status
==
0
)
{
Notify
(
'请前往“群发助手”确认群发消息'
)
}
}
})
},
showFollowPop
(
data
)
{
showFollowPop
(
data
)
{
this
.
$refs
.
customerFollowRef
.
init
()
this
.
$refs
.
customerFollowRef
.
init
()
this
.
customerIndex
=
data
.
customerIndex
this
.
customerIndex
=
data
.
customerIndex
...
...
src/views/solicit/succeed.vue
View file @
8fc6aee
...
@@ -195,6 +195,8 @@ export default {
...
@@ -195,6 +195,8 @@ export default {
padding
:
12px
;
padding
:
12px
;
.succeed-wrap
{
.succeed-wrap
{
background
:
#fff
;
background
:
#fff
;
box-shadow
:
0px
3px
10px
0px
rgba
(
223
,
228
,
234
,
0.81
);
border-radius
:
4px
;
.title-info
{
.title-info
{
position
:
relative
;
position
:
relative
;
}
}
...
...
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