Commit 5632c974 by 前端

commit:智能外呼紧急需求

1 parent 342483df
...@@ -132,4 +132,15 @@ const getOutBoundNum = params => { ...@@ -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}
...@@ -18,9 +18,6 @@ export const fetchConfig = function (isEnv = true) { ...@@ -18,9 +18,6 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // 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().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') return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/62fe2a36abac6ff6ac239d3c/outbound/config')
} }
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
</template> </template>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <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 || (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 == 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="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> <el-button type="text" v-if="scope.scope.taskStatus == 2" @click="handleStop(scope.scope, 1)">暂停</el-button>
...@@ -80,6 +81,12 @@ ...@@ -80,6 +81,12 @@
</div> </div>
<p class="marked">默认所有外呼任务按此规则进行外呼</p> <p class="marked">默认所有外呼任务按此规则进行外呼</p>
</GLDialog> </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"> <GLDialog :mode="mode" title="开启外呼确认" :visible.sync="openVisible" @onCancel="handleOpenOutboundClose" @onOk="handleOpenOutboundConfirm">
<tip-panel panelMinHeight="45px" :panelContent="panelContent" v-if="isPanel" @closePanel="closePanel"></tip-panel> <tip-panel panelMinHeight="45px" :panelContent="panelContent" v-if="isPanel" @closePanel="closePanel"></tip-panel>
...@@ -135,8 +142,10 @@ export default { ...@@ -135,8 +142,10 @@ export default {
activeName: 'notExecute', activeName: 'notExecute',
isPanel: true, isPanel: true,
outboundVisible: false, outboundVisible: false,
outboundmarketVisible: false,
openVisible: false, openVisible: false,
taskData: {}, taskData: {},
marketNote: '',
outboundForm: { outboundForm: {
outboundNum: 60, outboundNum: 60,
taskId: '', taskId: '',
...@@ -430,7 +439,7 @@ export default { ...@@ -430,7 +439,7 @@ export default {
}, },
downloadFile(url, fileName) { downloadFile(url, fileName) {
this.getBlob(url).then(blob => { this.getBlob(url).then(blob => {
this.saveAs(blob, fileName + '.xlsx') this.saveAs(blob, fileName)
}) })
}, },
getBlob(url) { getBlob(url) {
...@@ -642,6 +651,19 @@ export default { ...@@ -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) { handleDetails(data) {
this.$router.push({ this.$router.push({
...@@ -693,7 +715,7 @@ export default { ...@@ -693,7 +715,7 @@ export default {
if (item.label == '操作') { if (item.label == '操作') {
switch (this.currentIndex) { switch (this.currentIndex) {
case 1: case 1:
item.width = 90 item.width = 170
break break
case 2: case 2:
item.width = 115 item.width = 115
...@@ -1005,6 +1027,11 @@ export default { ...@@ -1005,6 +1027,11 @@ export default {
/deep/ .row-expand-cover .el-table__expand-icon { /deep/ .row-expand-cover .el-table__expand-icon {
visibility: hidden; visibility: hidden;
} }
.market-note {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 22px;
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!