Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 5632c974
authored
Aug 26, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit:智能外呼紧急需求
1 parent
342483df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
7 deletions
src/api/modules/outbound.js
src/config/index.js
src/views/outbound/index.vue
src/api/modules/outbound.js
View file @
5632c97
...
...
@@ -132,4 +132,15 @@ const getOutBoundNum = params => {
})
}
export
default
{
getTaskList
,
getStatusStatistics
,
setOutBoundNum
,
createExecuteTask
,
getRobotList
,
getCallerList
,
taskbaseDetails
,
getphoneStatusList
,
downloadPhoneList
,
updateStatus
,
updatePhoneStatus
,
getOutBoundNum
}
// 查看外呼任务短信内容
const
getOutBoundtaskMessage
=
params
=>
{
params
.
method
=
'entmicro.api.outbound.task.message.detail.query'
return
http
({
url
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getOutBoundtaskMessage
,
getTaskList
,
getStatusStatistics
,
setOutBoundNum
,
createExecuteTask
,
getRobotList
,
getCallerList
,
taskbaseDetails
,
getphoneStatusList
,
downloadPhoneList
,
updateStatus
,
updatePhoneStatus
,
getOutBoundNum
}
src/config/index.js
View file @
5632c97
...
...
@@ -18,9 +18,6 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/62ecda0909756a6f4f85cf9a/outbound/config')
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config'
)
}
...
...
src/views/outbound/index.vue
View file @
5632c97
...
...
@@ -54,6 +54,7 @@
</
template
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"currentIndex == 1 || (currentIndex == 3 && scope.scope.stopType == '自动暂停') || (currentIndex == 3 && scope.scope.stopType == null)"
@
click=
"handleOutboundOn(scope.scope)"
>
开启外呼
</el-button>
<el-button
type=
"text"
v-if=
"currentIndex == 1"
@
click=
"marketing(scope.scope)"
>
外呼短信
</el-button>
<el-button
type=
"text"
v-if=
"currentIndex == 3 && scope.scope.stopType && scope.scope.stopType == '手动暂停'"
@
click=
"handleStop(scope.scope, 2)"
>
开启外呼
</el-button>
<el-button
type=
"text"
v-if=
"currentIndex == 2 || currentIndex == 3 || currentIndex == 4"
@
click=
"handleDetails(scope.scope)"
>
详情
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.taskStatus == 2"
@
click=
"handleStop(scope.scope, 1)"
>
暂停
</el-button>
...
...
@@ -80,6 +81,12 @@
</div>
<p
class=
"marked"
>
默认所有外呼任务按此规则进行外呼
</p>
</GLDialog>
<!-- 外呼短信 -->
<GLDialog
:mode=
"mode"
title=
"外呼短信"
:hasFooter=
"false"
:visible
.
sync=
"outboundmarketVisible"
>
<div
class=
"market-note"
>
{{ marketNote }}
</div>
</GLDialog>
<!-- 开启外呼确认 -->
<GLDialog
:mode=
"mode"
title=
"开启外呼确认"
:visible
.
sync=
"openVisible"
@
onCancel=
"handleOpenOutboundClose"
@
onOk=
"handleOpenOutboundConfirm"
>
<tip-panel
panelMinHeight=
"45px"
:panelContent=
"panelContent"
v-if=
"isPanel"
@
closePanel=
"closePanel"
></tip-panel>
...
...
@@ -135,8 +142,10 @@ export default {
activeName
:
'notExecute'
,
isPanel
:
true
,
outboundVisible
:
false
,
outboundmarketVisible
:
false
,
openVisible
:
false
,
taskData
:
{},
marketNote
:
''
,
outboundForm
:
{
outboundNum
:
60
,
taskId
:
''
,
...
...
@@ -430,7 +439,7 @@ export default {
},
downloadFile
(
url
,
fileName
)
{
this
.
getBlob
(
url
).
then
(
blob
=>
{
this
.
saveAs
(
blob
,
fileName
+
'.xlsx'
)
this
.
saveAs
(
blob
,
fileName
)
})
},
getBlob
(
url
)
{
...
...
@@ -642,6 +651,19 @@ export default {
}
})
},
//营销短信
marketing
(
data
)
{
let
params
=
{
taskId
:
data
.
id
}
this
.
$apis
.
outbound
.
getOutBoundtaskMessage
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
outboundmarketVisible
=
true
this
.
marketNote
=
res
.
data
.
messageDetail
}
})
},
//外呼详情
handleDetails
(
data
)
{
this
.
$router
.
push
({
...
...
@@ -693,7 +715,7 @@ export default {
if
(
item
.
label
==
'操作'
)
{
switch
(
this
.
currentIndex
)
{
case
1
:
item
.
width
=
9
0
item
.
width
=
17
0
break
case
2
:
item
.
width
=
115
...
...
@@ -1005,6 +1027,11 @@ export default {
/
deep
/
.row-expand-cover
.el-table__expand-icon
{
visibility
:
hidden
;
}
.market-note
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
22px
;
}
}
</
style
>
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