外呼以及显示连接数
This commit is contained in:
@@ -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}} <span style="color:#409EFF;cursor:pointer;" @click="copy_op(user_info.UserName)">复制</span></p>
|
||||
<p oncopy="return false;">电话:{{user_info.UserName}} <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'
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user