From b609aee0b9d0db491cc670424f662726491be309 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Tue, 20 Jun 2023 15:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=8F=97?= =?UTF-8?q?=E7=9B=8A=E4=BA=BA=E8=AF=81=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=95=B0=E6=8D=AE=E6=B8=85=E7=A9=BA3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/AttachmentManagement.vue | 91 ++++++++++++++------ 1 file changed, 63 insertions(+), 28 deletions(-) diff --git a/src/views/ebiz/sale/AttachmentManagement.vue b/src/views/ebiz/sale/AttachmentManagement.vue index 2ee980272..81a363e93 100644 --- a/src/views/ebiz/sale/AttachmentManagement.vue +++ b/src/views/ebiz/sale/AttachmentManagement.vue @@ -1408,15 +1408,27 @@ export default { case 'saleInsuredPersonInfoOther': that.saleInsuredPersonInfoOther = [] break - case 'fileListIdFrontBeneficiary': - that.fileListIdFrontBeneficiary = [] - break - case 'fileListIdBackBeneficiary': - that.fileListIdBackBeneficiary = [] - break - case 'fileLIstImgBeneficiary': - that.fileLIstImgBeneficiary = [] - break + } + if(that.type == 'fileListIdFrontBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileListIdFrontBeneficiary = [] + } + }) + } + if(that.type == 'fileListIdBackBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileListIdBackBeneficiary = [] + } + }) + } + if(that.type == 'fileLIstImgBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileLIstImgBeneficiary = [] + } + }) } this.$toast.clear() } @@ -1455,22 +1467,33 @@ export default { case 'saleInsuredPersonInfoOther': that.saleInsuredPersonInfoOther = [] break - case 'fileListIdFrontBeneficiary': - that.fileListIdFrontBeneficiary = [] - break - case 'fileListIdBackBeneficiary': - that.fileListIdBackBeneficiary = [] - break - case 'fileLIstImgBeneficiary': - that.fileLIstImgBeneficiary = [] - break + } + if(that.type == 'fileListIdFrontBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileListIdFrontBeneficiary = [] + } + }) + } + if(that.type == 'fileListIdBackBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileListIdBackBeneficiary = [] + } + }) + } + if(that.type == 'fileLIstImgBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileLIstImgBeneficiary = [] + } + }) } this.$toast.clear() this.$toast(res.resultMessage) } }, (error) => { - debugger switch (that.type) { case 'fileListIdFront': that.fileListIdFront = [] @@ -1505,15 +1528,27 @@ export default { case 'saleInsuredPersonInfoOther': that.saleInsuredPersonInfoOther = [] break - case 'fileListIdFrontBeneficiary': - that.fileListIdFrontBeneficiary = [] - break - case 'fileListIdBackBeneficiary': - that.fileListIdBackBeneficiary = [] - break - case 'fileLIstImgBeneficiary': - that.fileLIstImgBeneficiary = [] - break + } + if(that.type == 'fileListIdFrontBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileListIdFrontBeneficiary = [] + } + }) + } + if(that.type == 'fileListIdBackBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileListIdBackBeneficiary = [] + } + }) + } + if(that.type == 'fileLIstImgBeneficiary'){ + that.saleBtnfPersonInfo.forEach((item,index)=>{ + if(item.bnfId == that.bnfId){ + that.bnfInfo[index].fileLIstImgBeneficiary = [] + } + }) } this.$toast('网络环境不佳,图片上传失败,请切换移动网络或稍后重试') }