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 6d8a3d27
authored
Jun 07, 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
!24
2 parents
54ab9d76
585e90c8
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
180 additions
and
304 deletions
src/api/solicit.js
src/components/CustomerCard.vue
src/components/CustomerFollowPopup.vue
src/store/modules/solicit.js
src/views/solicit/components/bar.vue
src/views/solicit/customer.vue
src/views/solicit/follow.vue
src/views/solicit/index.vue
src/views/solicit/lookCustomer.vue
src/views/solicit/marketing.vue
src/views/solicit/overview.vue
src/views/solicit/result.vue
src/views/solicit/statistic.vue
vue.config.js
src/api/solicit.js
View file @
6d8a3d2
/*
* @Description:
* @Author: huyue
* @Date: 2022-06-06 14:26:32
* @LastEditors: huyue
* @LastEditTime: 2022-06-06 21:19:53
*/
const
url
=
'/rop-scrm-marketing/router'
export
default
{
/**
...
...
@@ -23,7 +30,7 @@ export default {
taskOverviewData
(
data
)
{
data
.
method
=
'marketing.api.solicit.taskOverview'
return
window
.
$HTTP
({
url
:
'http://192.168.3.226:8593/rop-scrm-marketing/router'
,
url
:
'http://192.168.3.226:8593/rop-scrm-marketing/router'
,
data
,
returnAll
:
true
})
...
...
@@ -41,7 +48,7 @@ export default {
createdOcmarketing
(
data
)
{
data
.
method
=
'marketing.api.solicit.ocmarketing.send'
return
window
.
$HTTP
({
url
,
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
data
})
},
...
...
@@ -50,7 +57,7 @@ export default {
getocmarketingList
(
data
)
{
data
.
method
=
'marketing.api.solicit.ocmarketing.echo'
return
window
.
$HTTP
({
url
,
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
data
,
returnAll
:
true
})
...
...
@@ -70,7 +77,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
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
data
,
returnAll
:
true
})
...
...
@@ -88,7 +95,7 @@ export default {
sendSolicitRecord
(
data
)
{
data
.
method
=
'marketing.api.solicit.record.save'
return
window
.
$HTTP
({
url
,
url
:
'http://192.168.1.170:8065/rop-scrm-marketing/router'
,
data
,
returnAll
:
true
})
...
...
src/components/CustomerCard.vue
View file @
6d8a3d2
<
template
>
<div>
<div
class=
"customer-box"
v-for=
"item in customer
Info
"
:key=
"item.id"
>
<div
class=
"customer-box"
v-for=
"item in customer
Data
"
:key=
"item.id"
>
<div
class=
"customer-title"
>
<div
class=
"customer-name"
>
{{
item
.
customerName
}}
</div>
<div
class=
"customer-carnumber"
>
{{
item
.
cars
.
length
>
0
&&
item
.
cars
[
0
].
carNumber
}}
</div>
...
...
@@ -84,6 +84,11 @@ export default {
}
}
},
watch
:
{
customerInfo
(
n
)
{
this
.
customerData
=
n
}
},
data
()
{
return
{
// 电话营销弹窗
...
...
@@ -96,7 +101,9 @@ export default {
chatId
:
''
},
followCustomerData
:
{},
phoneNumber
:
null
phoneNumber
:
null
,
customerData
:
this
.
customerInfo
,
}
},
mounted
()
{
...
...
src/components/CustomerFollowPopup.vue
View file @
6d8a3d2
...
...
@@ -110,6 +110,9 @@ export default {
default
:
''
}
},
created
()
{
this
.
groupId
=
this
.
getQuery
().
groupId
?
this
.
getQuery
().
groupId
:
''
},
computed
:
{
...
mapState
({
followResultList
:
state
=>
state
.
solicit
.
followResultList
,
...
...
@@ -180,7 +183,8 @@ export default {
followFlag
:
this
.
selectFollowForm
.
checked
?
1
:
0
,
activityId
:
this
.
activityId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
groupId
:
this
.
groupId
,
actCutId
:
this
.
info
.
actCutId
//活动客户id//活动客户id
}
// 如果选择标签为预约到店,判断日期和时间是否填了
...
...
@@ -192,7 +196,7 @@ export default {
}
if
(
this
.
selectFollowForm
.
followResult
==
1
)
params
.
orderTime
=
this
.
selectFollowForm
.
orderTime
console
.
log
(
params
)
solicitApi
.
sendSolicitRecord
(
{
params
}
).
then
(({
code
,
data
,
message
})
=>
{
solicitApi
.
sendSolicitRecord
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
Toast
(
'提交成功'
)
this
.
initFormData
()
...
...
src/store/modules/solicit.js
View file @
6d8a3d2
import
{
solicitApi
}
from
'@/api'
import
{
util
}
from
'utils'
export
default
{
namespaced
:
true
,
state
:
{
currentIndex
:
0
,
follewIndex
:
0
,
activityId
:
window
.
localStorage
.
getItem
(
'dj_scrm_activityId'
)
?
window
.
localStorage
.
getItem
(
'dj_scrm_activityId'
)
:
''
,
staffId
:
''
,
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
:[],
customerInfoList
:
[
{
...
...
@@ -128,6 +128,7 @@ export default {
},
[
'SET_STAFF_ID'
](
state
,
payload
)
{
state
.
staffId
=
payload
.
staffId
},
[
'SET_COUSTOMER_LIST'
](
state
,
payload
)
{
state
.
customerInfoList
=
payload
.
customerInfoList
...
...
@@ -140,15 +141,16 @@ export default {
//设置staffId
getStaffId
(
conText
,
payload
)
{
console
.
log
(
22222222
)
conText
.
commit
(
'SET_STAFF_ID'
,
{
staffId
:
3
})
// solicitApi.getStaffid(payload).then(res => {
// if (res.code == 0) {
// conText.commit('SET_STAFF_ID', { staffId: res.data })
// if (payload.success) {
// payload.success()
// }
// }
// })
// 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
()
}
}
})
},
// 获取跟进结果字典数据
getFollowDataList
(
conText
,
payload
)
{
...
...
src/views/solicit/components/bar.vue
View file @
6d8a3d2
...
...
@@ -42,13 +42,17 @@ export default {
initCanvas
()
{
let
id
=
this
.
refId
let
{
barList
,
color
}
=
this
let
textLength
=
2
this
.
list
.
forEach
(
item
=>
{
textLength
=
item
.
text
.
length
>
textLength
?
item
.
text
.
length
:
textLength
})
this
.
chart
&&
this
.
chart
.
clear
()
this
.
chart
=
null
this
.
chart
=
new
F2
.
Chart
({
id
,
pixelRatio
:
window
.
devicePixelRatio
,
padding
:
[
16
,
24
,
24
,
1
20
],
height
:
barList
.
length
*
45
padding
:
[
16
,
24
,
24
,
textLength
*
10
+
20
],
height
:
barList
.
length
<
2
?
80
:
barList
.
length
*
45
})
this
.
chart
.
source
(
barList
,
{
sales
:
{
...
...
@@ -69,7 +73,7 @@ export default {
const
point
=
this
.
chart
.
getPosition
(
obj
)
const
text
=
group
.
addShape
(
'text'
,
{
attrs
:
{
x
:
13
4
,
x
:
textLength
*
10
+
2
4
,
y
:
point
.
y
-
offset
,
text
:
obj
.
value
,
fill
:
'#ffffff'
,
...
...
src/views/solicit/customer.vue
View file @
6d8a3d2
...
...
@@ -14,7 +14,7 @@
{{
item
.
customerName
}}
</label>
<label
class=
"origin"
>
{{
item
.
type
==
1
?
'@微信'
:
'@企微
'
}}
</label>
<label
class=
"origin"
>
{{
item
.
type
==
1
?
'@微信'
:
item
.
type
==
2
?
'@企微'
:
'
'
}}
</label>
</div>
</div>
<div
class=
"buttomLine"
></div>
...
...
@@ -46,7 +46,7 @@ export default {
methods
:
{
//初始化微信接口
initWx
()
{
wxConfig
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{})
wxConfig
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
})
},
//打开会话
gotoInfo
(
item
)
{
...
...
@@ -70,6 +70,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.tagContainer
{
.customerList
{
//
background
:
#fff
;
.customer
{
padding
:
0
8px
;
...
...
@@ -82,21 +83,26 @@ export default {
width
:
44px
;
height
:
44px
;
padding
:
12px
16px
;
img
{
width
:
100%
;
}
}
.customer-info
{
padding
:
16px
0
;
width
:
calc
(
100%
-
130px
);
.customer-info-name
{
font-size
:
16px
;
line-height
:
22px
;
color
:
#333333
;
display
:
flex
;
.name
{
max-width
:
70%
;
}
.origin
{
font-size
:
14px
;
color
:
#2cca74
;
...
...
@@ -106,6 +112,7 @@ export default {
}
}
}
.buttomLine
{
position
:
absolute
;
left
:
0
;
...
...
@@ -116,11 +123,13 @@ export default {
background-color
:
#c3c3c3
!important
;
}
}
.tagContainer
/
deep
/
.van-checkbox__icon--checked
.van-icon
{
color
:
#fff
;
background-color
:
#3975c6
!important
;
border-color
:
#3975c6
!important
;
}
.tagContainer
/
deep
/
.van-checkbox__icon
.van-icon
{
width
:
16px
;
height
:
16px
;
...
...
src/views/solicit/follow.vue
View file @
6d8a3d2
...
...
@@ -10,9 +10,11 @@
</div>
<tab-customer
:list=
"['企微营销', '电话招揽']"
@
change=
"changeFollow"
:index=
"follewIndex"
>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<
template
v-if=
"solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0"
>
<
template
v-if=
"solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0"
>
<div
class=
"follow-content"
>
<div
class=
"follow-content-item m-b-12"
v-for=
"(item, index) in solicitationFollowData.weComMarketingList"
:key=
"index"
>
<div
class=
"follow-content-item m-b-12"
v-for=
"(item, index) in solicitationFollowData.weComMarketingList"
:key=
"index"
>
<div
class=
"follow-content-item-top"
>
<div
class=
"font-16 color-3 fw5 text-hide"
>
{{
item
.
groupName
}}
</div>
<div
class=
"m-t-8 flex-between fw7"
>
...
...
@@ -46,7 +48,7 @@
</div>
</template>
<
script
>
import
{
mapState
,
mapMutations
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapMutations
,
mapActions
}
from
'vuex'
import
{
solicitApi
}
from
'@/api'
import
{
Toast
}
from
'vant'
export
default
{
...
...
@@ -68,9 +70,9 @@ export default {
},
{
activityId
:
0
,
groupId
:
0
,
groupId
:
527
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-
3
'
,
groupName
:
'定保招揽定保招揽定保招揽 N-
4
'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
...
...
@@ -78,7 +80,7 @@ export default {
activityId
:
0
,
groupId
:
0
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-
3
'
,
groupName
:
'定保招揽定保招揽定保招揽 N-
5
'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
...
...
@@ -86,7 +88,7 @@ export default {
activityId
:
0
,
groupId
:
0
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-
3
'
,
groupName
:
'定保招揽定保招揽定保招揽 N-
6
'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
...
...
@@ -94,7 +96,7 @@ export default {
activityId
:
0
,
groupId
:
0
,
staffId
:
0
,
groupName
:
'定保招揽定保招揽定保招揽 N-
3
'
,
groupName
:
'定保招揽定保招揽定保招揽 N-
7
'
,
groupWeComCustomerCount
:
265
,
solicitationMonth
:
5
},
...
...
@@ -126,8 +128,7 @@ export default {
SET_FOLLOW_INDEX
:
'solicit/SET_FOLLOW_INDEX'
}),
...
mapActions
({
getFollowDataList
:
'solicit/getFollowDataList'
,
getFollowDataList
:
'solicit/getFollowDataList'
}),
solicitationFollow
()
{
let
params
=
{
...
...
@@ -147,12 +148,14 @@ export default {
},
goTo
(
name
,
item
)
{
let
{
activityId
,
groupId
,
staffId
}
=
item
let
{
groupId
,
groupName
}
=
item
let
query
=
{
groupId
}
if
(
name
!==
'solicit.marketing'
)
{
query
.
groupName
=
groupName
}
this
.
$router
.
push
({
name
,
query
:
{
groupId
}
query
})
},
changeFollow
(
index
)
{
...
...
@@ -170,29 +173,36 @@ export default {
.follow-statistics
{
background
:
#fff
;
height
:
82px
;
&-single
{
padding
:
12px
0
;
width
:
33.3%
;
div
{
text-align
:
center
;
}
}
}
.content
{
height
:
calc
(
100vh
-
232px
);
.follow-content
{
padding
:
16px
12px
;
box-sizing
:
border-box
;
&-item
{
background
:
#f7f7f7
;
border-radius
:
8px
;
height
:
140px
;
&-top
{
padding
:
16px
16px
0
16px
;
border-bottom
:
1px
solid
rgba
(
216
,
216
,
216
,
0.3
);
height
:
96px
;
box-sizing
:
border-box
;
}
.follow-btn
{
padding
:
10px
52px
;
box-sizing
:
border-box
;
...
...
@@ -201,6 +211,7 @@ export default {
}
}
}
.custom-image
{
background
:
#fff
;
height
:
100%
;
...
...
src/views/solicit/index.vue
View file @
6d8a3d2
...
...
@@ -12,7 +12,7 @@
import
overview
from
'./overview.vue'
import
follow
from
'./follow.vue'
import
result
from
'./result.vue'
import
{
mapState
,
mapMutations
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapMutations
,
}
from
'vuex'
export
default
{
name
:
'index'
,
data
()
{
...
...
@@ -29,17 +29,13 @@ export default {
})
},
created
()
{
this
.
getStaffId
({
staffuuid
:
this
.
getLocalStorage
(
'dj_scrm_userInfo'
).
uuid
?
this
.
getLocalStorage
(
'dj_scrm_userInfo'
).
uuid
:
''
})
},
methods
:
{
...
mapMutations
({
SET_TAB_INDEX
:
'solicit/SET_TAB_INDEX'
}),
...
mapActions
({
getStaffId
:
'solicit/getStaffId'
}),
changeIndex
(
index
)
{
this
.
SET_TAB_INDEX
({
currentIndex
:
index
})
}
...
...
src/views/solicit/lookCustomer.vue
View file @
6d8a3d2
<
template
>
<div
class=
"customer-container"
>
<div
class=
"customer-container"
v-if=
"flag"
>
<div
class=
"customer-container-head"
>
<div
class=
"font-16 color54 line-24 title"
>
定保N-5
</div>
<div
class=
"font-16 color54 line-24 title"
>
{{
groupName
}}
</div>
<div
class=
"search-head flex"
>
<van-dropdown-menu
active-color=
"#3369B1"
>
<van-dropdown-item
v-model=
"searchType"
:options=
"seachArray"
@
change=
"selectType"
/>
...
...
@@ -11,15 +11,18 @@
<drop-down
:selectOption1=
"statusList"
:selectOption2=
"resultList"
:currentValue1=
"status"
:currentValue2=
"result"
@
changeFirst=
"changeFirst"
@
changeSecond=
"selectSecondChange"
></drop-down>
</div>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<customer-card
:customerInfo=
"customerInfo"
></customer-card>
<!--
<customer-card
:customerInfo=
"customerInfo"
></customer-card>
-->
<!--
<empty
v-else
></empty>
-->
</scroll-view>
</div>
</
template
>
<
script
>
import
{
mapState
}
from
'vuex'
import
{
solicitApi
}
from
'@/api'
export
default
{
data
()
{
return
{
flag
:
false
,
keyWord
:
''
,
status
:
0
,
result
:
0
,
...
...
@@ -30,65 +33,7 @@ export default {
{
text
:
'车架号'
,
value
:
2
},
{
text
:
'手机号码'
,
value
:
3
}
],
customerInfo
:
[
{
id
:
1
,
name
:
'崔美女'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
''
,
type
:
1
,
wechatnick
:
''
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
},
{
id
:
2
,
name
:
'匡先生'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
type
:
2
,
wechatnick
:
'横穿'
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
},
{
id
:
3
,
name
:
'xu先生'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
type
:
1
,
wechatnick
:
'BB'
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
}
],
customerInfo
:
[],
statusList
:
[
{
text
:
'全部状态'
,
value
:
0
},
{
text
:
'已跟进'
,
value
:
1
},
...
...
@@ -99,9 +44,15 @@ export default {
},
computed
:
{
...
mapState
({
followResultList
:
state
=>
state
.
solicit
.
followResultList
followResultList
:
state
=>
state
.
solicit
.
followResultList
,
staffId
:
state
=>
state
.
solicit
.
staffId
,
activityId
:
state
=>
state
.
solicit
.
activityId
})
},
created
()
{
this
.
groupId
=
this
.
getQuery
().
groupId
?
this
.
getQuery
().
groupId
:
''
this
.
groupName
=
this
.
getQuery
().
groupName
?
this
.
getQuery
().
groupName
:
''
},
mounted
()
{
this
.
initOption
()
this
.
showLoading
()
...
...
@@ -110,7 +61,6 @@ export default {
methods
:
{
// 获取送达客户信息
getSendCustomerList
(
index
)
{
console
.
log
(
index
)
this
.
hideLoading
()
let
params
=
{
keyWord
:
this
.
keyWord
,
...
...
@@ -125,13 +75,14 @@ export default {
params
.
followResult
=
this
.
result
!=
0
?
this
.
result
:
''
}
console
.
log
(
params
)
// solicitApi.getCustomerList().then(({ code, data, message }) => {
// if (code == 0) {
// this.customerInfo = data
// } else {
// Notify(message)
// }
// })
solicitApi
.
getCustomerList
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
this
.
customerInfo
=
data
}
else
{
Notify
(
message
)
}
this
.
flag
=
true
})
},
onReachBottom
()
{
this
.
$refs
.
scrollView
.
loading
=
false
...
...
@@ -139,6 +90,10 @@ export default {
},
searchkeyWord
(
e
)
{
this
.
keyWord
=
e
if
(
this
.
searchType
!=
0
&&
this
.
keyWord
.
length
<=
2
)
{
return
}
this
.
getSendCustomerList
()
},
selectType
()
{
...
...
@@ -146,7 +101,6 @@ export default {
},
changeFirst
(
index
)
{
this
.
status
=
index
console
.
log
(
index
)
this
.
result
=
0
this
.
getSendCustomerList
()
},
...
...
@@ -207,6 +161,9 @@ export default {
}
.content
{
height
:
calc
(
100vh
-
154px
);
/deep/
.van-list
{
background
:
#f7f7f7
;
}
}
}
</
style
>
src/views/solicit/marketing.vue
View file @
6d8a3d2
...
...
@@ -22,12 +22,14 @@
<div
class=
"marking-container-customer flex-between"
>
<div
class=
"font-16 color-3 fw5"
>
发送客户
</div>
<div
class=
"color-2f font-14 flex"
@
click=
"goTo('solicit.customer')"
>
共{{ marketingDetails.customerInfoList
.length
}}人
共{{ marketingDetails.customerInfoList
? marketingDetails.customerInfoList.length : 0
}}人
<div
class=
"sprite-icon icon-arrow m-l-8"
></div>
</div>
</div>
<div
class=
"footer"
>
<div
:class=
"{ 'marking-button': true, disabled: marketingDetails.customerInfoList.length == 0 }"
@
click=
"sendHandle"
>
一键发送
</div>
<div
:class=
"{ 'marking-button': true, disabled: !marketingDetails.customerInfoList || marketingDetails.customerInfoList.length == 0 }"
@
click=
"sendHandle"
>
一键发送
</div>
</div>
</div>
</template>
...
...
@@ -47,7 +49,7 @@ export default {
businessUuid
:
'string'
,
businessDesc
:
'string'
,
attContent
:
' 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 '
,
' 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧
jlkajsdfaklsj\n大法师[困][饥饿][示爱]
'
,
attType
:
1
,
attNum
:
0
,
mediaId
:
'string'
,
...
...
@@ -72,7 +74,8 @@ export default {
}
},
created
()
{
this
.
groupId
=
this
.
getQuery
().
groupId
?
this
.
getQuery
().
groupId
:
''
this
.
groupId
=
this
.
getQuery
().
groupId
?
this
.
getQuery
().
groupId
:
2
this
.
getocmarketingList
()
},
computed
:
{
...
mapState
({
...
...
@@ -87,7 +90,7 @@ export default {
//一键营销内容回显
getocmarketingList
()
{
let
params
=
{
activityI
d
:
this
.
activityId
,
i
d
:
this
.
activityId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
}
...
...
@@ -95,7 +98,8 @@ export default {
solicitApi
.
getocmarketingList
(
params
).
then
(({
code
,
data
,
message
})
=>
{
this
.
hideLoading
()
if
(
code
==
'0'
)
{
this
.
marketingDetails
=
data
// this.marketingDetails = data
this
.
$set
(
this
,
'marketingDetails'
,
data
)
this
.
SET_COUSTOMER_LIST
({
customerInfoList
:
data
.
customerInfoList
})
}
else
{
Notify
(
message
)
...
...
@@ -118,6 +122,7 @@ export default {
staffId
:
this
.
staffId
}
solicitApi
.
createdOcmarketing
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
Toast
(
'营销活动已创建,请及时在「企业微信-群发助手」中确认发送'
)
this
.
$router
.
go
(
-
1
)
...
...
@@ -136,25 +141,31 @@ export default {
<
style
lang=
"scss"
scoped
>
.marking-container
{
padding
:
16px
;
&-content
{
background
:
#fff
;
padding
:
16px
;
.marking-image
{
width
:
248px
;
height
:
198px
;
margin
:
12px
32px
16px
32px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
.marking-empty
{
padding
:
39px
0
24px
0
!important
;
/deep/
.van-empty__description
{
padding
:
0
;
}
}
}
&
-customer
{
height
:
56px
;
background
:
#ffffff
;
...
...
@@ -163,6 +174,7 @@ export default {
padding
:
0
16px
;
margin-bottom
:
50px
;
}
.footer
{
width
:
343px
;
height
:
58px
;
...
...
@@ -171,6 +183,7 @@ export default {
position
:
fixed
;
bottom
:
0
;
}
.marking-button
{
width
:
343px
;
height
:
42px
;
...
...
@@ -181,8 +194,10 @@ export default {
color
:
#ffffff
;
line-height
:
42px
;
text-align
:
center
;
margin-bottom
:
16px
;
;
margin-bottom
:
16px
;
;
}
.disabled
{
background
:
#d5d8db
!important
;
}
...
...
src/views/solicit/overview.vue
View file @
6d8a3d2
...
...
@@ -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'
import
{
mapState
,
mapActions
}
from
'vuex'
export
default
{
components
:
{
pieChart
,
...
...
@@ -109,10 +109,22 @@ export default {
},
created
()
{
this
.
bulletinList
=
this
.
$constants
.
BULLETINLIST
this
.
getTaskOverviewData
()
// this.initChartData()
this
.
getStaffId
({
success
:
res
=>
{
this
.
getTaskOverviewData
()
}
})
},
computed
:
{
...
mapState
({
activityId
:
state
=>
state
.
solicit
.
activityId
,
staffId
:
state
=>
state
.
solicit
.
staffId
})
},
methods
:
{
...
mapActions
({
getStaffId
:
'solicit/getStaffId'
}),
getTaskOverviewData
()
{
let
params
=
{
// activityId: this.activityId,
...
...
src/views/solicit/result.vue
View file @
6d8a3d2
...
...
@@ -14,7 +14,7 @@
<div
class=
"font-12 color-2f m-t-4"
>
客户:200人
</div>
</div>
</div>
<div
class=
"result-content-list flex-top"
>
<div
class=
"result-content-list flex-top"
@
click=
"goto('solicit.succeed')"
>
<div
class=
"sprite-icon icon-fail"
></div>
<div
class=
"m-l-8"
>
<div
class=
"font-14 color-3 fw5"
>
成功到店
</div>
...
...
src/views/solicit/statistic.vue
View file @
6d8a3d2
<
template
>
<div>
<div
class=
"statisic-container"
>
<van-tabs
v-model=
"tabIndex"
sticky
@
change=
"tabChange"
>
<van-tab
:title=
"'未送达(' +
customerInfo1.length
+ ')'"
>
<van-tab
:title=
"'未送达(' +
deliveredData.undelivered
+ ')'"
>
<scroll-view
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<div
class=
"reason"
>
<div>
未送达可能原因:
</div>
<div>
1. 客户开启消息免打扰,消息发送失败;
</div>
<div>
2. 群发次数达到上限,上限次数为每个客户每天仅可接收1条群发消息。(系统将连续重试3天)
</div>
</div>
<customer-card
v-if=
"customerInfo1.length
"
:customerInfo=
"customerInfo1"
:groupId=
"groupId"
:groupName=
"groupName
"
></customer-card>
<customer-card
v-if=
"customerInfo1.length
> 0"
:customerInfo=
"customerInfo1
"
></customer-card>
<empty
v-else
></empty>
</scroll-view>
</van-tab>
...
...
@@ -23,13 +23,13 @@
<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
).
toFixed
(
2
)
}}
%)
</span>
<span
class=
"font-10 color39 m-l-4 fw5"
>
(
{{
parseInt
((
Number
(
status
.
value
(
deliveredData
))
/
Number
(
status
.
proportion
(
deliveredData
)))
*
100
)
}}
%)
</span>
</div>
</
template
>
</div>
</div>
<select-bar
:index=
"alreadyIndex"
:list=
"selectBarList"
@
change=
"changeSelectTab"
></select-bar>
<customer-card
v-if=
"customerInfo
1.length"
:customerInfo=
"customerInfo2"
:groupId=
"groupId"
:groupName=
"groupName"
></customer-card>
<customer-card
v-if=
"customerInfo
2.length > 0"
:customerInfo=
"customerInfo2"
></customer-card>
<empty
v-else
></empty>
</van-tab>
</van-tabs>
...
...
@@ -51,146 +51,11 @@ export default {
alreadyIndex
:
0
,
deliveredNum
:
0
,
selectBarList
:
[
'已送达'
,
'已查看'
,
'已领取'
,
'已到店'
],
// 未送达页码
unSendPageParam
:
{
pagesize
:
10
,
pageNum
:
1
},
// 送达页码
sendPageParam
:
{
pagesize
:
10
,
pageNum
:
1
},
// 未送达客户数量
unSendCount
:
null
,
// 送达客户数量
sendCount
:
null
,
// 未送达客户列表
customerInfo1
:
[
{
id
:
1
,
customerName
:
'崔美女'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
''
,
type
:
1
,
wechatnick
:
''
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
},
{
id
:
2
,
customerName
:
'匡先生'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
type
:
2
,
wechatnick
:
'横穿'
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
},
{
id
:
3
,
customerName
:
'xu先生'
,
followResult
:
'未接听'
,
checkStatus
:
'一查看'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
type
:
1
,
wechatnick
:
'BB'
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
}
],
customerInfo1
:
[],
// 已送达客户列表
customerInfo2
:
[
{
id
:
1
,
customerName
:
'崔美女'
,
followResult
:
'未接听'
,
checkStatus
:
'1'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
''
,
type
:
1
,
wechatnick
:
''
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
},
{
id
:
2
,
customerName
:
'匡先生'
,
followResult
:
'未接听'
,
checkStatus
:
'0'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
type
:
2
,
wechatnick
:
'横公司高峰期穿'
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
},
{
id
:
3
,
customerName
:
'xu先生'
,
followResult
:
'未接听'
,
checkStatus
:
'1'
,
solicitTime
:
'05-07 15:30'
,
updatedTime
:
'05-07 15:30'
,
phoneNumber
:
'18818188989'
,
type
:
2
,
wechatnick
:
'BB'
,
cars
:
[
{
customerId
:
0
,
carSeries
:
'奔驰 G63'
,
carNumber
:
'粤B 6666'
,
carBuyDate
:
'2022-06-04T06:36:16.314Z'
}
]
}
],
deliveredData
:
{
// delivered: '2000',
// viewed: '1600',
// received: '800',
// arrived: '400'
},
customerInfo2
:
[],
deliveredData
:
{},
reachStatus
:
[
{
text
:
'已送达'
,
...
...
@@ -247,44 +112,32 @@ export default {
},
mounted
()
{
this
.
showLoading
()
// 未送达
this
.
getSendCustomerList
(
0
)
// 已送达
this
.
getSendCustomerList
(
1
)
// 触达统计-客户送达分层
this
.
deliveredStatistics
()
this
.
getSendCustomerList
(
0
)
//未送达
this
.
getSendCustomerList
(
1
)
//已送达
},
methods
:
{
// tab栏切换
tabChange
(
e
)
{
this
.
tabIndex
=
e
if
(
e
==
1
)
{
// 触达统计-客户送达分层
// this.deliveredStatistics()
}
},
// 已送达Tab四种状态
changeSelectTab
(
e
)
{
console
.
log
(
e
)
this
.
alreadyIndex
=
e
this
.
getSendCustomerList
(
1
)
},
// 获取送达
/未送达
客户信息
// 获取送达客户信息
getSendCustomerList
(
index
)
{
console
.
log
(
index
)
this
.
hideLoading
()
let
target
=
[
'customerInfo1'
,
'customerInfo2'
]
let
{
alreadyIndex
}
=
this
let
params
=
{
customerGroupType
:
1
,
// id: this.activityId,
id
:
3
,
// staffId: this.staffId,
staffId
:
363
,
// groupId: this.groupId,
groupId
:
527
,
// 发送状态 0-未发送 1-已发送
sendStatus
:
index
customerGroupType
:
2
,
id
:
this
.
activityId
,
staffId
:
this
.
staffId
,
groupId
:
this
.
groupId
,
sendStatus
:
index
//发送状态 0-未发送 1-已发送
}
if
(
index
===
1
)
{
// 0-未查看 1-已查看
...
...
@@ -294,10 +147,11 @@ export default {
// 0.未到店 1.已到店
if
(
alreadyIndex
===
3
)
params
.
retFacFlag
=
1
}
console
.
log
(
params
)
solicitApi
.
getCustomerList
(
params
).
then
(({
code
,
data
,
message
})
=>
{
if
(
code
==
0
)
{
this
.
target
[
index
]
=
data
this
[
target
[
index
]]
=
data
}
else
{
Notify
(
message
)
}
})
},
...
...
@@ -320,22 +174,19 @@ export default {
},
// 下拉触底刷新
onReachBottom
()
{
console
.
log
(
'触底'
)
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
// 未送达页面
if
(
this
.
tabIndex
===
0
)
{
this
.
unSendPageParam
.
pageNum
++
return
}
// 送达页面
this
.
sendPageParam
.
pageNum
++
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.statisic-container
{
/deep/
.van-list
{
background
:
#f7f7f7
;
}
}
.reason
{
padding
:
16px
;
font-size
:
12px
;
...
...
@@ -362,6 +213,7 @@ export default {
}
.statistic-list
{
white-space
:
nowrap
;
width
:
calc
(
100%
-
208px
);
.circle
{
width
:
8px
;
height
:
8px
;
...
...
vue.config.js
View file @
6d8a3d2
...
...
@@ -51,7 +51,7 @@ const spritesmithFunction = data => {
return
`
${
shared
}
\n
${
perSprite
}
`
}
module
.
exports
=
{
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-work-main-
kuangyq
/'
,
// 署应用包时的基本 URL。 vue-router hash 模式使用
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-work-main-
test
/'
,
// 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
...
...
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