This commit is contained in:
张运江 2025-02-17 15:45:57 +08:00
commit 7eb3f719b4
5 changed files with 25 additions and 13 deletions

View File

@ -186,7 +186,7 @@
<!-- 联系人信息 --> <!-- 联系人信息 -->
<div v-if="leftActive == 2" class="case-contact-person"> <div v-if="leftActive == 2" class="case-contact-person">
<contactPerson :caseId="caseId" @startOutboundCall="startOutboundCall" /> <contactPerson :caseId="caseId" @startOutboundCall="startOutboundCall" @updateCaseInfoById="updateCaseInfoById" />
</div> </div>
@ -448,6 +448,9 @@ export default {
// } // }
}, },
methods: { methods: {
updateCaseInfoById(){
this.$emit('updateCaseInfoById');
},
handlerMouseenter(val) { handlerMouseenter(val) {
this.leftActive = val this.leftActive = val
if (val !== 1) this.singlesmsvisible = false if (val !== 1) this.singlesmsvisible = false

View File

@ -113,7 +113,7 @@
</div> </div>
<!-- 中间数据 --> <!-- 中间数据 -->
<LayoutContentNew ref="layoutContent" :caseId="caseId" @startOutboundCall="startOutboundCall" /> <LayoutContentNew ref="layoutContent" :caseId="caseId" @startOutboundCall="startOutboundCall" @updateCaseInfoById="getCaseInfoById" />
</div> </div>
@ -487,6 +487,7 @@ export default {
// //
async getCaseInfoById() { async getCaseInfoById() {
// this.$loading(true) // this.$loading(true)
this.sendPhones = []
await api.getCaseInfoById(this.caseId).then(res => { await api.getCaseInfoById(this.caseId).then(res => {
if (!res.code) { if (!res.code) {
this.baseInfo = res this.baseInfo = res

View File

@ -75,11 +75,12 @@
<span class="color-86909C mt-8 pt12-pb10">备注说明<a>{{ proofitem.remark }}</a></span> <span class="color-86909C mt-8 pt12-pb10">备注说明<a>{{ proofitem.remark }}</a></span>
</div> </div>
<div class="mt-8"> <div class="mt-8">
<el-popover v-if="proofitem.status.code == 1" <el-popover v-if="proofitem.status.code == 1"
placement="left" placement="left"
width="400" width="400"
title="凭证效验" title="凭证效验"
trigger="click"> trigger="click"
v-model="proofitem.visible">
<el-form class="mt-8" :ref="`ruleFormEffect${index}`" <el-form class="mt-8" :ref="`ruleFormEffect${index}`"
:model="proofitem" :model="proofitem"
:rules="rulesClientRepayment" :rules="rulesClientRepayment"
@ -110,7 +111,8 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label=""> <el-form-item label="">
<el-button type="primary" @click="handleSubmitEffect(proofitem,('ruleFormEffect'+index))" size="small">保存</el-button> <el-button type="primary" @click="handleSubmitEffect(proofitem,('ruleFormEffect'+index),index)" size="small">保存</el-button>
<el-button type="primary" @click="proofitem.visible = false" size="small">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="reference" class="color-86909C cursor-pointer"><i class="el-icon-medal"></i>&nbsp;效验</span> <span slot="reference" class="color-86909C cursor-pointer"><i class="el-icon-medal"></i>&nbsp;效验</span>
@ -235,12 +237,7 @@ import api from "@/services/caseManagement";
getProofList(){ getProofList(){
api.gettraceProof_list({caseId:this.eventDialog.caseId}).then(async res => { api.gettraceProof_list({caseId:this.eventDialog.caseId}).then(async res => {
if(!res.code){ if(!res.code){
// this.ProofList = res
// this.ProofList.forEach(item =>{
// item.mediaPath = [item.proofUrl]
// })
await this.getpreviewfull(res) await this.getpreviewfull(res)
console.log(this.ProofList,'this.ProofList')
} }
}) })
}, },
@ -250,6 +247,7 @@ import api from "@/services/caseManagement";
try { try {
item.previewUrl = await this.$fetchApi.viewFullFile({path: item.proofUrl}) item.previewUrl = await this.$fetchApi.viewFullFile({path: item.proofUrl})
item.mediaPath = [item.proofUrl] item.mediaPath = [item.proofUrl]
item.visible = false
this.ProofList.push(item); this.ProofList.push(item);
} catch (error) { } catch (error) {
console.error(`调用接口失败,错误:`, error); console.error(`调用接口失败,错误:`, error);
@ -270,14 +268,14 @@ import api from "@/services/caseManagement";
this.fileList = [{url: proofitem.proofUrl,fileName:'上传'}] this.fileList = [{url: proofitem.proofUrl,fileName:'上传'}]
}, },
// //
handleSubmitEffect(proofitem,formName){ handleSubmitEffect(proofitem,formName,indexnum){
this.$refs[formName][0].validate((valid) => { this.$refs[formName][0].validate((valid) => {
if (valid){ if (valid){
proofitem.createAt =undefined proofitem.createAt =undefined
proofitem.createBy =undefined proofitem.createBy =undefined
proofitem.delFlag =undefined proofitem.delFlag =undefined
proofitem.planId =undefined proofitem.planId =undefined
proofitem.status =undefined // proofitem.status =undefined
proofitem.updateAt =undefined proofitem.updateAt =undefined
proofitem.updateBy =undefined proofitem.updateBy =undefined
proofitem.uploaderName =undefined proofitem.uploaderName =undefined
@ -285,6 +283,10 @@ import api from "@/services/caseManagement";
proofitem.proofUrl =undefined proofitem.proofUrl =undefined
api.gettraceProof_valid(proofitem).then(res => { api.gettraceProof_valid(proofitem).then(res => {
if(!res.code){ if(!res.code){
this.ProofList.forEach((item,index) =>{
if(index == indexnum){item.visible = false}
})
this.getProofList() this.getProofList()
} }
}) })

View File

@ -50,7 +50,7 @@
</div> </div>
</el-card> </el-card>
<contactPersonDialog v-if="contactAddObj" :eventDialog.sync="contactAddObj" /> <contactPersonDialog v-if="contactAddObj" :eventDialog.sync="contactAddObj" @updateCaseInfoById="updateCaseInfoById"/>
</div> </div>
</template> </template>
@ -83,6 +83,9 @@ export default {
this.handleTab('被申请人') this.handleTab('被申请人')
}, },
methods: { methods: {
updateCaseInfoById(){
this.$emit('updateCaseInfoById');
},
handleTab(item) { handleTab(item) {
this.personnelTypeActive = item; this.personnelTypeActive = item;
this.getList(); this.getList();

View File

@ -255,6 +255,9 @@ export default {
this.$parent.getList(); this.$parent.getList();
this.handleClose(); this.handleClose();
this.$message.success("操作成功"); this.$message.success("操作成功");
this.$emit('updateCaseInfoById');
this.$parent.getCaseInfoById();
}); });
} }
}); });