外呼以及显示连接数

This commit is contained in:
“wanyongkang”
2023-09-17 18:08:36 +08:00
parent 34e036d759
commit 3033368b34
3 changed files with 83 additions and 4 deletions

View File

@@ -138,6 +138,7 @@
layout="total,prev, pager, next"
:total="retData.TotalCount"
></el-pagination>
<span>共有连接数{{countConnect}}</span>
</div>
<userDrawer ref="userDrawer" @select="onSelect"></userDrawer>
<el-dialog title="查看在线" :visible.sync="showOnlineDialog" width="900px" v-loading="loadingOnline">
@@ -179,6 +180,7 @@ export default {
loadingOnline: false,
retData: { TotalCount: 0, Data: [] },
products: [],
countConnect: 0,
packages: [
{
label: '年卡',
@@ -277,6 +279,7 @@ export default {
var userId = this.$route.query.userId
if (userId) this.searchModel.UserId = userId
this.get()
this.getCount()
// this.getProductWithPackage()
this.getProduct()
// eslint-disable-next-line camelcase
@@ -295,6 +298,7 @@ export default {
search () {
this.searchModel.PageIndex = 1
this.get()
this.getCount()
},
get () {
if (this.dateRange && this.dateRange.length === 2) {
@@ -311,6 +315,22 @@ export default {
this.retData = res
})
},
getCount () {
if (this.dateRange && this.dateRange.length === 2) {
this.searchModel.Btime = this.dateRange[0]
this.searchModel.Etime = this.dateRange[1]
}
if (this.dateRange1 && this.dateRange1.length === 2) {
this.searchModel.Bktime = this.dateRange1[0]
this.searchModel.Ektime = this.dateRange1[1]
}
var that =this;
this.$api.post(this.$api.phpURL + 'manager/account/getAccountCount', this.searchModel).then(res => {
that.countConnect = res.data.sum
})
},
getProduct () {
this.loading = true
this.$api.get('course/v1/product/page', this.searchModel).then(res => {

View File

@@ -114,6 +114,7 @@
<el-table-column label="会员号">
<template slot-scope="scope">
<el-link @click="click_username(scope.row)">{{scope.row.UserName}}</el-link>
<br> <span style="color:#409EFF;cursor:pointer;" @click="hujiao(scope.row)">拨号</span>
</template>
</el-table-column>
<el-table-column prop="is_verify" label="是否实名"></el-table-column>
@@ -176,9 +177,15 @@
</el-select>
<el-input style="margin:5px 0" v-model="set_follow_status.remark" size="small" placeholder="请输入跟进记录"></el-input>
<el-table :data="follow_status_list" border>
<el-table-column prop="create_time" label="时间"></el-table-column>
<el-table-column v-if="$local.isRoot()" prop="op_user" label="维护经理"></el-table-column>
<el-table-column prop="remark" label="跟进记录"></el-table-column>
<el-table-column prop="create_time" width="200" label="时间"></el-table-column>
<el-table-column v-if="$local.isRoot()" width="100" prop="op_user" label="维护经理"></el-table-column>
<el-table-column prop="druation" width="90" label="呼叫时长"></el-table-column>
<el-table-column label="跟进记录">
<template slot-scope="scope">
<span v-if="scope.row.remark != null">{{scope.row.remark}}</span>
<span v-if="scope.row.remark == null"><el-link style="color:#409EFF;cursor:pointer;" @click="click_follow_remark(scope.row)">修改</el-link></span>
</template>
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="follow_status_change_fall = false"> </el-button>
@@ -186,12 +193,32 @@
</span>
</el-dialog>
<el-dialog
title="拨打电话后修改跟进状态"
:visible.sync="follow_status_change_two"
width="50%">
<el-select size="small" v-model="set_follow_status.status" placeholder="请选择">
<el-option
v-for="item in types"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-input style="margin:5px 0" v-model="set_follow_status.remark" size="small" placeholder="请输入跟进记录"></el-input>
<span slot="footer" class="dialog-footer">
<el-button @click="follow_status_change_two = false"> </el-button>
<el-button :disabled="clickOk" type="primary" @click="changeFolowStatus()"> </el-button>
</span>
</el-dialog>
<el-dialog
title="用户信息"
:visible.sync="userinfo_fall"
width="30%">
<el-card class="box-card">
<p oncopy="return false;">电话{{user_info.UserName}} &nbsp;&nbsp; <span style="color:#409EFF;cursor:pointer;" @click="copy_op(user_info.UserName)">复制</span></p>
<p oncopy="return false;">电话{{user_info.UserName}} &nbsp;&nbsp; <span style="color:#409EFF;cursor:pointer;" @click="copy_op(user_info.UserName)">复制</span>
</p>
<p>微信{{user_info.Wx}}</p>
<p>QQ{{user_info.QQ}}</p>
</el-card>
@@ -266,8 +293,10 @@ export default {
types: [],
user_info: {},
follow_status_change_fall: false,
follow_status_change_two: false,
follow_status_list: [],
set_follow_status: {
id: null,
user_id: null,
old_status: null,
status: null,
@@ -392,6 +421,14 @@ export default {
this.follow_status_list = res.data
})
},
click_follow_remark (row) {
this.clickOk = false
this.follow_status_change_two = true
this.set_follow_status.id = row.id
this.set_follow_status.status = this.setStatus(row.follow_status)
this.set_follow_status.user_id = row.user_id
this.set_follow_status.old_status = row.follow_status
},
changeFolowStatus () {
// eslint-disable-next-line valid-typeof
if (typeof this.set_follow_status.status !== 'number') {
@@ -404,6 +441,8 @@ export default {
this.clickOk = true
this.$api.post(this.$api.phpURL + 'manager/UserFollow/changeFolowStatus', {data: this.set_follow_status}).then(res => {
this.follow_status_change_fall = false
this.follow_status_change_two = false
this.set_follow_status.id = null
})
},
click_username (row) {
@@ -496,6 +535,24 @@ export default {
type: 'success'
})
}
},
hujiao(r) {
var phone = r.LoginCode;
this.$api.post(this.$api.phpURL + 'manager/UserFollow/hujiao', {phone: phone}).then(res => {
if (res.Code == 30000) {
this.$message({
message: res.msg,
type: 'error'
})
} else {
this.$message({
message: '呼叫成功',
type: 'success'
})
}
})
}
}
}

View File

@@ -28,6 +28,8 @@
</template>
</el-table-column>
<el-table-column prop="record" label="维护记录" width="300"></el-table-column>
<el-table-column prop="telstarttime" label="呼叫开始时间" width="200"></el-table-column>
<el-table-column prop="druation" label="呼叫时长" width="100"></el-table-column>
<el-table-column prop="remark" label="备注"></el-table-column>
</el-table>