修改bug
This commit is contained in:
parent
707e10bc42
commit
877b64e517
@ -47,7 +47,7 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="7">
|
||||
<el-form-item label="身份证">
|
||||
<el-form-item label="身份证号码">
|
||||
<el-input
|
||||
clearable
|
||||
placeholder="请输入"
|
||||
@ -154,11 +154,18 @@ export default {
|
||||
},
|
||||
|
||||
getCaseList() {
|
||||
voiceCall.caseMatchList(this.queryParam).then(res => {
|
||||
if (!res.code) {
|
||||
this.tableData = res;
|
||||
}
|
||||
})
|
||||
if(this.queryParam.name == ''&&this.queryParam.phone == ''&&this.queryParam.idCard == '')
|
||||
{
|
||||
this.tableData = []
|
||||
}
|
||||
else
|
||||
{
|
||||
voiceCall.caseMatchList(this.queryParam).then(res => {
|
||||
if (!res.code) {
|
||||
this.tableData = res;
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
// 呼入接听
|
||||
async handleAccept() {
|
||||
|
||||
@ -163,9 +163,9 @@
|
||||
:before-close="handleClose"
|
||||
>
|
||||
<div class="p-16">
|
||||
<el-form ref="ruleForm"
|
||||
<el-form ref="ruleInfoForm"
|
||||
:model="PersonalInfo"
|
||||
:rules="rulesClient"
|
||||
:rules="rulesInfoClient"
|
||||
label-width="80px"
|
||||
class="demo-ruleForm">
|
||||
<el-row type="flex" align="middle">
|
||||
@ -191,7 +191,7 @@
|
||||
</el-row>
|
||||
<el-row type="flex" align="middle">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="手机号码">
|
||||
<el-form-item label="手机号码" prop="phone">
|
||||
<el-input
|
||||
v-model.trim="PersonalInfo.phone"
|
||||
placeholder="请输入手机号码"
|
||||
@ -203,7 +203,7 @@
|
||||
</el-row>
|
||||
<el-row type="flex" align="middle">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="回呼电话">
|
||||
<el-form-item label="回呼电话" prop="replyPhone">
|
||||
<el-input
|
||||
v-model.trim="PersonalInfo.replyPhone"
|
||||
placeholder="请输入回呼电话"
|
||||
@ -216,8 +216,9 @@
|
||||
<el-row type="flex" align="middle">
|
||||
<el-col :span="8">
|
||||
<el-form-item v-if="PersonalInfo.signPic !=''" label="个人签名">
|
||||
<img :src="signUrl" width="125px" height="125px"/>
|
||||
<span class="cursor-pointer color-86909C"><i class="el-icon-refresh"></i> 重新签名</span>
|
||||
<img :src="PersonalInfo.signPic" width="125px" height="125px"/>
|
||||
<br>
|
||||
<span class="cursor-pointer color-86909C" @click="PersonalInfo.signPic = ''"><i class="el-icon-refresh"></i> 重新签名</span>
|
||||
</el-form-item>
|
||||
<el-form-item v-else label="个人签名">
|
||||
<img :src="signUrl" width="125px" height="125px"/>
|
||||
@ -301,6 +302,16 @@ export default {
|
||||
{required: true, validator: validatePass2, trigger: 'change',},
|
||||
],
|
||||
},
|
||||
rulesInfoClient: {
|
||||
phone: [
|
||||
{ required: false, message: '请输入手机号码', trigger: 'change',},
|
||||
{ pattern: /^(13[0-9]{9})|(18[0-9]{9})|(14[0-9]{9})|(17[0-9]{9})|(15[0-9]{9})|(19[0-9]{9})$/, message: '请输入正确的手机号码', trigger: ['blur', 'change']}
|
||||
],
|
||||
replyPhone: [
|
||||
{ required: false, message: '请输入手机号码', trigger: 'change',},
|
||||
{ pattern: /^(13[0-9]{9})|(18[0-9]{9})|(14[0-9]{9})|(17[0-9]{9})|(15[0-9]{9})|(19[0-9]{9})$/, message: '请输入正确的手机号码', trigger: ['blur', 'change']}
|
||||
],
|
||||
},
|
||||
userInfo: {},
|
||||
defaultHeadUrl: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',//默认图片
|
||||
|
||||
@ -318,12 +329,18 @@ export default {
|
||||
methods: {
|
||||
// 个人信息
|
||||
handleChangePersonal() {
|
||||
api.getUserById({id: this.userInfo.id}).then(res => {
|
||||
api.getUserById({id: this.userInfo.id}).then(async res => {
|
||||
this.PersonalInfo.id = res.id
|
||||
this.PersonalInfo.realName = res.realName
|
||||
// this.PersonalInfo.realName = res.realName
|
||||
this.PersonalInfo.phone = res.phone
|
||||
this.PersonalInfo.signPic = res.signPic
|
||||
|
||||
// this.PersonalInfo.signPic = res.signPic
|
||||
if(res.signPic != ''&& res.signPic != null){
|
||||
this.PersonalInfo.signPic = await this.$fetchApi.viewFullFile({path: res.signPic})
|
||||
}
|
||||
// obj.previewUrl = await this.$fetchApi.viewFullFile({path: item.url})
|
||||
|
||||
this.PersonalInfo.replyPhone = res.replyPhone
|
||||
this.PersonalInfo.cardNo = res.cardNo
|
||||
|
||||
@ -338,9 +355,13 @@ export default {
|
||||
this.showInfo = false
|
||||
},
|
||||
handlePersonalSubmit() {
|
||||
api.updateUserById(this.PersonalInfo).then(res => {
|
||||
this.$message.success("修改成功")
|
||||
this.handleClose()
|
||||
this.$refs.ruleInfoForm.validate((valid) => {
|
||||
if (valid) {
|
||||
api.updateUserById(this.PersonalInfo).then(res => {
|
||||
this.$message.success("修改成功")
|
||||
this.handleClose()
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@ -664,6 +664,7 @@ export default {
|
||||
callingCaseList() {
|
||||
api.callingCaseList({}).then(res => {
|
||||
this.queueList = res.queue || []
|
||||
|
||||
})
|
||||
},
|
||||
// 当前自动呼叫队列
|
||||
@ -723,7 +724,7 @@ export default {
|
||||
// 呼叫成功
|
||||
async callingSuccess () {
|
||||
try {
|
||||
let res = await api.callingSuccess({caseId: this.caseId,contactId: this.contactId})
|
||||
let res = await api.callingSuccess({caseId: this.caseId,contactId: this.contactId,callingSessionId:this.sessionId})
|
||||
console.log('呼叫成功请求接口==callingSuccess:', res)
|
||||
// this.getmediate_record()
|
||||
this.$refs.layoutContent.getmediate_record();
|
||||
@ -733,13 +734,12 @@ export default {
|
||||
// 呼叫失败
|
||||
async callingFail () {
|
||||
try {
|
||||
let res = await api.callingFail({caseId: this.caseId,contactId: this.contactId})
|
||||
let res = await api.callingFail({caseId: this.caseId,contactId: this.contactId,callingSessionId:this.sessionId})
|
||||
} catch (err) { }
|
||||
},
|
||||
// 挂断会话
|
||||
async hungUp(type) {
|
||||
|
||||
console.log(this.calling,'挂断会话挂断会话挂断会话挂断会话挂断会话')
|
||||
if (!this.$clickThrottle()) {
|
||||
return
|
||||
}
|
||||
@ -837,6 +837,12 @@ export default {
|
||||
missedCallList() {
|
||||
voiceCall.notAnswerList({}).then(res => {
|
||||
this.missedCallData.list = res;
|
||||
|
||||
this.missedCallData.list.forEach(item =>{
|
||||
item.contact = item.contact.replace('0086','')
|
||||
item.phone = item.phone.replace('0086','')
|
||||
})
|
||||
|
||||
// this.missedCallData.list = [
|
||||
// {
|
||||
// contact: '唐 138',
|
||||
|
||||
@ -1,29 +1,31 @@
|
||||
<template>
|
||||
<el-dialog title="案件列表" :visible="true" width="500px" append-to-body :close-on-click-modal="false" @close="handleClose" >
|
||||
<div class="dialog-content pl-16 pt-8 pr-16 pb-8">
|
||||
<div v-show="tableData.length > 0" class="p-8 mt-8 bottom-case-list border-radius-8" v-for="(item, index) in tableData" :key="index">
|
||||
<div class="flex-row justify-content-between align-items-center bor-bottom-E5E6EB pr-16">
|
||||
<div v-for="(itemS,indexS) in item.debtorEntityList.filter(itemX => itemX.role == 'DEBTOR' && itemX.type == '本人')" :key="indexS">
|
||||
{{indexS === 0 ?'':','}}{{itemS.name}}
|
||||
<el-scrollbar :style="'height:400px;'" v-if="tableData.length > 0">
|
||||
<div class="p-8 mt-8 bottom-case-list border-radius-8" v-for="(item, index) in tableData" :key="index">
|
||||
<div class="flex-row justify-content-between align-items-center bor-bottom-E5E6EB pr-16">
|
||||
<div v-for="(itemS,indexS) in item.debtorEntityList.filter(itemX => itemX.role == 'DEBTOR' && itemX.type == '本人')" :key="indexS">
|
||||
{{indexS === 0 ?'':','}}{{itemS.name}}
|
||||
</div>
|
||||
<el-button type="text" @click="handleRelevance(item)">进入案件</el-button>
|
||||
</div>
|
||||
<el-button type="text" @click="handleRelevance(item)">进入案件</el-button>
|
||||
</div>
|
||||
<div class="flex-row p-8">
|
||||
<div class="width-50 f12">
|
||||
<div class="color-86909C">案件号</div>
|
||||
<div>{{item.caseNo}} </div>
|
||||
</div>
|
||||
<div class="width-25 f12">
|
||||
<div class="color-86909C">调解员</div>
|
||||
<div>{{item.mediatorName}}</div>
|
||||
</div>
|
||||
<div class="width-25 f12">
|
||||
<div class="color-86909C">逾期金额:</div>
|
||||
<div>{{item.moneyAmount}}</div>
|
||||
<div class="flex-row p-8">
|
||||
<div class="width-50 f12">
|
||||
<div class="color-86909C">案件号</div>
|
||||
<div>{{item.caseNo}} </div>
|
||||
</div>
|
||||
<div class="width-25 f12">
|
||||
<div class="color-86909C">调解员</div>
|
||||
<div>{{item.mediatorName}}</div>
|
||||
</div>
|
||||
<div class="width-25 f12">
|
||||
<div class="color-86909C">逾期金额:</div>
|
||||
<div>{{item.moneyAmount}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="tableData.length == 0" class="text-center mt-8 f18 p-16">
|
||||
</el-scrollbar>
|
||||
<div v-else class="text-center mt-8 f18 p-16">
|
||||
该来电未匹配到相关案件!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user