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 e91e28c1
authored
Jun 08, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
1e2ccf1e
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
137 additions
and
418 deletions
src/api/solicit.js
src/components/CustomerCard.vue
src/components/CustomerFollowPopup.vue
src/components/CustomerInfoPopup.vue
src/components/Empty.vue
src/components/SelectBar.vue
src/store/modules/app.js
src/store/modules/solicit.js
src/views/solicit/components/line.vue
src/views/solicit/follow.vue
src/views/solicit/lookCustomer.vue
src/views/solicit/marketing.vue
src/views/solicit/overview.vue
src/views/solicit/statistic.vue
src/views/solicit/succeed.vue
src/api/solicit.js
View file @
e91e28c
...
...
@@ -12,7 +12,7 @@ export default {
followFindAllDictData
(
data
)
{
data
.
method
=
'merchants.api.menu.findAllDictData'
return
window
.
$HTTP
({
url
:
'http://rop-merchant.dev.glsx.com.cn/rop-merchants/router'
,
url
:
'http://rop-merchant.dev.glsx.com.cn/rop-merchants/router'
,
data
,
returnAll
:
true
})
...
...
@@ -21,16 +21,26 @@ export default {
getStaffid
(
data
)
{
data
.
method
=
'marketing.api.solicit.staffid.obtain'
return
window
.
$HTTP
({
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
},
// 根据任务id查询活动
findActivityIdByUUID
(
data
)
{
data
.
method
=
'marketing.api.activity.findActivityIdByUUID'
return
window
.
$HTTP
({
url
,
data
,
returnAll
:
true
})
},
// 客户招揽-任务总览
taskOverviewData
(
data
)
{
data
.
method
=
'marketing.api.solicit.taskOverview'
return
window
.
$HTTP
({
url
:
'http://192.168.3.226:8593/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
...
...
@@ -39,7 +49,7 @@ export default {
solicitationFollow
(
data
)
{
data
.
method
=
'marketing.api.solicit.solicitationFollow'
return
window
.
$HTTP
({
url
:
'http://192.168.3.226:8593/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
...
...
@@ -48,7 +58,7 @@ export default {
createdOcmarketing
(
data
)
{
data
.
method
=
'marketing.api.solicit.ocmarketing.send'
return
window
.
$HTTP
({
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
url
,
data
})
},
...
...
@@ -57,7 +67,7 @@ export default {
getocmarketingList
(
data
)
{
data
.
method
=
'marketing.api.solicit.ocmarketing.echo'
return
window
.
$HTTP
({
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
...
...
@@ -67,7 +77,7 @@ export default {
deliveredStatistics
(
data
)
{
data
.
method
=
'marketing.api.solicit.customer.delivered.statistics'
return
window
.
$HTTP
({
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
...
...
@@ -77,7 +87,7 @@ export default {
getCustomerList
(
data
)
{
data
.
method
=
'marketing.api.solicit.page.customer.condition'
return
window
.
$HTTP
({
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
...
...
@@ -86,7 +96,7 @@ export default {
getCustomerDetail
(
data
)
{
data
.
method
=
'marketing.api.solicit.customer.detail'
return
window
.
$HTTP
({
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
...
...
@@ -95,7 +105,7 @@ export default {
sendSolicitRecord
(
data
)
{
data
.
method
=
'marketing.api.solicit.record.save'
return
window
.
$HTTP
({
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
url
,
data
,
returnAll
:
true
})
...
...
src/components/CustomerCard.vue
View file @
e91e28c
...
...
@@ -32,11 +32,11 @@
</div>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-name"
>
招揽日期:
</div>
<div
class=
"customer-info-message"
>
{{
item
.
solicitTime
?
item
.
solicitTime
.
slice
(
0
,
10
)
:
''
}}
</div>
<div
class=
"customer-info-message"
>
{{
item
.
solicitTime
}}
</div>
</div>
<div
class=
"customer-info-label"
>
<div
class=
"customer-info-name"
>
更新日期:
</div>
<div
class=
"customer-info-message"
>
{{
item
.
updatedTime
?
item
.
updatedTime
.
slice
(
0
,
10
)
:
''
}}
</div>
<div
class=
"customer-info-message"
>
{{
item
.
updatedTime
}}
</div>
</div>
</div>
</div>
...
...
@@ -165,7 +165,7 @@ export default {
followCustomer
(
val
,
index
)
{
this
.
customerIndex
=
index
this
.
followCustomerData
=
val
this
.
$refs
.
customerFollowRef
.
init
(
val
)
this
.
$refs
.
customerFollowRef
.
init
()
},
// 客户详情
sendMessage
(
val
)
{
...
...
src/components/CustomerFollowPopup.vue
View file @
e91e28c
...
...
@@ -135,7 +135,6 @@ export default {
},
// 时间选择tab切换
selectDatetime
(
item
)
{
console
.
log
(
item
)
this
.
tabIndex
=
item
.
index
},
// 选择日期
...
...
src/components/CustomerInfoPopup.vue
View file @
e91e28c
<
template
>
<div>
<van-action-sheet
v-model
:show
=
"showCustomerDetail"
cancel-text=
"关闭详情"
close-on-click-action
@
cancel=
"onCancel"
>
<van-action-sheet
v-model=
"showCustomerDetail"
cancel-text=
"关闭详情"
close-on-click-action
@
cancel=
"onCancel"
>
<div
class=
"popup-card"
>
<div
class=
"name-title"
>
<div
class=
"name-title-text"
>
{{
customerList
.
customerName
}}
</div>
...
...
@@ -15,19 +15,19 @@
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
车系
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
.
length
>
0
&&
customerList
.
cars
[
0
].
carSeries
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
&&
customerList
.
cars
.
length
>
0
&&
customerList
.
cars
[
0
].
carSeries
}}
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
车牌号码
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
.
length
>
0
&&
customerList
.
cars
[
0
].
carNumber
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
&&
customerList
.
cars
.
length
>
0
&&
customerList
.
cars
[
0
].
carNumber
}}
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
购车日期
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
.
length
>
0
&&
customerList
.
cars
[
0
].
carBuyDate
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
&&
customerList
.
cars
.
length
>
0
&&
customerList
.
cars
[
0
].
carBuyDate
}}
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
最近保养
</div>
<div
class=
"customer-info-item-content"
>
{{
maintennceList
.
length
>
0
&&
maintennceList
[
0
].
maDate
}}
</div>
<div
class=
"customer-info-item-content"
>
{{
customerList
.
cars
&&
maintennceList
.
length
>
0
&&
maintennceList
[
0
].
maDate
}}
</div>
</div>
<div
class=
"customer-info-item"
>
<div
class=
"customer-info-item-title"
>
人群分组
</div>
...
...
src/components/Empty.vue
View file @
e91e28c
...
...
@@ -18,9 +18,9 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.custom-image
{
//
padding-top
:
79px
;
}
//
.custom-image
{
//
//
padding-top
:
79px
;
//
}
.custom-image
/
deep
/
.van-empty__image
{
width
:
88px
;
...
...
src/components/SelectBar.vue
View file @
e91e28c
<
template
>
<div
class=
"select-tab flex"
v-if=
"data.length > 0"
>
<template
v-for=
"(i
, index
) in data"
>
<div
@
click=
"click(i
ndex)"
:class=
"['item', tabIndex == index ? 'active' : '']"
:key=
"index"
>
{{
i
}}
</div>
<template
v-for=
"(i) in data"
>
<div
@
click=
"click(i
)"
:class=
"['item', tabIndex == i.value ? 'active' : '']"
:key=
"i.value"
>
{{
i
.
text
}}
</div>
</
template
>
</div>
</template>
...
...
@@ -40,9 +40,9 @@ export default {
mounted
()
{
},
methods
:
{
click
(
tabIndex
)
{
this
.
tabIndex
=
tabIndex
this
.
$emit
(
'change'
,
tabIndex
)
click
(
data
)
{
this
.
tabIndex
=
data
.
value
this
.
$emit
(
'change'
,
t
his
.
t
abIndex
)
}
}
}
...
...
src/store/modules/app.js
View file @
e91e28c
...
...
@@ -127,7 +127,7 @@ const actions = {
}
},
navigation
({
dispatch
})
{
let
{
sessionId
,
corpId
,
id
}
=
getParams
()
let
{
sessionId
,
corpId
,
id
,
activityId
}
=
getParams
()
const
storage_corpId
=
util
.
getLocalStorage
(
'dj_scrm_corpId'
)
if
(
!
corpId
)
corpId
=
storage_corpId
&&
storage_corpId
.
corpId
if
(
corpId
&&
storage_corpId
)
{
...
...
@@ -137,6 +137,7 @@ const actions = {
}
}
util
.
setLocalStorage
(
'dj_scrm_corpId'
,
{
corpId
})
if
(
activityId
)
util
.
setLocalStorage
(
'dj_scrm_activityId'
,
activityId
)
if
(
id
)
util
.
setLocalStorage
(
'dj_scrm_id'
,
{
id
})
const
storage_sessionId
=
util
.
getSessionId
()
if
(
sessionId
||
storage_sessionId
)
{
...
...
@@ -170,4 +171,4 @@ export default {
state
,
mutations
,
actions
}
\ No newline at end of file
}
src/store/modules/solicit.js
View file @
e91e28c
import
{
solicitApi
}
from
'@/api'
import
{
solicitApi
}
from
'@/api'
import
{
util
}
from
'utils'
import
{
Notify
}
from
'vant'
export
default
{
namespaced
:
true
,
state
:
{
currentIndex
:
0
,
follewIndex
:
0
,
activityId
:
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
?
util
.
getLocalStorage
(
'dj_scrm_activityId'
)
:
3
,
staffId
:
util
.
getLocalStorage
(
'dj_
STAFF_ID'
)
?
util
.
getLocalStorage
(
'dj_STAFF_ID'
)
:
363
,
followResultList
:
util
.
getLocalStorage
(
'followResultList'
)
?
util
.
getLocalStorage
(
'followResultList'
)
:
[],
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
:
[]
},
mutations
:
{
...
...
@@ -19,34 +20,36 @@ export default {
},
[
'SET_STAFF_ID'
](
state
,
payload
)
{
state
.
staffId
=
payload
.
staffId
util
.
setLocalStorage
(
'dj_scrm_staffId'
,
payload
.
staffId
)
},
[
'SET_COUSTOMER_LIST'
](
state
,
payload
)
{
state
.
customerInfoList
=
payload
.
customerInfoList
},
[
'SET_FOLLOE_RESULT_LIST'
](
state
,
payload
){
state
.
followResultList
=
payload
.
followResultList
sessionStorage
.
setItem
(
'followResultList'
,
JSON
.
stringify
(
payload
.
followResultList
))
[
'SET_FOLLOE_RESULT_LIST'
](
state
,
payload
)
{
state
.
followResultList
=
payload
.
followResultList
util
.
setLocalStorage
(
'followResultList'
,
JSON
.
stringify
(
payload
.
followResultList
))
},
[
'SET_ACTIVITY_ID'
](
state
,
payload
)
{
state
.
activityId
=
payload
.
activityId
util
.
setLocalStorage
(
'dj_scrm_activityId'
,
payload
.
activityId
)
}
},
actions
:
{
//设置staffId
getStaffId
(
conText
,
payload
)
{
// conText.commit('SET_STAFF_ID', { staffId: 3 })
solicitApi
.
getStaffid
(
payload
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
conText
.
commit
(
'SET_STAFF_ID'
,
{
staffId
:
res
.
data
})
util
.
setLocalStorage
(
'dj_STAFF_ID'
,
res
.
data
)
if
(
payload
.
success
)
{
payload
.
success
()
}
solicitApi
.
getStaffid
(
payload
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
conText
.
commit
(
'SET_STAFF_ID'
,
{
staffId
:
res
.
data
})
if
(
payload
.
success
)
{
payload
.
success
()
}
})
}
})
},
// 获取跟进结果字典数据
getFollowDataList
(
conText
,
payload
)
{
var
params
=
{
dictType
:
'follow_result'
dictType
:
'follow_result'
}
solicitApi
.
followFindAllDictData
(
params
).
then
(
res
=>
{
conText
.
commit
(
'SET_FOLLOE_RESULT_LIST'
,
{
followResultList
:
res
.
data
})
...
...
@@ -54,7 +57,7 @@ export default {
},
// 获取跟进总数和结果总数
getTaskOverviewData
(
conText
,
payload
)
{
console
.
log
(
'------这里'
,
)
console
.
log
(
'------这里'
)
let
params
=
{
activityId
:
conText
.
state
.
activityId
,
staffId
:
conText
.
state
.
staffId
...
...
@@ -69,6 +72,18 @@ export default {
Notify
(
message
)
}
})
},
findActivityIdByUUID
(
conText
,
payload
)
{
solicitApi
.
findActivityIdByUUID
(
payload
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
conText
.
commit
(
'SET_ACTIVITY_ID'
,
{
activityId
:
res
.
data
})
if
(
payload
.
success
)
{
payload
.
success
(
res
.
data
)
}
}
else
{
Notify
(
res
.
message
)
}
})
}
}
}
src/views/solicit/components/line.vue
View file @
e91e28c
...
...
@@ -11,7 +11,7 @@ export default {
data
()
{
return
{
chart
:
null
,
//
tickInterval: 5,
tickInterval
:
5
,
chartColor
:
this
.
color
,
refId
:
this
.
id
}
...
...
@@ -28,6 +28,18 @@ export default {
id
:
{
type
:
String
,
default
:
()
=>
''
},
lineData
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
watch
:
{
lineData
:
{
handler
()
{
this
.
initCanvas
()
},
deep
:
true
}
},
mounted
()
{
...
...
@@ -39,349 +51,8 @@ export default {
// offsetY = document.getElementById(id).height * 0.4
// await this.dynamicTick() //动态生成各个标度点的间距
// id = this.refId
const
data
=
[
{
value
:
63.4
,
city
:
'New York'
,
date
:
'2011-10-01'
},
{
value
:
72.2
,
city
:
'Austin'
,
date
:
'2011-10-01'
},
{
value
:
58
,
city
:
'New York'
,
date
:
'2011-10-02'
},
{
value
:
67.7
,
city
:
'Austin'
,
date
:
'2011-10-02'
},
{
value
:
53.3
,
city
:
'New York'
,
date
:
'2011-10-03'
},
{
value
:
69.4
,
city
:
'Austin'
,
date
:
'2011-10-03'
},
{
value
:
55.7
,
city
:
'New York'
,
date
:
'2011-10-04'
},
{
value
:
68
,
city
:
'Austin'
,
date
:
'2011-10-04'
},
{
value
:
64.2
,
city
:
'New York'
,
date
:
'2011-10-05'
},
{
value
:
72.4
,
city
:
'Austin'
,
date
:
'2011-10-05'
},
{
value
:
58.8
,
city
:
'New York'
,
date
:
'2011-10-06'
},
{
value
:
77
,
city
:
'Austin'
,
date
:
'2011-10-06'
},
{
value
:
57.9
,
city
:
'New York'
,
date
:
'2011-10-07'
},
{
value
:
82.3
,
city
:
'Austin'
,
date
:
'2011-10-07'
},
{
value
:
61.8
,
city
:
'New York'
,
date
:
'2011-10-08'
},
{
value
:
78.9
,
city
:
'Austin'
,
date
:
'2011-10-08'
},
{
value
:
69.3
,
city
:
'New York'
,
date
:
'2011-10-09'
},
{
value
:
68.8
,
city
:
'Austin'
,
date
:
'2011-10-09'
},
{
value
:
71.2
,
city
:
'New York'
,
date
:
'2011-10-10'
},
{
value
:
68.7
,
city
:
'Austin'
,
date
:
'2011-10-10'
},
{
value
:
68.7
,
city
:
'New York'
,
date
:
'2011-10-11'
},
{
value
:
70.3
,
city
:
'Austin'
,
date
:
'2011-10-11'
},
{
value
:
61.8
,
city
:
'New York'
,
date
:
'2011-10-12'
},
{
value
:
75.3
,
city
:
'Austin'
,
date
:
'2011-10-12'
},
{
value
:
63
,
city
:
'New York'
,
date
:
'2011-10-13'
},
{
value
:
76.6
,
city
:
'Austin'
,
date
:
'2011-10-13'
},
{
value
:
66.9
,
city
:
'New York'
,
date
:
'2011-10-14'
},
{
value
:
66.6
,
city
:
'Austin'
,
date
:
'2011-10-14'
},
{
value
:
61.7
,
city
:
'New York'
,
date
:
'2011-10-15'
},
{
value
:
68
,
city
:
'Austin'
,
date
:
'2011-10-15'
},
{
value
:
61.8
,
city
:
'New York'
,
date
:
'2011-10-16'
},
{
value
:
70.6
,
city
:
'Austin'
,
date
:
'2011-10-16'
},
{
value
:
62.8
,
city
:
'New York'
,
date
:
'2011-10-17'
},
{
value
:
71.1
,
city
:
'Austin'
,
date
:
'2011-10-17'
},
{
value
:
60.8
,
city
:
'New York'
,
date
:
'2011-10-18'
},
{
value
:
70
,
city
:
'Austin'
,
date
:
'2011-10-18'
},
{
value
:
62.1
,
city
:
'New York'
,
date
:
'2011-10-19'
},
{
value
:
61.6
,
city
:
'Austin'
,
date
:
'2011-10-19'
},
{
value
:
65.1
,
city
:
'New York'
,
date
:
'2011-10-20'
},
{
value
:
57.4
,
city
:
'Austin'
,
date
:
'2011-10-20'
},
{
value
:
55.6
,
city
:
'New York'
,
date
:
'2011-10-21'
},
{
value
:
64.3
,
city
:
'Austin'
,
date
:
'2011-10-21'
},
{
value
:
54.4
,
city
:
'New York'
,
date
:
'2011-10-22'
},
{
value
:
72.4
,
city
:
'Austin'
,
date
:
'2011-10-22'
},
{
value
:
54.4
,
city
:
'New York'
,
date
:
'2011-10-23'
},
{
value
:
72.4
,
city
:
'Austin'
,
date
:
'2011-10-23'
},
{
value
:
54.8
,
city
:
'New York'
,
date
:
'2011-10-24'
},
{
value
:
72.5
,
city
:
'Austin'
,
date
:
'2011-10-24'
},
{
value
:
57.9
,
city
:
'New York'
,
date
:
'2011-10-25'
},
{
value
:
72.7
,
city
:
'Austin'
,
date
:
'2011-10-25'
},
{
value
:
54.6
,
city
:
'New York'
,
date
:
'2011-10-26'
},
{
value
:
73.4
,
city
:
'Austin'
,
date
:
'2011-10-26'
},
{
value
:
54.4
,
city
:
'New York'
,
date
:
'2011-10-27'
},
{
value
:
70.7
,
city
:
'Austin'
,
date
:
'2011-10-27'
},
{
value
:
42.5
,
city
:
'New York'
,
date
:
'2011-10-28'
},
{
value
:
56.8
,
city
:
'Austin'
,
date
:
'2011-10-28'
},
{
value
:
40.9
,
city
:
'New York'
,
date
:
'2011-10-29'
},
{
value
:
51
,
city
:
'Austin'
,
date
:
'2011-10-29'
},
{
value
:
38.6
,
city
:
'New York'
,
date
:
'2011-10-30'
},
{
value
:
54.9
,
city
:
'Austin'
,
date
:
'2011-10-30'
},
{
value
:
44.2
,
city
:
'New York'
,
date
:
'2011-10-31'
},
{
value
:
58.8
,
city
:
'Austin'
,
date
:
'2011-10-31'
},
{
value
:
49.6
,
city
:
'New York'
,
date
:
'2011-11-01'
},
{
value
:
62.6
,
city
:
'Austin'
,
date
:
'2011-11-01'
},
{
value
:
47.2
,
city
:
'New York'
,
date
:
'2011-11-02'
},
{
value
:
71
,
city
:
'Austin'
,
date
:
'2011-11-02'
}
]
console
.
log
(
this
.
lineData
,
8
)
const
data
=
this
.
lineData
this
.
chart
&&
this
.
chart
.
clear
()
this
.
chart
=
null
this
.
chart
=
new
F2
.
Chart
({
...
...
@@ -398,8 +69,8 @@ export default {
},
value
:
{
type
:
'linear'
,
nice
:
true
//
tickInterval: this.tickInterval
nice
:
true
,
tickInterval
:
this
.
tickInterval
}
})
this
.
chart
.
axis
(
'date'
,
{
...
...
@@ -424,8 +95,8 @@ export default {
// let reg = /(\d{4})-(\d{1,2})-(\d{1,2})/
// const time = currentData.origin.date.replace(reg, '$1年$2月$3日')
tooltipEl
.
innerHTML
=
`<div class="time">
${
currentData
.
origin
.
date
}
</div>
<div class="item flex"><span class="arc" style="color:#3975C6;">●</span>
新增企微客户
:
${
ev
.
items
[
0
].
value
}
</div>
<div class="item flex"><span class="arc" style="color:#FA7C0B;">●</span>
新增客户
:
${
ev
.
items
[
1
].
value
}
</div>`
<div class="item flex"><span class="arc" style="color:#3975C6;">●</span>
预约到店
:
${
ev
.
items
[
0
].
value
}
</div>
<div class="item flex"><span class="arc" style="color:#FA7C0B;">●</span>
实际到店
:
${
ev
.
items
[
1
].
value
}
</div>`
tooltipEl
.
style
.
opacity
=
1
tooltipEl
.
style
.
left
=
currentData
.
x
-
140
/
2
+
'px'
tooltipEl
.
style
.
top
=
currentData
.
y
-
45
-
15
+
'px'
...
...
@@ -434,7 +105,7 @@ export default {
tooltipEl
.
style
.
opacity
=
0
}
})
this
.
chart
.
line
().
position
(
'date*value'
).
shape
(
'smooth'
).
color
(
'
city
'
,
[
'#3975C6'
,
'#FA7C0B'
])
this
.
chart
.
line
().
position
(
'date*value'
).
shape
(
'smooth'
).
color
(
'
type
'
,
[
'#3975C6'
,
'#FA7C0B'
])
this
.
chart
.
legend
(
false
)
this
.
chart
.
render
()
},
...
...
src/views/solicit/follow.vue
View file @
e91e28c
...
...
@@ -51,6 +51,7 @@
import
{
mapState
,
mapMutations
,
mapActions
}
from
'vuex'
import
{
solicitApi
}
from
'@/api'
import
{
Toast
}
from
'vant'
import
{
Notify
}
from
'vant'
export
default
{
data
()
{
return
{
...
...
src/views/solicit/lookCustomer.vue
View file @
e91e28c
...
...
@@ -19,6 +19,7 @@
<
script
>
import
{
mapState
}
from
'vuex'
import
{
solicitApi
}
from
'@/api'
import
{
Notify
}
from
'vant'
export
default
{
data
()
{
return
{
...
...
src/views/solicit/marketing.vue
View file @
e91e28c
...
...
@@ -40,7 +40,7 @@
</template>
<
script
>
import
{
solicitApi
}
from
'@/api'
import
{
Toast
}
from
'vant'
import
{
Toast
,
Notify
}
from
'vant'
import
{
mapState
,
mapMutations
}
from
'vuex'
import
emoji
from
'@/utils/emo'
export
default
{
...
...
src/views/solicit/overview.vue
View file @
e91e28c
...
...
@@ -4,8 +4,7 @@
<div
class=
"title-info"
>
客户招揽概况
</div>
<div
class=
"overview-content"
>
<template
v-if=
"chart.pieData.length > 0"
>
<pieChart
:color=
"chart.pieColor"
id=
"overviewRef"
:list=
"chart.pieData"
:centerData=
"chart.centerData"
>
</pieChart>
<pieChart
:color=
"chart.pieColor"
id=
"overviewRef"
:list=
"chart.pieData"
:centerData=
"chart.centerData"
></pieChart>
</
template
>
<
template
v-else
>
<empty></empty>
...
...
@@ -49,6 +48,7 @@ import pieChart from '../solicit/components/pie.vue'
import
barChart
from
'../solicit/components/bar.vue'
import
{
solicitApi
}
from
'@/api'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
Notify
}
from
'vant'
export
default
{
components
:
{
pieChart
,
...
...
@@ -58,6 +58,7 @@ export default {
return
{
flag
:
true
,
bulletinList
:
[],
activityId
:
''
,
chart
:
{
pieColor
:
[
'#3975C6'
,
'#E6E7EB'
],
pieData
:
[],
...
...
@@ -102,14 +103,18 @@ export default {
}
}
},
computed
:
{
...
mapState
({
activityId
:
state
=>
state
.
solicit
.
activityId
,
staffId
:
state
=>
state
.
solicit
.
staffId
})
},
created
()
{
this
.
bulletinList
=
this
.
$constants
.
BULLETINLIST
let
{
taskId
}
=
this
.
getQuery
()
if
(
taskId
)
{
this
.
findActivityIdByUUID
({
uuid
:
taskId
,
success
:
res
=>
{
this
.
activityId
=
res
}
})
}
if
(
!
taskId
)
this
.
activityId
=
window
.
localStorage
.
getItem
(
'dj_scrm_activityId'
)
?
window
.
localStorage
.
getItem
(
'dj_scrm_activityId'
)
:
''
this
.
getStaffId
({
success
:
res
=>
{
this
.
getTaskOverviewData
()
...
...
@@ -118,20 +123,18 @@ export default {
},
computed
:
{
...
mapState
({
activityId
:
state
=>
state
.
solicit
.
activityId
,
staffId
:
state
=>
state
.
solicit
.
staffId
})
},
methods
:
{
...
mapActions
({
getStaffId
:
'solicit/getStaffId'
getStaffId
:
'solicit/getStaffId'
,
findActivityIdByUUID
:
'solicit/findActivityIdByUUID'
}),
getTaskOverviewData
()
{
let
params
=
{
// activityId: this.activityId,
activityId
:
1
,
// staffId: this.staffId
staffId
:
334
activityId
:
this
.
activityId
,
staffId
:
this
.
staffId
}
this
.
showLoading
()
solicitApi
.
taskOverviewData
(
params
).
then
(({
code
,
data
,
message
})
=>
{
...
...
@@ -197,7 +200,7 @@ export default {
.bulletin
{
height
:
236px
;
padding
:
8px
0
16px
0
;
padding
:
16px
0
;
box-sizing
:
border-box
;
flex-wrap
:
wrap
;
...
...
src/views/solicit/statistic.vue
View file @
e91e28c
...
...
@@ -24,7 +24,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"
>
(
{{
parseInt
((
Number
(
status
.
value
(
deliveredData
))
/
Number
(
status
.
proportion
(
deliveredData
)))
*
100
)
}}
%)
</span>
<span
class=
"font-10 color39 m-l-4 fw5"
>
(
{{
Number
(
status
.
proportion
(
deliveredData
))
==
0
?
'0'
:
parseInt
((
Number
(
status
.
value
(
deliveredData
))
/
Number
(
status
.
proportion
(
deliveredData
)))
*
100
)
}}
%)
</span>
</div>
</
template
>
</div>
...
...
@@ -51,7 +51,21 @@ export default {
tabIndex
:
0
,
alreadyIndex
:
0
,
deliveredNum
:
0
,
selectBarList
:
[
'已送达'
,
'已查看'
,
'已领取'
,
'已到店'
],
selectBarList
:
[
{
text
:
'已送达'
,
value
:
0
},
{
text
:
'已查看'
,
value
:
1
},
{
text
:
'已领取'
,
value
:
2
},
{
text
:
'已到店'
,
value
:
3
}
],
// 未送达客户列表
customerInfo1
:
[],
// 已送达客户列表
...
...
@@ -152,6 +166,10 @@ export default {
}
solicitApi
.
getCustomerList
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
data
.
map
(
item
=>
{
item
.
solicitTime
=
item
.
solicitTime
?
item
.
solicitTime
.
slice
(
0
,
10
)
:
item
.
solicitTime
item
.
updatedTime
=
item
.
updatedTime
?
item
.
updatedTime
.
slice
(
0
,
10
)
:
item
.
updatedTime
})
this
[
target
[
index
]]
=
data
}
else
{
Notify
(
message
)
...
...
src/views/solicit/succeed.vue
View file @
e91e28c
...
...
@@ -143,20 +143,20 @@ export default {
return
{
date
:
item
.
dailyDate
,
value
:
item
.
times
,
city
:
'1
'
type
:
'预约到店
'
}
})
const
successDaily
=
successDailyCharts
.
map
((
item
,
index
)
=>
{
return
{
date
:
item
.
dailyDate
,
value
:
item
.
times
,
city
:
'2
'
type
:
'实际到店
'
}
})
this
.
lineData
=
[...
appointmentDaily
,
...
successDaily
]
}
if
(
followResultsAnalyzeVos
)
{
const
followResultList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'followResultList'
))
const
followResultList
=
window
.
localStorage
.
getItem
(
'followResultList'
)?
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'followResultList'
)):[]
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