增加呼出
This commit is contained in:
parent
a46fc063b1
commit
c205347416
@ -84,7 +84,7 @@
|
||||
</div>
|
||||
|
||||
<div class="case-debt-info-call flex-row justify-content-between align-items-center">
|
||||
<div class="flex-row align-items-center cursor-pointer">
|
||||
<div class="flex-row align-items-center cursor-pointer" @click="startOutboundCall">
|
||||
<div class="f32 color-1960F4 mr-8"><i class="el-icon-phone"></i></div>
|
||||
<div>呼叫被申请人</div>
|
||||
</div>
|
||||
@ -132,7 +132,7 @@
|
||||
|
||||
<!-- 联系人信息 -->
|
||||
<div v-if="leftActive == 2" class="case-contact-person">
|
||||
<contactPerson :caseId="caseId" />
|
||||
<contactPerson :caseId="caseId" @startOutboundCall="startOutboundCall" />
|
||||
|
||||
</div>
|
||||
|
||||
@ -480,6 +480,13 @@ export default {
|
||||
openRecordDialog(obj) {
|
||||
this.visiblemediatRecord = true;
|
||||
this.visiblemediatRecordObj = obj;
|
||||
},
|
||||
startOutboundCall(phone, contactId) {
|
||||
let params = {
|
||||
phone: phone || null,
|
||||
contactId: contactId || null
|
||||
}
|
||||
this.$emit('startOutboundCall', params)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -113,7 +113,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 中间数据 -->
|
||||
<LayoutContentNew ref="layoutContent" :caseId="caseId" />
|
||||
<LayoutContentNew ref="layoutContent" :caseId="caseId" @startOutboundCall="startOutboundCall" />
|
||||
|
||||
</div>
|
||||
|
||||
@ -641,9 +641,11 @@ export default {
|
||||
}
|
||||
},
|
||||
// 电话呼出
|
||||
async startOutboundCall() {
|
||||
async startOutboundCall(phone, contactId) {
|
||||
// this.phoneNumber = this.queue ? this.queueList[this.index].phone : this.baseInfo.phone
|
||||
if (this.calling) return
|
||||
this.phoneNumber = '13982024318'
|
||||
if (contactId) this.contactId=contactId
|
||||
|
||||
console.log('进入呼叫电话:', this.phoneNumber)
|
||||
try {
|
||||
@ -676,7 +678,7 @@ export default {
|
||||
// 呼叫失败
|
||||
async callingFail () {
|
||||
try {
|
||||
let res = await api.callingSuccess({caseId: this.caseId,contactId: this.contactId})
|
||||
let res = await api.callingFail({caseId: this.caseId,contactId: this.contactId})
|
||||
} catch (err) { }
|
||||
},
|
||||
// 挂断会话
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="color-86909C mt-8 ml-8 f16">
|
||||
<a class="mr-24 cursor-pointer"><i class="el-icon-phone"></i> 电话</a>
|
||||
<a class="mr-24 cursor-pointer" @click="makeCall(item)"><i class="el-icon-phone"></i> 电话</a>
|
||||
|
||||
<el-popover v-if="item.role == 'DEBTOR' && item.type =='本人'"
|
||||
placement="top"
|
||||
@ -149,7 +149,9 @@ export default {
|
||||
});
|
||||
}).catch(() => {});
|
||||
},
|
||||
makeCall(item) {},
|
||||
makeCall(item) {
|
||||
this.$emit('startOutboundCall', {phone: item.phone, contactId: item.id})
|
||||
},
|
||||
sendMessages(item) {}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user