Merge branch 'main' into 'stg'

修改bug

See merge request cloud-mediate/mediate-manage-web!19
This commit is contained in:
刘翕 2025-02-13 06:02:35 +00:00
commit 592dddcffa
5 changed files with 23 additions and 13 deletions

View File

@ -96,7 +96,7 @@
v-model="singlesmsvisible" v-model="singlesmsvisible"
title="发送短信" title="发送短信"
trigger="click"> trigger="click">
<singlesmsPopover :caseId="caseId" :sendPhone="(baseInfo.debtorEntityList.find(item => item.role == 'DEBTOR')).phone" :singlesmsvisible.sync="singlesmsvisible"/> <singlesmsPopover :caseId="caseId" :sendPhone="[(baseInfo.debtorEntityList.find(item => item.role == 'DEBTOR')).phone]" :singlesmsvisible.sync="singlesmsvisible"/>
<span slot="reference" class="flex-row align-items-center cursor-pointer"> <span slot="reference" class="flex-row align-items-center cursor-pointer">
<div class="f32 color-FF7D00 mr-8"><i class="el-icon-message"></i></div> <div class="f32 color-FF7D00 mr-8"><i class="el-icon-message"></i></div>
<div>发送短信</div> <div>发送短信</div>
@ -398,7 +398,7 @@ export default {
AgentData:[], AgentData:[],
fileList: [], fileList: [],
mediationRecord: [],// mediationRecord: [],//
baseInfo: {},// baseInfo: {casePkg:{}},//
obligorInfo: [],// obligorInfo: [],//
communicationRecord: [], communicationRecord: [],

View File

@ -25,7 +25,7 @@
v-model="singlesmsvisible" v-model="singlesmsvisible"
title="发送短信" title="发送短信"
trigger="click"> trigger="click">
<singlesmsPopover :caseId="caseId" :sendPhone="(baseInfo.debtorEntityList.find(item => item.role == 'DEBTOR')).phone" :singlesmsvisible.sync="singlesmsvisible"/> <singlesmsPopover :caseId="caseId" :sendPhone="sendPhones" :singlesmsvisible.sync="singlesmsvisible"/>
<el-button slot="reference" type="warning" icon="el-icon-message" circle></el-button> <el-button slot="reference" type="warning" icon="el-icon-message" circle></el-button>
</el-popover> </el-popover>
@ -274,6 +274,7 @@ export default {
eventDialog: {caseId: ''}, eventDialog: {caseId: ''},
leftActive: 1, leftActive: 1,
rightActive: 1, rightActive: 1,
sendPhones:[],
mediationRecord: [],// mediationRecord: [],//
baseInfo: {},// baseInfo: {},//
obligorInfo: [],// obligorInfo: [],//
@ -491,6 +492,16 @@ export default {
this.baseInfo = res this.baseInfo = res
this.phoneNumber = res.debtorEntityList.find(item => item.role == 'DEBTOR').phone this.phoneNumber = res.debtorEntityList.find(item => item.role == 'DEBTOR').phone
this.contactId = res.debtorEntityList.find(item => item.role == 'DEBTOR').id 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){ if(res.jointDebt == 1){
// mainCaseId // mainCaseId
this.caseId = res.mainCaseId.toString() this.caseId = res.mainCaseId.toString()

View File

@ -37,16 +37,15 @@
<el-popover v-if="item.role == 'DEBTOR' && item.type =='本人'" <el-popover v-if="item.role == 'DEBTOR' && item.type =='本人'"
placement="top" placement="top"
width="500" width="500"
v-model="singlesmsvisible" v-model="item.singlesmsvisible"
title="发送短信" title="发送短信"
trigger="click"> trigger="click">
<singlesmsPopover :caseId="caseId" :sendPhone="item.phone" :singlesmsvisible.sync="singlesmsvisible"/> <singlesmsPopover :caseId="caseId" :sendPhone="[item.phone]" :singlesmsvisible.sync="item.singlesmsvisible"/>
<span slot="reference" class="ml-8 cursor-pointer"> <span slot="reference" class="ml-8 cursor-pointer">
<i class="el-icon-message"></i> 短信 <i class="el-icon-message"></i> 短信
</span> </span>
</el-popover> </el-popover>
<!-- <a class="ml-8 cursor-pointer" v-if="item.role == 'DEBTOR' && item.type =='本人'"><i class="el-icon-message"></i> 短信</a> -->
</div> </div>
</div> </div>
</el-card> </el-card>
@ -72,7 +71,6 @@ export default {
}, },
data() { data() {
return { return {
singlesmsvisible:false,
personnelType: ['被申请人', '申请人', '申请人代理人'], personnelType: ['被申请人', '申请人', '申请人代理人'],
personnelTypeActive: '被申请人', personnelTypeActive: '被申请人',
// //
@ -110,7 +108,8 @@ export default {
let surname = item.name.split('')[0]; let surname = item.name.split('')[0];
return { return {
...item, ...item,
surname: surname surname: surname,
singlesmsvisible:false
} }
}); });
this.total = res.total; this.total = res.total;

View File

@ -156,7 +156,7 @@ import api from "@/services/caseManagement";
.officelist { .officelist {
background-color: rgba(236, 238, 241, 0.8196078431); background-color: rgba(236, 238, 241, 0.8196078431);
padding: 20px 20px; padding: 20px 20px;
height: 220px;
.el-checkbox { .el-checkbox {
width: 180px; width: 180px;
margin: 10px; margin: 10px;

View File

@ -46,8 +46,8 @@ import caseManagement from "@/services/caseManagement";
default: () => {}, default: () => {},
}, },
sendPhone: { sendPhone: {
type: String, type: Array,
default: () => {}, default: () => {return []},
}, },
}, },
data() { data() {
@ -88,7 +88,7 @@ import caseManagement from "@/services/caseManagement";
} }
if(!this.$clickThrottle()) { return }// if(!this.$clickThrottle()) { return }//
let caseIdList = [this.caseId]; 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.$message.success("发起短信成功");
this.handleClose() this.handleClose()
this.$parent.getWritCaseList() this.$parent.getWritCaseList()