附件上传受益人证件上传失败数据清空3

(cherry picked from commit b609aee0b9)
This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-06-20 15:51:01 +08:00
parent 458446314a
commit 8f170cc168

View File

@@ -1408,15 +1408,27 @@ export default {
case 'saleInsuredPersonInfoOther': case 'saleInsuredPersonInfoOther':
that.saleInsuredPersonInfoOther = [] that.saleInsuredPersonInfoOther = []
break break
case 'fileListIdFrontBeneficiary': }
that.fileListIdFrontBeneficiary = [] if(that.type == 'fileListIdFrontBeneficiary'){
break that.saleBtnfPersonInfo.forEach((item,index)=>{
case 'fileListIdBackBeneficiary': if(item.bnfId == that.bnfId){
that.fileListIdBackBeneficiary = [] that.bnfInfo[index].fileListIdFrontBeneficiary = []
break }
case 'fileLIstImgBeneficiary': })
that.fileLIstImgBeneficiary = [] }
break 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.clear()
} }
@@ -1455,22 +1467,33 @@ export default {
case 'saleInsuredPersonInfoOther': case 'saleInsuredPersonInfoOther':
that.saleInsuredPersonInfoOther = [] that.saleInsuredPersonInfoOther = []
break break
case 'fileListIdFrontBeneficiary': }
that.fileListIdFrontBeneficiary = [] if(that.type == 'fileListIdFrontBeneficiary'){
break that.saleBtnfPersonInfo.forEach((item,index)=>{
case 'fileListIdBackBeneficiary': if(item.bnfId == that.bnfId){
that.fileListIdBackBeneficiary = [] that.bnfInfo[index].fileListIdFrontBeneficiary = []
break }
case 'fileLIstImgBeneficiary': })
that.fileLIstImgBeneficiary = [] }
break 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.clear()
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
} }
}, },
(error) => { (error) => {
debugger
switch (that.type) { switch (that.type) {
case 'fileListIdFront': case 'fileListIdFront':
that.fileListIdFront = [] that.fileListIdFront = []
@@ -1505,15 +1528,27 @@ export default {
case 'saleInsuredPersonInfoOther': case 'saleInsuredPersonInfoOther':
that.saleInsuredPersonInfoOther = [] that.saleInsuredPersonInfoOther = []
break break
case 'fileListIdFrontBeneficiary': }
that.fileListIdFrontBeneficiary = [] if(that.type == 'fileListIdFrontBeneficiary'){
break that.saleBtnfPersonInfo.forEach((item,index)=>{
case 'fileListIdBackBeneficiary': if(item.bnfId == that.bnfId){
that.fileListIdBackBeneficiary = [] that.bnfInfo[index].fileListIdFrontBeneficiary = []
break }
case 'fileLIstImgBeneficiary': })
that.fileLIstImgBeneficiary = [] }
break 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('网络环境不佳,图片上传失败,请切换移动网络或稍后重试') this.$toast('网络环境不佳,图片上传失败,请切换移动网络或稍后重试')
} }