mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 22:56:44 +08:00
附件上传受益人证件上传失败数据清空
This commit is contained in:
@@ -1037,347 +1037,389 @@ export default {
|
||||
// console.log(res)
|
||||
if (res.result == '0') {
|
||||
this.$toast.clear()
|
||||
// res.responseObject.imgList.map(item => {
|
||||
if (
|
||||
that.type == 'fileListIdFront' ||
|
||||
that.type == 'fileListIdBack' ||
|
||||
that.type == 'fileLIstImg' ||
|
||||
that.type == 'fileListBank' ||
|
||||
// that.type == 'fileListBankBack' ||
|
||||
that.type == 'fileListNotify' ||
|
||||
that.type == 'saleInsuredInfoOther'
|
||||
) {
|
||||
// 是投保人
|
||||
// console.log(that.file)
|
||||
// 证件类型
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
// if (that.type == 'fileListIdFront' && that.id == '1') {
|
||||
// imageInfoType = '1'
|
||||
// } else if (that.type == 'fileListIdBack' && that.id == '1') {
|
||||
// imageInfoType = '2'
|
||||
// } else if (that.type == 'fileListBank') {
|
||||
// imageInfoType = '3'
|
||||
// } else if (that.type == 'fileListIdFront' && that.id == '2') {
|
||||
// imageInfoType = '5'
|
||||
// } else if (that.type == 'fileListIdBack' && that.id == '2') {
|
||||
// imageInfoType = '6'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '3') {
|
||||
// imageInfoType = '7'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '4') {
|
||||
// imageInfoType = '8'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '5') {
|
||||
// imageInfoType = '9'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '6') {
|
||||
// imageInfoType = '10'
|
||||
// } else if (that.type == 'saleInsuredInfoOther' && that.id == '7') {
|
||||
// imageInfoType = '11'
|
||||
// }
|
||||
if (that.type == 'fileListIdFront' && that.id == '1') {
|
||||
//身份证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '1'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '1') {
|
||||
//身份证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '2'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '2') {
|
||||
//户口本正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '5'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '2') {
|
||||
//户口本反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '6'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '3') {
|
||||
//出生证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '7'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '3') {
|
||||
//出生证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '12'
|
||||
} else if (that.type == 'fileLIstImg' && that.id == '4') {
|
||||
//护照面
|
||||
name = 'fileLIstImg'
|
||||
imageInfoType = '8'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '5') {
|
||||
//港澳居民来往内地通行证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '9'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '5') {
|
||||
//港澳居民来往内地通行证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '13'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '6') {
|
||||
//台湾居民来往大陆通行证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '10'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '6') {
|
||||
//台湾居民来往大陆通行证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '14'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '8') {
|
||||
//外国人永久居留身份证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '15'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '8') {
|
||||
//外国人永久居留身份证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '16'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '9') {
|
||||
//港澳台居民居住证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '17'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '9') {
|
||||
//港澳台居民居住证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '18'
|
||||
} else if (that.type == 'fileListBank') {
|
||||
//银行卡正面
|
||||
name = 'fileListBank'
|
||||
imageInfoType = '3'
|
||||
// } else if (that.type == 'fileListBankBack') {
|
||||
// //银行卡反面
|
||||
// imageInfoType = '19'
|
||||
if(res.path){
|
||||
if (
|
||||
that.type == 'fileListIdFront' ||
|
||||
that.type == 'fileListIdBack' ||
|
||||
that.type == 'fileLIstImg' ||
|
||||
that.type == 'fileListBank' ||
|
||||
// that.type == 'fileListBankBack' ||
|
||||
that.type == 'fileListNotify' ||
|
||||
that.type == 'saleInsuredInfoOther'
|
||||
) {
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
// if (that.type == 'fileListIdFront' && that.id == '1') {
|
||||
// imageInfoType = '1'
|
||||
// } else if (that.type == 'fileListIdBack' && that.id == '1') {
|
||||
// imageInfoType = '2'
|
||||
// } else if (that.type == 'fileListBank') {
|
||||
// imageInfoType = '3'
|
||||
// } else if (that.type == 'fileListIdFront' && that.id == '2') {
|
||||
// imageInfoType = '5'
|
||||
// } else if (that.type == 'fileListIdBack' && that.id == '2') {
|
||||
// imageInfoType = '6'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '3') {
|
||||
// imageInfoType = '7'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '4') {
|
||||
// imageInfoType = '8'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '5') {
|
||||
// imageInfoType = '9'
|
||||
// } else if (that.type == 'fileLIstImg' && that.id == '6') {
|
||||
// imageInfoType = '10'
|
||||
// } else if (that.type == 'saleInsuredInfoOther' && that.id == '7') {
|
||||
// imageInfoType = '11'
|
||||
// }
|
||||
if (that.type == 'fileListIdFront' && that.id == '1') {
|
||||
//身份证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '1'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '1') {
|
||||
//身份证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '2'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '2') {
|
||||
//户口本正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '5'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '2') {
|
||||
//户口本反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '6'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '3') {
|
||||
//出生证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '7'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '3') {
|
||||
//出生证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '12'
|
||||
} else if (that.type == 'fileLIstImg' && that.id == '4') {
|
||||
//护照面
|
||||
name = 'fileLIstImg'
|
||||
imageInfoType = '8'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '5') {
|
||||
//港澳居民来往内地通行证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '9'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '5') {
|
||||
//港澳居民来往内地通行证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '13'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '6') {
|
||||
//台湾居民来往大陆通行证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '10'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '6') {
|
||||
//台湾居民来往大陆通行证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '14'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '8') {
|
||||
//外国人永久居留身份证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '15'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '8') {
|
||||
//外国人永久居留身份证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '16'
|
||||
} else if (that.type == 'fileListIdFront' && that.id == '9') {
|
||||
//港澳台居民居住证正面
|
||||
name = 'fileListIdFront'
|
||||
imageInfoType = '17'
|
||||
} else if (that.type == 'fileListIdBack' && that.id == '9') {
|
||||
//港澳台居民居住证反面
|
||||
name = 'fileListIdBack'
|
||||
imageInfoType = '18'
|
||||
} else if (that.type == 'fileListBank') {
|
||||
//银行卡正面
|
||||
name = 'fileListBank'
|
||||
imageInfoType = '3'
|
||||
// } else if (that.type == 'fileListBankBack') {
|
||||
// //银行卡反面
|
||||
// imageInfoType = '19'
|
||||
} else if (that.type == 'fileListNotify') {
|
||||
name = 'fileListNotify'
|
||||
imageInfoType = '24'
|
||||
}
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: '',
|
||||
imageInfoType: imageInfoType,
|
||||
// window.localStorage.setItem('bankCardUrlInsuredPath', encodeURI(JSON.parse(data).path).replace(/\+/g, '%2B'))
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '0',
|
||||
subBusinessNo: that.saleInsuredInfo.appntId,
|
||||
fileName: that.imgName,
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (
|
||||
that.type == 'fileListIdFrontInsured' ||
|
||||
that.type == 'fileListIdBackInsured' ||
|
||||
that.type == 'fileListBankInsured' ||
|
||||
that.type == 'fileLIstImgInsured' ||
|
||||
that.type == 'fileListNotifyInsured' ||
|
||||
that.type == 'saleInsuredPersonInfoOther'
|
||||
) {
|
||||
// 是被保险人
|
||||
// 证件类型
|
||||
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
|
||||
if (that.type == 'fileListIdFrontInsured' && that.id == '1') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '1'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '1') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '2'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '2') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '5'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '2') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '6'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '3') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '7'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '3') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '12'
|
||||
} else if (that.type == 'fileLIstImgInsured' && that.id == '4') {
|
||||
name = 'fileLIstImgInsured'
|
||||
imageInfoType = '8'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '5') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '9'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '5') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '13'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '6') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '10'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '6') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '14'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '8') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '15'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '8') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '16'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '9') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '17'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '9') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '18'
|
||||
} else if (that.type == 'fileListNotifyInsured') {
|
||||
name = 'fileListNotifyInsured'
|
||||
imageInfoType = '24'
|
||||
}
|
||||
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: '',
|
||||
imageInfoType: imageInfoType,
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '1',
|
||||
subBusinessNo: that.saleInsuredPersonInfo.insuredId,
|
||||
fileName: that.imgName,
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (
|
||||
that.type == 'fileListIdFrontBeneficiary' ||
|
||||
that.type == 'fileListIdBackBeneficiary' ||
|
||||
that.type == 'fileLIstImgBeneficiary'
|
||||
) {
|
||||
// 是收益人
|
||||
// 证件类型
|
||||
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
|
||||
if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '1'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '1') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '2'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '2') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '5'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '2') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '6'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '3') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '7'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '3') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '12'
|
||||
} else if (that.type == 'fileLIstImgBeneficiary' && that.id == '4') {
|
||||
name = 'fileLIstImgBeneficiary'
|
||||
imageInfoType = '8'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '5') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '9'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '5') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '13'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '6') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '10'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '6') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '14'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '8') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '15'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '8') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '16'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '9') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '17'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '9') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '18'
|
||||
}
|
||||
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: '',
|
||||
imageInfoType: imageInfoType,
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '3',
|
||||
subBusinessNo: that.bnfId,
|
||||
fileName: that.imgName,
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (that.type == 'fileListOther') {
|
||||
// 是其他
|
||||
let type = '2'
|
||||
let name = 'fileListOther'
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: name,
|
||||
imageInfoType: '11',
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: type,
|
||||
subBusinessNo: '',
|
||||
fileName: that.imgName,
|
||||
}
|
||||
|
||||
that.list.push(obj)
|
||||
// } else if (that.type == 'fileListtypebeneficiary') {
|
||||
// // 是受益人
|
||||
// let type = '3'
|
||||
// let obj = {
|
||||
// businessNo: that.orderNo,
|
||||
// businessType: '',
|
||||
// imageInfoType: '21',
|
||||
// rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
// subBusinessType: type,
|
||||
// subBusinessNo: '',
|
||||
// fileName: that.imgName
|
||||
// }
|
||||
// that.list.push(obj)
|
||||
} else if (that.type == 'fileListNotify') {
|
||||
name = 'fileListNotify'
|
||||
imageInfoType = '24'
|
||||
}
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: '',
|
||||
imageInfoType: imageInfoType,
|
||||
// window.localStorage.setItem('bankCardUrlInsuredPath', encodeURI(JSON.parse(data).path).replace(/\+/g, '%2B'))
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '0',
|
||||
subBusinessNo: that.saleInsuredInfo.appntId,
|
||||
fileName: that.imgName,
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (
|
||||
that.type == 'fileListIdFrontInsured' ||
|
||||
that.type == 'fileListIdBackInsured' ||
|
||||
that.type == 'fileListBankInsured' ||
|
||||
that.type == 'fileLIstImgInsured' ||
|
||||
that.type == 'fileListNotifyInsured' ||
|
||||
that.type == 'saleInsuredPersonInfoOther'
|
||||
) {
|
||||
// 是被保险人
|
||||
// 证件类型
|
||||
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
|
||||
if (that.type == 'fileListIdFrontInsured' && that.id == '1') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '1'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '1') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '2'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '2') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '5'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '2') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '6'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '3') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '7'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '3') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '12'
|
||||
} else if (that.type == 'fileLIstImgInsured' && that.id == '4') {
|
||||
name = 'fileLIstImgInsured'
|
||||
imageInfoType = '8'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '5') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '9'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '5') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '13'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '6') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '10'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '6') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '14'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '8') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '15'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '8') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '16'
|
||||
} else if (that.type == 'fileListIdFrontInsured' && that.id == '9') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '17'
|
||||
} else if (that.type == 'fileListIdBackInsured' && that.id == '9') {
|
||||
name = 'fileListIdBackInsured'
|
||||
imageInfoType = '18'
|
||||
} else if (that.type == 'fileListNotifyInsured') {
|
||||
name = 'fileListNotifyInsured'
|
||||
imageInfoType = '24'
|
||||
// 健康告知异常类资料
|
||||
// let obj = {
|
||||
// name: 'fileListNotify',
|
||||
// businessNo: that.orderNo,
|
||||
// businessType: '',
|
||||
// imageInfoType: '24',
|
||||
// rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
// subBusinessType: '0',
|
||||
// subBusinessNo: '',
|
||||
// fileName: that.imgName,
|
||||
// }
|
||||
// that.list.push(obj)
|
||||
}
|
||||
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: '',
|
||||
imageInfoType: imageInfoType,
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '1',
|
||||
subBusinessNo: that.saleInsuredPersonInfo.insuredId,
|
||||
fileName: that.imgName,
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (
|
||||
that.type == 'fileListIdFrontBeneficiary' ||
|
||||
that.type == 'fileListIdBackBeneficiary' ||
|
||||
that.type == 'fileLIstImgBeneficiary'
|
||||
) {
|
||||
// 是收益人
|
||||
// 证件类型
|
||||
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
|
||||
if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '1'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '1') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '2'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '2') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '5'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '2') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '6'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '3') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '7'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '3') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '12'
|
||||
} else if (that.type == 'fileLIstImgBeneficiary' && that.id == '4') {
|
||||
name = 'fileLIstImgBeneficiary'
|
||||
imageInfoType = '8'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '5') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '9'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '5') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '13'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '6') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '10'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '6') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '14'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '8') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '15'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '8') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '16'
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '9') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '17'
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '9') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '18'
|
||||
let imgPath = res.path
|
||||
//只有身份证件才进行ocr校验
|
||||
if(that.type == 'fileListIdFront' || that.type == 'fileListIdBack' || that.type == 'fileLIstImg' ||
|
||||
that.type == 'fileListIdFrontInsured' || that.type == 'fileListIdBackInsured' || that.type == 'fileLIstImgInsured'
|
||||
|| that.type == 'fileListIdFrontBeneficiary'|| that.type == 'fileListIdBackBeneficiary'){
|
||||
if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFront'){
|
||||
//投保人身份证正面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'appentFront')
|
||||
}else if(that.id == '1' && this.imageType == '2' && that.type == 'fileListIdBack'){
|
||||
//投保人身份证反面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'BACK', 'appentBack')
|
||||
}else if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFrontInsured'){
|
||||
//被保人身份证正面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'insuredFront')
|
||||
}else if(that.id == '1' && this.imageType == '2' && that.type == 'fileListIdBackInsured'){
|
||||
//被保人身份证反面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'BACK', 'insuredBack')
|
||||
}else if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFrontBeneficiary'){
|
||||
//受益人身份证正面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'beneficiaryFront')
|
||||
}else if(that.id == '1' && this.imageType == '2' && that.type == 'fileListIdBackBeneficiary'){
|
||||
//受益人身份证反面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'BACK', 'beneficiaryBack')
|
||||
}else {
|
||||
//其他素材(护照,户口本,港澳身份证等)
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, "OTHER", '')
|
||||
}
|
||||
}
|
||||
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: '',
|
||||
imageInfoType: imageInfoType,
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: '3',
|
||||
subBusinessNo: that.bnfId,
|
||||
fileName: that.imgName,
|
||||
}else{
|
||||
switch (that.type) {
|
||||
case 'fileListIdFront':
|
||||
that.fileListIdFront = []
|
||||
break
|
||||
case 'fileListIdBack':
|
||||
that.fileListIdBack = []
|
||||
break
|
||||
case 'fileLIstImg':
|
||||
that.fileLIstImg = []
|
||||
break
|
||||
case 'fileListBank':
|
||||
that.fileListBank = []
|
||||
break
|
||||
case 'fileListOther':
|
||||
that.fileListOther = []
|
||||
break
|
||||
case 'fileListIdFrontInsured':
|
||||
that.fileListIdFrontInsured = []
|
||||
break
|
||||
case 'fileListIdBackInsured':
|
||||
that.fileListIdBackInsured = []
|
||||
break
|
||||
case 'fileListBankInsured':
|
||||
that.fileListBankInsured = []
|
||||
break
|
||||
case 'fileLIstImgInsured':
|
||||
that.fileLIstImgInsured = []
|
||||
break
|
||||
case 'saleInsuredInfoOther':
|
||||
that.saleInsuredInfoOther = []
|
||||
break
|
||||
case 'saleInsuredPersonInfoOther':
|
||||
that.saleInsuredPersonInfoOther = []
|
||||
break
|
||||
case 'fileListIdFrontBeneficiary':
|
||||
that.fileListIdFrontBeneficiary = []
|
||||
break
|
||||
case 'fileListIdBackBeneficiary':
|
||||
that.fileListIdBackBeneficiary = []
|
||||
break
|
||||
case 'fileLIstImgBeneficiary':
|
||||
that.fileLIstImgBeneficiary = []
|
||||
break
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (that.type == 'fileListOther') {
|
||||
// 是其他
|
||||
let type = '2'
|
||||
let name = 'fileListOther'
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
businessType: name,
|
||||
imageInfoType: '11',
|
||||
rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
subBusinessType: type,
|
||||
subBusinessNo: '',
|
||||
fileName: that.imgName,
|
||||
}
|
||||
|
||||
that.list.push(obj)
|
||||
// } else if (that.type == 'fileListtypebeneficiary') {
|
||||
// // 是受益人
|
||||
// let type = '3'
|
||||
// let obj = {
|
||||
// businessNo: that.orderNo,
|
||||
// businessType: '',
|
||||
// imageInfoType: '21',
|
||||
// rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
// subBusinessType: type,
|
||||
// subBusinessNo: '',
|
||||
// fileName: that.imgName
|
||||
// }
|
||||
// that.list.push(obj)
|
||||
} else if (that.type == 'fileListNotify') {
|
||||
// 健康告知异常类资料
|
||||
// let obj = {
|
||||
// name: 'fileListNotify',
|
||||
// businessNo: that.orderNo,
|
||||
// businessType: '',
|
||||
// imageInfoType: '24',
|
||||
// rgssUrl: encodeURI(res.path).replace(/\+/g, '%2B'),
|
||||
// subBusinessType: '0',
|
||||
// subBusinessNo: '',
|
||||
// fileName: that.imgName,
|
||||
// }
|
||||
// that.list.push(obj)
|
||||
this.$toast.clear()
|
||||
}
|
||||
|
||||
|
||||
let imgPath = res.path
|
||||
//只有身份证件才进行ocr校验
|
||||
if(that.type == 'fileListIdFront' || that.type == 'fileListIdBack' || that.type == 'fileLIstImg' ||
|
||||
that.type == 'fileListIdFrontInsured' || that.type == 'fileListIdBackInsured' || that.type == 'fileLIstImgInsured'
|
||||
|| that.type == 'fileListIdFrontBeneficiary'|| that.type == 'fileListIdBackBeneficiary'){
|
||||
if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFront'){
|
||||
//投保人身份证正面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'appentFront')
|
||||
}else if(that.id == '1' && this.imageType == '2' && that.type == 'fileListIdBack'){
|
||||
//投保人身份证反面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'BACK', 'appentBack')
|
||||
}else if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFrontInsured'){
|
||||
//被保人身份证正面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'insuredFront')
|
||||
}else if(that.id == '1' && this.imageType == '2' && that.type == 'fileListIdBackInsured'){
|
||||
//被保人身份证反面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'BACK', 'insuredBack')
|
||||
}else if(that.id == '1' && this.imageType == '1' && that.type == 'fileListIdFrontBeneficiary'){
|
||||
//受益人身份证正面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'FRONT', 'beneficiaryFront')
|
||||
}else if(that.id == '1' && this.imageType == '2' && that.type == 'fileListIdBackBeneficiary'){
|
||||
//受益人身份证反面
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, 'BACK', 'beneficiaryBack')
|
||||
}else {
|
||||
//其他素材(护照,户口本,港澳身份证等)
|
||||
this.IDCardOCRValite(that.id, this.orderNo, imgPath, "OTHER", '')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
switch (that.type) {
|
||||
case 'fileListIdFront':
|
||||
@@ -1413,6 +1455,15 @@ export default {
|
||||
case 'saleInsuredPersonInfoOther':
|
||||
that.saleInsuredPersonInfoOther = []
|
||||
break
|
||||
case 'fileListIdFrontBeneficiary':
|
||||
that.fileListIdFrontBeneficiary = []
|
||||
break
|
||||
case 'fileListIdBackBeneficiary':
|
||||
that.fileListIdBackBeneficiary = []
|
||||
break
|
||||
case 'fileLIstImgBeneficiary':
|
||||
that.fileLIstImgBeneficiary = []
|
||||
break
|
||||
}
|
||||
this.$toast.clear()
|
||||
this.$toast(res.resultMessage)
|
||||
|
||||
Reference in New Issue
Block a user