Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 e3a46d02
authored
Feb 15, 2022
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
咨询记录
1 parent
6ac56e61
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
377 additions
and
12 deletions
linkwe-ui/src/views/customerService/components/RecordListInPhone.vue
linkwe-ui/src/views/customerService/customerServiceManage/detail.vue
linkwe-ui/src/views/customerService/customerServiceManage/index.vue
linkwe-ui/src/views/customerService/searchRecord/index.vue
linkwe-ui/src/views/customerService/components/RecordListInPhone.vue
0 → 100644
View file @
e3a46d0
<
template
>
<div
class=
"preview"
>
<!--
<div
class=
"title"
>
{{
name
}}
</div>
-->
<div
class=
"content"
>
<div
v-if=
"data.length"
>
<template
v-for=
"(unit,key) in data"
>
<div
v-if=
"unit.origin === 3"
>
<div
class=
"text"
>
{{
unit
.
customerName
}}
</div>
<div
class=
"text send-time"
>
{{
unit
.
sendTime
}}
</div>
<div
class=
"item"
>
<div
class=
"avatar"
><img
class=
"img-st"
:src=
"unit.customerAvatar"
></div>
<div
class=
"msg"
>
<div
class=
"word"
>
{{
unit
.
content
}}
</div>
</div>
</div>
</div>
<div
v-else-if=
"unit.origin === 5"
>
<div
class=
"text text-right"
>
{{
unit
.
customerName
}}
</div>
<div
class=
"send-time text-right"
>
{{
unit
.
sendTime
}}
</div>
<div
class=
"item right"
>
<div
class=
"right-msg"
v-if=
"unit.msgType === 'link'"
>
<div
class=
"word-and-image"
>
<div
class=
"sub-content"
>
<div>
<!--
{{
data
.
materialUrl
}}
-->
</div>
<div>
<img
src=
"../../../assets/drainageCode/default_icon.png"
/>
</div>
</div>
</div>
</div>
<div
class=
"right-msg"
v-else-if=
"miniprogram"
>
<div
class=
"miniprogram"
>
<div
class=
"mini-header"
>
<img
src=
"../../../assets/drainageCode/miniprogram-icon.png"
alt=
""
>
</div>
<img
class=
"mini-img"
src=
"../../../assets/drainageCode/miniprogram-img.png"
>
<div
class=
"mini-footer"
>
<img
src=
"../../../assets/drainageCode/miniprogram-link.png"
/>
小程序
</div>
</div>
</div>
<div
class=
"right-msg"
v-else
>
<div
class=
"word"
>
{{
unit
.
content
}}
</div>
</div>
<div
class=
"avatar"
><img
class=
"img-st"
:src=
"unit.kfAvatar"
></div>
</div>
</div>
</
template
>
</div>
</div>
</div>
</template>
<
script
>
import
moment
from
'moment'
export
default
{
name
:
'record-list-in-phone'
,
components
:
{},
props
:
{
data
:
{
type
:
Array
,
default
:
()
=>
{
return
[]}
}
},
watch
:
{
},
data
()
{
return
{
list
:
[],
time
:
moment
().
format
(
'HH:mm'
)
}
},
created
()
{
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.send-time
{
font-size
:
12px
;
color
:
#999
;
}
.text
{
padding
:
3px
0
;
}
.text-right
{
text-align
:
right
;
}
.menu-list
{
margin
:
10px
;
.menu
{
margin
:
10px
0
;
color
:
#2c8cf0
;
cursor
:
pointer
;
}
}
.none
{
display
:
inline-block
;
}
.text-sub
{
margin
:
10px
0
;
text-align
:
center
;
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
}
.img-st
{
height
:
24px
;
width
:
24px
;
}
.preview
{
margin
:
0
auto
;
position
:
relative
;
width
:
300px
;
height
:
640px
;
background
:
url(../../../assets/drainageCode/preview-bg.png)
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
.title
{
position
:
absolute
;
top
:
37px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
}
.content
{
position
:
absolute
;
height
:
545px
;
width
:
280px
;
overflow-y
:
auto
;
top
:
70px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
border-bottom-left-radius
:
20px
;
border-bottom-right-radius
:
20px
;
padding
:
20px
;
.time
{
width
:
100%
;
text-align
:
center
;
//
margin-bottom
:
10px
;
}
.item
{
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
display
:
flex
;
margin-top
:
20px
;
}
.right
{
display
:
flex
;
justify-content
:
flex-end
;
}
.avatar
{
margin-right
:
5px
;
}
.msg
{
position
:
relative
;
min-height
:
26px
;
background
:
#ffffff
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border
:
1px
solid
#e1edfc
;
display
:
inline-block
;
border-radius
:
4px
;
box-sizing
:
border-box
;
word-break
:
break-all
;
margin-left
:
5px
;
&:before
{
content
:
" "
;
display
:
block
;
position
:
absolute
;
left
:
-5px
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border-width
:
5px
;
border-left
:
0
;
width
:
0
;
border-style
:
solid
;
border-color
:
transparent
;
border-right-color
:
#fff
;
top
:
8px
;
z-index
:
888
;
}
}
.right-msg
{
position
:
relative
;
min-height
:
26px
;
background
:
#ffffff
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border
:
1px
solid
#e1edfc
;
display
:
inline-block
;
border-radius
:
4px
;
box-sizing
:
border-box
;
word-break
:
break-all
;
margin-right
:
5px
;
&:before
{
content
:
" "
;
display
:
block
;
position
:
absolute
;
right
:
-5px
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border-width
:
5px
;
border-right
:
0
;
width
:
0
;
border-style
:
solid
;
border-color
:
transparent
;
border-left-color
:
#fff
;
top
:
8px
;
z-index
:
888
;
}
}
.word
{
padding
:
5px
12px
;
}
.image
{
padding
:
12px
;
img
{
width
:
94px
;
height
:
90px
;
}
}
.word-and-image
{
padding
:
12px
;
.sub-content
{
margin-top
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
img
{
height
:
40px
;
width
:
40px
;
}
}
}
.miniprogram
{
padding
:
12px
;
.mini-header
{
display
:
flex
;
align-items
:
center
;
img
{
height
:
18px
;
width
:
18px
;
margin-right
:
5px
;
}
}
.mini-img
{
margin
:
10px
0
;
width
:
143px
;
height
:
120px
;
}
.mini-footer
{
display
:
flex
;
align-items
:
center
;
img
{
height
:
14px
;
width
:
14px
;
margin-right
:
5px
;
}
}
}
}
}
</
style
>
linkwe-ui/src/views/customerService/customerServiceManage/detail.vue
View file @
e3a46d0
...
...
@@ -42,9 +42,7 @@
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"时间段"
>
{{
item
.
beginTime
}}
——
{{
item
.
endTime
}}
{{
item
.
beginTime
}}
——
{{
item
.
endTime
}}
</el-time-select>
</el-form-item>
<el-form-item
label=
"欢迎语"
style=
"width: 50%; margin-bottom: 0;"
>
...
...
@@ -87,6 +85,55 @@
</div>
</el-form>
</div>
<div
class=
"g-card g-pad20"
>
<div
class=
"title"
>
接待规则
</div>
<el-form
label-position=
"right"
label-width=
"120px"
>
<el-form-item
label=
"接待员工:"
>
<div>
<el-tag
size=
"medium"
v-for=
"(item, index) in detail.userIdList"
:key=
"index"
>
{{ item.userName }}
</el-tag>
</div>
</el-form-item>
<el-form-item
label=
"分配方式:"
>
{{detail.allocationWay === 1 ? '轮流分配':'空闲分配'}}
</el-form-item>
<el-form-item
label=
"优先分配:"
>
<el-switch
v-model=
"detail.isPriority"
disabled
:active-value=
2
:inactive-value=
1
></el-switch>
</el-form-item>
<el-form-item
label=
"接待上限:"
>
一个接待员工最多同时接待{{detail.receiveLimit}}人
</el-form-item>
<el-form-item
label=
"排队提醒:"
>
<el-switch
v-model=
"detail.queueNotice"
disabled
:active-value=
1
:inactive-value=
2
></el-switch>
<el-input
v-if=
"detail.queueNotice === 1"
type=
"textarea"
disabled
v-model=
"detail.queueNoticeContent"
maxlength=
"200"
:autosize=
"{ minRows: 3, maxRows: 20 }"
/>
</el-form-item>
<el-form-item
label=
"超时未回复提醒:"
>
<el-switch
v-model=
"detail.timeOutNotice"
disabled
:active-value=
1
:inactive-value=
2
></el-switch>
<div
v-if=
"detail.timeOutNotice === 1"
>
超过
<el-input
disabled
style=
" width:60px;"
v-model=
"detail.timeOut"
></el-input>
<el-select
disabled
style=
"width:80px;"
v-model=
"detail.timeOutType"
>
<el-option
label=
"分钟"
:value=
"1"
></el-option>
<el-option
label=
"小时"
:value=
"2"
></el-option>
</el-select>
客户未回复时,自动发送提示语
<el-input
disabled
style=
"margin-top: 10px;"
type=
"textarea"
v-model=
"detail.timeOutContent"
maxlength=
"200"
:autosize=
"{ minRows: 3, maxRows: 20 }"
/>
</div>
</el-form-item>
<el-form-item
label=
"自动结束提醒:"
>
<el-switch
disabled
v-model=
"detail.endNotice"
:active-value=
1
:inactive-value=
2
></el-switch>
<div
v-if=
"detail.endNotice === 1"
>
超过
<el-input
disabled
style=
" width:60px;"
v-model=
"detail.endNoticeTime"
></el-input>
<el-select
disabled
style=
"width:80px;"
v-model=
"detail.endTimeType"
>
<el-option
label=
"分钟"
:value=
"1"
></el-option>
<el-option
label=
"小时"
:value=
"2"
></el-option>
</el-select>
客户未回复时,自动发送结束语
<el-input
disabled
style=
"margin-top: 10px;"
type=
"textarea"
v-model=
"detail.endContent"
maxlength=
"200"
:autosize=
"{ minRows: 3, maxRows: 20 }"
/>
</div>
</el-form-item>
</el-form>
</div>
</el-col>
<el-col
style=
"width: 350px"
>
<div
class=
"g-card g-pad20"
style=
"height: 100%"
>
...
...
@@ -94,7 +141,7 @@
</div>
</el-col>
</el-row>
</div>
</div>
</template>
<
script
>
import
ShowInPhone
from
'../components/WelcomeInPhonePre.vue'
...
...
linkwe-ui/src/views/customerService/customerServiceManage/index.vue
View file @
e3a46d0
...
...
@@ -9,7 +9,7 @@
<el-button
type=
"primary"
plain
size=
"mini"
@
click=
"showDialog = true"
>
升级服务
</el-button>
</div>
</div>
<el-table
v-loading=
"
l
oading"
:data=
"list"
style=
"margin-top:20px;width: 100%"
>
<el-table
v-loading=
"
tableL
oading"
:data=
"list"
style=
"margin-top:20px;width: 100%"
>
<el-table-column
label=
"客服"
align=
"center"
prop=
""
min-width=
"120"
>
<template
slot-scope=
"
{ row }">
<show-customer-service
:url=
'row.avatar'
:name=
'row.name'
showicon
></show-customer-service>
...
...
@@ -104,6 +104,7 @@
data
()
{
return
{
loading
:
false
,
tableLoading
:
false
,
list
:
[],
showDialog
:
false
,
showMemberDialog
:
false
,
...
...
@@ -138,8 +139,10 @@
}
},
getData
()
{
this
.
tableLoading
=
true
getList
().
then
(
res
=>
{
this
.
list
=
res
.
rows
this
.
tableLoading
=
false
})
},
moreMemberFn
(
data
)
{
...
...
linkwe-ui/src/views/customerService/searchRecord/index.vue
View file @
e3a46d0
...
...
@@ -76,7 +76,7 @@
<SelectUser
:visible
.
sync=
"dialogVisible"
title=
"组织架构"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
></SelectUser>
<el-dialog
title=
"咨询记录"
:visible
.
sync=
"showPreviewDialog"
width=
"50%"
>
<div>
<
!-- <preview-client :list="previewData"></preview-client> --
>
<
record-list-in-phone
:data=
"detail"
></record-list-in-phone
>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"showPreviewDialog = false"
>
关闭
</el-button>
...
...
@@ -87,6 +87,7 @@
<
script
>
import
SelectUser
from
'@/components/SelectUser'
import
ShowCustomerService
from
"../components/ShowCustomerSevice.vue"
import
RecordListInPhone
from
"../components/RecordListInPhone.vue"
import
{
getResultList
,
getList
,
getSceneList
,
exportResult
,
getResultDetail
}
from
'@/api/drainageCode/customerService.js'
import
{
download
}
from
'@/utils/common'
...
...
@@ -94,7 +95,8 @@
name
:
'search-record'
,
components
:
{
ShowCustomerService
,
SelectUser
SelectUser
,
RecordListInPhone
},
data
()
{
return
{
...
...
@@ -117,15 +119,38 @@
customerList
:
[],
sceneList
:
[],
showPreviewDialog
:
false
,
detail
:
{}
detail
:
[]
}
},
methods
:
{
showResultList
(
data
)
{
getResultDetail
({
openKfId
:
'wkiGuBCgAAv62MAnG1RbHJMUqG1wqGlg'
,
externalUserId
:
data
.
externalUserId
}).
then
(
res
=>
{
// getResultDetail({ openKfId: data.openKfId
, externalUserId: data.externalUserId }).then(res => {
this
.
showPreviewDialog
=
true
this
.
detail
=
res
.
rows
})
this
.
detail
=
[{
"content"
:
"string"
,
"customerAvatar"
:
"string"
,
"customerName"
:
"string"
,
"externalUserId"
:
"string"
,
"kfAvatar"
:
"string"
,
"kfName"
:
"string"
,
"msgId"
:
"string"
,
"msgType"
:
"string"
,
"openKfId"
:
"string"
,
"origin"
:
3
,
"sendTime"
:
"2022-02-14T15:40:11.085Z"
},
{
"content"
:
"string"
,
"customerAvatar"
:
"string"
,
"customerName"
:
"string"
,
"externalUserId"
:
"string"
,
"kfAvatar"
:
"string"
,
"kfName"
:
"string"
,
"msgId"
:
"string"
,
"msgType"
:
"string"
,
"openKfId"
:
"string"
,
"origin"
:
5
,
"sendTime"
:
"2022-02-14T15:40:11.085Z"
},]
// })
},
exportFn
()
{
this
.
$confirm
(
'确认导出吗?'
,
'提示'
,
{
...
...
@@ -175,10 +200,11 @@
this
.
getList
()
},
getList
()
{
console
.
log
(
this
.
search
)
this
.
loading
=
true
getResultList
(
this
.
search
).
then
(
res
=>
{
this
.
list
=
res
.
rows
this
.
total
=
Number
(
res
.
total
)
this
.
loading
=
false
})
},
deleteFn
(
data
)
{
...
...
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