修改bug

This commit is contained in:
liuxi 2025-02-22 11:57:14 +08:00
parent 707e10bc42
commit 877b64e517
4 changed files with 77 additions and 41 deletions

View File

@ -47,7 +47,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="身份证"> <el-form-item label="身份证号码">
<el-input <el-input
clearable clearable
placeholder="请输入" placeholder="请输入"
@ -154,11 +154,18 @@ export default {
}, },
getCaseList() { getCaseList() {
voiceCall.caseMatchList(this.queryParam).then(res => { if(this.queryParam.name == ''&&this.queryParam.phone == ''&&this.queryParam.idCard == '')
if (!res.code) { {
this.tableData = res; this.tableData = []
} }
}) else
{
voiceCall.caseMatchList(this.queryParam).then(res => {
if (!res.code) {
this.tableData = res;
}
})
}
}, },
// //
async handleAccept() { async handleAccept() {

View File

@ -163,9 +163,9 @@
:before-close="handleClose" :before-close="handleClose"
> >
<div class="p-16"> <div class="p-16">
<el-form ref="ruleForm" <el-form ref="ruleInfoForm"
:model="PersonalInfo" :model="PersonalInfo"
:rules="rulesClient" :rules="rulesInfoClient"
label-width="80px" label-width="80px"
class="demo-ruleForm"> class="demo-ruleForm">
<el-row type="flex" align="middle"> <el-row type="flex" align="middle">
@ -191,7 +191,7 @@
</el-row> </el-row>
<el-row type="flex" align="middle"> <el-row type="flex" align="middle">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="手机号码"> <el-form-item label="手机号码" prop="phone">
<el-input <el-input
v-model.trim="PersonalInfo.phone" v-model.trim="PersonalInfo.phone"
placeholder="请输入手机号码" placeholder="请输入手机号码"
@ -203,7 +203,7 @@
</el-row> </el-row>
<el-row type="flex" align="middle"> <el-row type="flex" align="middle">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="回呼电话"> <el-form-item label="回呼电话" prop="replyPhone">
<el-input <el-input
v-model.trim="PersonalInfo.replyPhone" v-model.trim="PersonalInfo.replyPhone"
placeholder="请输入回呼电话" placeholder="请输入回呼电话"
@ -216,8 +216,9 @@
<el-row type="flex" align="middle"> <el-row type="flex" align="middle">
<el-col :span="8"> <el-col :span="8">
<el-form-item v-if="PersonalInfo.signPic !=''" label="个人签名"> <el-form-item v-if="PersonalInfo.signPic !=''" label="个人签名">
<img :src="signUrl" width="125px" height="125px"/> <img :src="PersonalInfo.signPic" width="125px" height="125px"/>
<span class="cursor-pointer color-86909C"><i class="el-icon-refresh"></i> 重新签名</span> <br>
<span class="cursor-pointer color-86909C" @click="PersonalInfo.signPic = ''"><i class="el-icon-refresh"></i> 重新签名</span>
</el-form-item> </el-form-item>
<el-form-item v-else label="个人签名"> <el-form-item v-else label="个人签名">
<img :src="signUrl" width="125px" height="125px"/> <img :src="signUrl" width="125px" height="125px"/>
@ -301,6 +302,16 @@ export default {
{required: true, validator: validatePass2, trigger: 'change',}, {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: {}, userInfo: {},
defaultHeadUrl: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',// defaultHeadUrl: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',//
@ -318,12 +329,18 @@ export default {
methods: { methods: {
// //
handleChangePersonal() { 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.id = res.id
this.PersonalInfo.realName = res.realName this.PersonalInfo.realName = res.realName
// this.PersonalInfo.realName = res.realName // this.PersonalInfo.realName = res.realName
this.PersonalInfo.phone = res.phone 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.replyPhone = res.replyPhone
this.PersonalInfo.cardNo = res.cardNo this.PersonalInfo.cardNo = res.cardNo
@ -338,9 +355,13 @@ export default {
this.showInfo = false this.showInfo = false
}, },
handlePersonalSubmit() { handlePersonalSubmit() {
api.updateUserById(this.PersonalInfo).then(res => { this.$refs.ruleInfoForm.validate((valid) => {
this.$message.success("修改成功") if (valid) {
this.handleClose() api.updateUserById(this.PersonalInfo).then(res => {
this.$message.success("修改成功")
this.handleClose()
})
}
}) })
}, },

View File

@ -664,6 +664,7 @@ export default {
callingCaseList() { callingCaseList() {
api.callingCaseList({}).then(res => { api.callingCaseList({}).then(res => {
this.queueList = res.queue || [] this.queueList = res.queue || []
}) })
}, },
// //
@ -723,7 +724,7 @@ export default {
// //
async callingSuccess () { async callingSuccess () {
try { 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) console.log('呼叫成功请求接口==callingSuccess', res)
// this.getmediate_record() // this.getmediate_record()
this.$refs.layoutContent.getmediate_record(); this.$refs.layoutContent.getmediate_record();
@ -733,13 +734,12 @@ export default {
// //
async callingFail () { async callingFail () {
try { 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) { } } catch (err) { }
}, },
// //
async hungUp(type) { async hungUp(type) {
console.log(this.calling,'挂断会话挂断会话挂断会话挂断会话挂断会话')
if (!this.$clickThrottle()) { if (!this.$clickThrottle()) {
return return
} }
@ -837,6 +837,12 @@ export default {
missedCallList() { missedCallList() {
voiceCall.notAnswerList({}).then(res => { voiceCall.notAnswerList({}).then(res => {
this.missedCallData.list = 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 = [ // this.missedCallData.list = [
// { // {
// contact: ' 138', // contact: ' 138',

View File

@ -1,29 +1,31 @@
<template> <template>
<el-dialog title="案件列表" :visible="true" width="500px" append-to-body :close-on-click-modal="false" @close="handleClose" > <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 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"> <el-scrollbar :style="'height:400px;'" v-if="tableData.length > 0">
<div class="flex-row justify-content-between align-items-center bor-bottom-E5E6EB pr-16"> <div class="p-8 mt-8 bottom-case-list border-radius-8" v-for="(item, index) in tableData" :key="index">
<div v-for="(itemS,indexS) in item.debtorEntityList.filter(itemX => itemX.role == 'DEBTOR' && itemX.type == '本人')" :key="indexS"> <div class="flex-row justify-content-between align-items-center bor-bottom-E5E6EB pr-16">
{{indexS === 0 ?'':','}}{{itemS.name}} <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> </div>
<el-button type="text" @click="handleRelevance(item)">进入案件</el-button> <div class="flex-row p-8">
</div> <div class="width-50 f12">
<div class="flex-row p-8"> <div class="color-86909C">案件号</div>
<div class="width-50 f12"> <div>{{item.caseNo}} </div>
<div class="color-86909C">案件号</div> </div>
<div>{{item.caseNo}} </div> <div class="width-25 f12">
</div> <div class="color-86909C">调解员</div>
<div class="width-25 f12"> <div>{{item.mediatorName}}</div>
<div class="color-86909C">调解员</div> </div>
<div>{{item.mediatorName}}</div> <div class="width-25 f12">
</div> <div class="color-86909C">逾期金额</div>
<div class="width-25 f12"> <div>{{item.moneyAmount}}</div>
<div class="color-86909C">逾期金额</div> </div>
<div>{{item.moneyAmount}}</div>
</div> </div>
</div> </div>
</div> </el-scrollbar>
<div v-show="tableData.length == 0" class="text-center mt-8 f18 p-16"> <div v-else class="text-center mt-8 f18 p-16">
该来电未匹配到相关案件 该来电未匹配到相关案件
</div> </div>
</div> </div>