From 829fa3518cd50e8725d548b2c9007a9dd954d8e3 Mon Sep 17 00:00:00 2001 From: liuxi <357439530@qq.com> Date: Thu, 13 Feb 2025 14:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mediation-page/components/LayoutContentNew.vue | 4 ++-- .../mediation-page/components/MediationRoom.vue | 13 ++++++++++++- .../mediation-page/components/contactPerson.vue | 11 +++++------ .../components/singleofficeWritPopover.vue | 2 +- .../mediation-page/components/singlesmsPopover.vue | 6 +++--- 5 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/pages/mediation-page/components/LayoutContentNew.vue b/src/pages/mediation-page/components/LayoutContentNew.vue index 20383ba..3deab90 100644 --- a/src/pages/mediation-page/components/LayoutContentNew.vue +++ b/src/pages/mediation-page/components/LayoutContentNew.vue @@ -96,7 +96,7 @@ v-model="singlesmsvisible" title="发送短信" trigger="click"> - +
发送短信
@@ -398,7 +398,7 @@ export default { AgentData:[], fileList: [], mediationRecord: [],//调解记录 - baseInfo: {},//基本信息 + baseInfo: {casePkg:{}},//基本信息 obligorInfo: [],//债务人信息 communicationRecord: [], diff --git a/src/pages/mediation-page/components/MediationRoom.vue b/src/pages/mediation-page/components/MediationRoom.vue index d441d15..cfb2ec9 100644 --- a/src/pages/mediation-page/components/MediationRoom.vue +++ b/src/pages/mediation-page/components/MediationRoom.vue @@ -25,7 +25,7 @@ v-model="singlesmsvisible" title="发送短信" trigger="click"> - + @@ -274,6 +274,7 @@ export default { eventDialog: {caseId: ''}, leftActive: 1, rightActive: 1, + sendPhones:[], mediationRecord: [],//调解记录 baseInfo: {},//基本信息 obligorInfo: [],//债务人信息 @@ -491,6 +492,16 @@ export default { this.baseInfo = res this.phoneNumber = res.debtorEntityList.find(item => item.role == 'DEBTOR').phone this.contactId = res.debtorEntityList.find(item => item.role == 'DEBTOR').id + + if(this.baseInfo.debtorEntityList !=undefined) + { + this.baseInfo.debtorEntityList.forEach(item =>{ + if(item.role == 'DEBTOR'){ + this.sendPhones.push(item.phone) + } + }) + } + if(res.jointDebt == 1){ // 有共债 mainCaseId this.caseId = res.mainCaseId.toString() diff --git a/src/pages/mediation-page/components/contactPerson.vue b/src/pages/mediation-page/components/contactPerson.vue index dbc1486..2df87a7 100644 --- a/src/pages/mediation-page/components/contactPerson.vue +++ b/src/pages/mediation-page/components/contactPerson.vue @@ -37,16 +37,15 @@ - + 短信 - - + @@ -72,7 +71,6 @@ export default { }, data() { return { - singlesmsvisible:false, personnelType: ['被申请人', '申请人', '申请人代理人'], personnelTypeActive: '被申请人', // 联系人 @@ -110,7 +108,8 @@ export default { let surname = item.name.split('')[0]; return { ...item, - surname: surname + surname: surname, + singlesmsvisible:false } }); this.total = res.total; diff --git a/src/pages/mediation-page/components/singleofficeWritPopover.vue b/src/pages/mediation-page/components/singleofficeWritPopover.vue index 294791a..813a339 100644 --- a/src/pages/mediation-page/components/singleofficeWritPopover.vue +++ b/src/pages/mediation-page/components/singleofficeWritPopover.vue @@ -156,7 +156,7 @@ import api from "@/services/caseManagement"; .officelist { background-color: rgba(236, 238, 241, 0.8196078431); padding: 20px 20px; - + height: 220px; .el-checkbox { width: 180px; margin: 10px; diff --git a/src/pages/mediation-page/components/singlesmsPopover.vue b/src/pages/mediation-page/components/singlesmsPopover.vue index f708773..9e31b14 100644 --- a/src/pages/mediation-page/components/singlesmsPopover.vue +++ b/src/pages/mediation-page/components/singlesmsPopover.vue @@ -46,8 +46,8 @@ import caseManagement from "@/services/caseManagement"; default: () => {}, }, sendPhone: { - type: String, - default: () => {}, + type: Array, + default: () => {return []}, }, }, data() { @@ -88,7 +88,7 @@ import caseManagement from "@/services/caseManagement"; } if(!this.$clickThrottle()) { return }//防止重复点击 let caseIdList = [this.caseId]; - caseManagement.smsBatchSend({...this.ObjectInfo, caseIdList: caseIdList,phones:[this.sendPhone]}).then(res => { + caseManagement.smsBatchSend({...this.ObjectInfo, caseIdList: caseIdList,phones:this.sendPhone}).then(res => { this.$message.success("发起短信成功"); this.handleClose() this.$parent.getWritCaseList()