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 e6280a9e
authored
Jun 08, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
8338eb3e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
102 deletions
src/components/CustomerCard.vue
src/components/Tab.vue
src/store/modules/solicit.js
src/views/solicit/components/line.vue
src/views/solicit/follow.vue
src/views/solicit/index.vue
src/views/solicit/overview.vue
src/views/solicit/succeed.vue
src/components/CustomerCard.vue
View file @
e6280a9
...
...
@@ -26,7 +26,8 @@
<div
v-if=
"item.nickName"
>
<span
class=
"customer-info-message customer-info-wechatnick text-hide"
>
{{
item
.
nickName
}}
</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>
<span
class=
"customer-info-qiwechat customer-info-message"
v-else-if=
"item.type == 2"
>
@企微
</span>
<span
class=
"customer-info-qiwechat customer-info-message"
v-else
></span>
</div>
<div
class=
"customer-info-message"
v-else
>
未添加
</div>
</div>
...
...
src/components/Tab.vue
View file @
e6280a9
<
template
>
<div
:class=
"[
{'sticky':sticky}]">
<van-tabs
v-model=
"tabIndex"
color=
"#3975C6"
title-inactive-color=
"#BBB"
title-active-color=
"#2c2c2c"
@
click=
"click"
:key=
"updata"
>
<template
v-for=
"(i,index) in data"
>
<van-tab
:title=
"i"
:key=
"index"
></van-tab>
<div
:class=
"[
{ sticky: sticky }]">
<van-tabs
v-model=
"tabIndex"
color=
"#3975C6"
title-inactive-color=
"#BBB"
title-active-color=
"#2c2c2c"
@
click=
"click"
:key=
"updata"
>
<template
v-for=
"(i, index) in data"
>
<van-tab
:title=
"i"
:key=
"index"
></van-tab>
</
template
>
</van-tabs>
</div>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
name
:
'Tab'
,
props
:
{
...
...
@@ -48,6 +38,9 @@ export default {
'updata'
(
n
)
{
this
.
data
=
this
.
list
this
.
tabIndex
=
this
.
index
},
'list'
(
n
){
this
.
data
=
n
}
},
mounted
()
{
...
...
@@ -61,7 +54,7 @@ export default {
}
</
script
>
<
style
lang=
'scss'
>
<
style
lang=
"scss"
>
.sticky
{
position
:
sticky
;
top
:
0
;
...
...
@@ -76,4 +69,4 @@ export default {
.van-tab--active
{
font-size
:
16px
!important
;
}
</
style
>
\ No newline at end of file
</
style
>
src/store/modules/solicit.js
View file @
e6280a9
...
...
@@ -8,8 +8,12 @@ export default {
follewIndex
:
0
,
activityId
:
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
?
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
:
''
,
staffId
:
util
.
getLocalStorage
(
'dj_scrm_staffId'
)
?
util
.
getLocalStorage
(
'dj_scrm_staffId'
)
:
''
,
followResultList
:
util
.
getLocalStorage
(
'followResultList'
)
?
JSON
.
parse
(
util
.
getLocalStorage
(
'followResultList'
))
:
[],
customerInfoList
:
[]
followResultList
:
util
.
getLocalStorage
(
'followResultList'
)
?
util
.
getLocalStorage
(
'followResultList'
)
:
[],
customerInfoList
:
[],
overviewCountInfo
:
{
tabPageFollowUpCount
:
0
,
tabPageResultCount
:
0
}
},
mutations
:
{
[
'SET_TAB_INDEX'
](
state
,
payload
)
{
...
...
@@ -27,11 +31,14 @@ export default {
},
[
'SET_FOLLOE_RESULT_LIST'
](
state
,
payload
)
{
state
.
followResultList
=
payload
.
followResultList
util
.
setLocalStorage
(
'followResultList'
,
JSON
.
stringify
(
payload
.
followResultList
)
)
util
.
setLocalStorage
(
'followResultList'
,
payload
.
followResultList
)
},
[
'SET_ACTIVITY_ID'
](
state
,
payload
)
{
state
.
activityId
=
payload
.
activityId
util
.
setLocalStorage
(
'dj_scrm_activityId'
,
payload
.
activityId
)
},
[
'SET_OVERVIEW_COUNT_INFO'
](
state
,
payload
)
{
state
.
overviewCountInfo
=
payload
.
overviewCountInfo
}
},
actions
:
{
...
...
@@ -65,8 +72,10 @@ export default {
solicitApi
.
taskOverviewData
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
'0'
)
{
conText
.
commit
(
'SET_OVERVIEW_COUNT_INFO'
,
{
tabPageFollowUpCount
:
data
.
tabPageFollowUpCount
,
tabPageResultCount
:
data
.
tabPageResultCount
overviewCountInfo
:
{
tabPageFollowUpCount
:
data
.
tabPageFollowUpCount
,
tabPageResultCount
:
data
.
tabPageResultCount
}
})
}
else
{
Notify
(
message
)
...
...
src/views/solicit/components/line.vue
View file @
e6280a9
...
...
@@ -50,8 +50,6 @@ export default {
// let offsetY
// offsetY = document.getElementById(id).height * 0.4
// await this.dynamicTick() //动态生成各个标度点的间距
// id = this.refId
console
.
log
(
this
.
lineData
,
8
)
const
data
=
this
.
lineData
this
.
chart
&&
this
.
chart
.
clear
()
this
.
chart
=
null
...
...
src/views/solicit/follow.vue
View file @
e6280a9
...
...
@@ -60,56 +60,7 @@ export default {
solicitationTotal
:
20
,
solicitationWeComCustomerCount
:
30
,
solicitationNotWeComCustomerCount
:
20
,
weComMarketingList
:
[
{
activityId
:
1
,
groupId
:
2
,
staffId
:
3
,
groupName
:
'定保招揽定保招揽定保招揽 N-3'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
{
activityId
:
0
,
groupId
:
527
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-4'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
{
activityId
:
0
,
groupId
:
0
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-5'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
{
activityId
:
0
,
groupId
:
0
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-6'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
{
activityId
:
0
,
groupId
:
0
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-7'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
{
activityId
:
0
,
groupId
:
0
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-3'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
}
]
weComMarketingList
:
[]
},
statisticList
:
[]
}
...
...
src/views/solicit/index.vue
View file @
e6280a9
...
...
@@ -7,8 +7,7 @@
-->
<
template
>
<div
class=
"solicit-container"
>
<tab
:list=
"['总览', `跟进($
{countData.tabPageFollowUpCount})`, `结果(${countData.tabPageResultCount})`]"
:index="currentIndex" @change="changeIndex">
</tab>
<tab
:list=
"['总览', `跟进($
{countData.tabPageFollowUpCount})`, `结果(${countData.tabPageResultCount})`]" :index="currentIndex" @change="changeIndex">
</tab>
<div
class=
"solicit-content"
>
<overview
v-if=
"currentIndex == 0"
@
getCountInfo=
"getCountInfo"
></overview>
<follow
v-if=
"currentIndex == 1"
></follow>
...
...
@@ -32,6 +31,15 @@ export default {
}
}
},
watch
:
{
overviewCountInfo
:
{
handler
(
n
)
{
this
.
countData
=
n
},
immediate
:
true
,
deep
:
true
}
},
components
:
{
overview
,
follow
,
...
...
@@ -52,11 +60,9 @@ export default {
this
.
SET_TAB_INDEX
({
currentIndex
:
index
})
},
getCountInfo
(
val
)
{
console
.
log
(
val
)
this
.
SET_OVERVIEW_COUNT_INFO
({
overviewCountInfo
:
val
})
console
.
log
(
this
.
overviewCountInfo
)
}
}
}
...
...
src/views/solicit/overview.vue
View file @
e6280a9
...
...
@@ -70,28 +70,7 @@ export default {
followedUpCount
:
10
,
notFollowedUpCount
:
4
,
followedUpPercent
:
'20%'
,
customerGroupList
:
[
{
groupName
:
'名称展示上限为十个字'
,
groupCount
:
5
},
{
groupName
:
'N-4'
,
groupCount
:
6
},
{
groupName
:
'N-3'
,
groupCount
:
3
},
{
groupName
:
'N-2'
,
groupCount
:
8
},
{
groupName
:
'名称测试展示上限为十个字'
,
groupCount
:
1
}
],
customerGroupList
:
[
],
workBriefingFollowUpTodayCount
:
6
,
workBriefingFollowUpMonthCount
:
0
,
workBriefingAddedTodayCount
:
3
,
...
...
src/views/solicit/succeed.vue
View file @
e6280a9
...
...
@@ -156,7 +156,7 @@ export default {
this
.
lineData
=
[...
appointmentDaily
,
...
successDaily
]
}
if
(
followResultsAnalyzeVos
)
{
const
followResultList
=
window
.
localStorage
.
getItem
(
'followResultList'
)?
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'followResultList'
)):[]
const
followResultList
=
window
.
localStorage
.
getItem
(
'followResultList'
)?
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'followResultList'
)
,
''
,
null
):[]
this
.
reasonBar
=
followResultsAnalyzeVos
.
map
(
item
=>
{
return
{
value
:
item
.
times
,
text
:
followResultList
.
find
(
follow
=>
follow
.
dictValue
==
item
.
followResult
).
dictLabel
}
})
...
...
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