图片上传被保人信息集合回显数据结构调整

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-08-08 10:56:17 +08:00
parent a3eea2471c
commit 8711523bcf

View File

@@ -1132,93 +1132,153 @@ export default {
if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') { if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') {
name = 'fileListIdFrontBeneficiary' name = 'fileListIdFrontBeneficiary'
imageInfoType = '1' imageInfoType = '1'
this.fileListIdFrontBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdFrontBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '1') { } else if (that.type == 'fileListIdBackBeneficiary' && that.id == '1') {
name = 'fileListIdBackBeneficiary' name = 'fileListIdBackBeneficiary'
imageInfoType = '2' imageInfoType = '2'
this.fileListIdBackBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdBackBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '2') { } else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '2') {
name = 'fileListIdFrontBeneficiary' name = 'fileListIdFrontBeneficiary'
imageInfoType = '5' imageInfoType = '5'
this.fileListIdFrontBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdFrontBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '2') { } else if (that.type == 'fileListIdBackBeneficiary' && that.id == '2') {
name = 'fileListIdBackBeneficiary' name = 'fileListIdBackBeneficiary'
imageInfoType = '6' imageInfoType = '6'
this.fileListIdBackBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdBackBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '3') { } else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '3') {
name = 'fileListIdFrontBeneficiary' name = 'fileListIdFrontBeneficiary'
imageInfoType = '7' imageInfoType = '7'
this.fileListIdFrontBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdFrontBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '3') { } else if (that.type == 'fileListIdBackBeneficiary' && that.id == '3') {
name = 'fileListIdBackBeneficiary' name = 'fileListIdBackBeneficiary'
imageInfoType = '12' imageInfoType = '12'
this.fileListIdBackBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdBackBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileLIstImgBeneficiary' && that.id == '4') { } else if (that.type == 'fileLIstImgBeneficiary' && that.id == '4') {
name = 'fileLIstImgBeneficiary' name = 'fileLIstImgBeneficiary'
imageInfoType = '8' imageInfoType = '8'
this.fileLIstImgBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileLIstImgBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '5') { } else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '5') {
name = 'fileListIdFrontBeneficiary' name = 'fileListIdFrontBeneficiary'
imageInfoType = '9' imageInfoType = '9'
this.fileListIdFrontBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdFrontBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '5') { } else if (that.type == 'fileListIdBackBeneficiary' && that.id == '5') {
name = 'fileListIdBackBeneficiary' name = 'fileListIdBackBeneficiary'
imageInfoType = '13' imageInfoType = '13'
this.fileListIdBackBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdBackBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '6') { } else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '6') {
name = 'fileListIdFrontBeneficiary' name = 'fileListIdFrontBeneficiary'
imageInfoType = '10' imageInfoType = '10'
this.fileListIdFrontBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdFrontBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '6') { } else if (that.type == 'fileListIdBackBeneficiary' && that.id == '6') {
name = 'fileListIdBackBeneficiary' name = 'fileListIdBackBeneficiary'
imageInfoType = '14' imageInfoType = '14'
this.fileListIdBackBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdBackBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '8') { } else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '8') {
name = 'fileListIdFrontBeneficiary' name = 'fileListIdFrontBeneficiary'
imageInfoType = '15' imageInfoType = '15'
this.fileListIdFrontBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdFrontBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '8') { } else if (that.type == 'fileListIdBackBeneficiary' && that.id == '8') {
name = 'fileListIdBackBeneficiary' name = 'fileListIdBackBeneficiary'
imageInfoType = '16' imageInfoType = '16'
this.fileListIdBackBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdBackBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '9') { } else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '9') {
name = 'fileListIdFrontBeneficiary' name = 'fileListIdFrontBeneficiary'
imageInfoType = '17' imageInfoType = '17'
this.fileListIdFrontBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdFrontBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '9') { } else if (that.type == 'fileListIdBackBeneficiary' && that.id == '9') {
name = 'fileListIdBackBeneficiary' name = 'fileListIdBackBeneficiary'
imageInfoType = '18' imageInfoType = '18'
this.fileListIdBackBeneficiary = { that.saleBtnfPersonInfo.forEach((item,index)=>{
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`, if(item.bnfId == that.bnfId){
} this.bnfInfo[index].fileListIdBackBeneficiary = {
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
}
}
})
} }
let obj = { let obj = {
name: name, name: name,
@@ -1623,47 +1683,47 @@ export default {
}, },
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER', orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
} }
console.log(data)
saveInformation(data).then((res) => { // saveInformation(data).then((res) => {
if (res.result == '0') { // if (res.result == '0') {
this.$toast.clear() // this.$toast.clear()
if (!this.changeCard) { // if (!this.changeCard) {
window.localStorage.setItem('accountInfomation-bank', that.bank) // window.localStorage.setItem('accountInfomation-bank', that.bank)
window.localStorage.setItem('accountInformationRadio', that.radio) // window.localStorage.setItem('accountInformationRadio', that.radio)
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked)) // window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
window.localStorage.setItem('jumpFromSign', '') // window.localStorage.setItem('jumpFromSign', '')
} // }
window.localStorage.removeItem('imgfront') // window.localStorage.removeItem('imgfront')
window.localStorage.removeItem('imgBackPath') // window.localStorage.removeItem('imgBackPath')
window.localStorage.removeItem('imgfrontPath') // window.localStorage.removeItem('imgfrontPath')
window.localStorage.removeItem('imgfrontInsured') // window.localStorage.removeItem('imgfrontInsured')
window.localStorage.removeItem('imgfrontInsuredPath') // window.localStorage.removeItem('imgfrontInsuredPath')
window.localStorage.removeItem('imgBackInsuredPath') // window.localStorage.removeItem('imgBackInsuredPath')
window.localStorage.removeItem('bankCardUrl') // window.localStorage.removeItem('bankCardUrl')
window.localStorage.removeItem('bankCardUrlPath') // window.localStorage.removeItem('bankCardUrlPath')
window.localStorage.removeItem('bankCardUrlInsured') // window.localStorage.removeItem('bankCardUrlInsured')
window.localStorage.removeItem('bankCardUrlInsuredPath') // window.localStorage.removeItem('bankCardUrlInsuredPath')
that.$jump({ // that.$jump({
flag: 'h5', // flag: 'h5',
extra: { // extra: {
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo, // url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
pullRefresh: '1', // pullRefresh: '1',
backToFirst: '1', // backToFirst: '1',
}, // },
routerInfo: { // routerInfo: {
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo, // path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
}, // },
}) // })
} else { // } else {
Dialog.confirm({ // Dialog.confirm({
title: '提示', // title: '提示',
message: res.resultMessage, // message: res.resultMessage,
confirmButtonColor:'#FF0000', // confirmButtonColor:'#FF0000',
showCancelButton:false // showCancelButton:false
}) // })
//that.$toast(res.resultMessage) // //that.$toast(res.resultMessage)
} // }
}) // })
}, },
}, },
computed: { computed: {