mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 23:36:43 +08:00
Compare commits
2 Commits
hotfix/【20
...
hotfix/【20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
774fed8691 | ||
|
|
6bdac57653 |
@@ -978,7 +978,9 @@ export default {
|
||||
if (res.result == 0) {
|
||||
//选择保障方案
|
||||
this.trialList = res.trialList
|
||||
this.allPrice = res.trialList[0].prem
|
||||
if (!this.allPrice) {
|
||||
this.allPrice = res.trialList[0].prem
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
@@ -1594,10 +1596,32 @@ export default {
|
||||
this.userInfo.homeAddress = data.homeAddress //家庭详细地址
|
||||
this.userInfo.occupationCode = data.occupationCode
|
||||
this.userInfo.occupationName = data.occupationName
|
||||
let thisoccupationType = ''
|
||||
let thislifeGrade = ''
|
||||
let thishealthGrade = ''
|
||||
let collect = (data,code) => {
|
||||
data.forEach(item => {
|
||||
if (item.code == code) {
|
||||
if (this.trialDTOS.productInsuredDTO.healthGrade && this.trialDTOS.productInsuredDTO.healthGrade != '0') {
|
||||
thisoccupationType = item.healthGrade
|
||||
}
|
||||
if (this.trialDTOS.productInsuredDTO.lifeGrade && this.trialDTOS.productInsuredDTO.lifeGrade != '0') {
|
||||
thisoccupationType = item.lifeGrade
|
||||
}
|
||||
thislifeGrade = item.lifeGrade
|
||||
thishealthGrade = item.healthGrade
|
||||
} else {
|
||||
if (item.subs && item.subs.length != 0) {
|
||||
collect(item.subs,code)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
collect(occupationList,data.occupationCode)
|
||||
|
||||
this.userInfo.occupationType = data.lifeGrade
|
||||
this.userInfo.lifeGrade = data.lifeGrade
|
||||
this.userInfo.healthGrade = data.healthGrade
|
||||
this.userInfo.occupationType =thisoccupationType
|
||||
this.userInfo.lifeGrade = thislifeGrade
|
||||
this.userInfo.healthGrade = thishealthGrade
|
||||
this.userInfo.averageAnnualIncome = this.itemProductDTOS.productCode == 'GFRS_M0032' ? data.averageYearlyIncome : '0' //平均年收入
|
||||
//2516--三个学平险--被保险人国籍默认中国,允许修改
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|
||||
|
||||
@@ -1027,44 +1027,14 @@ export default {
|
||||
})
|
||||
let formdata = new FormData()
|
||||
formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName))
|
||||
uploadImg(formdata).then(
|
||||
(res) => {
|
||||
// console.log(res)
|
||||
uploadImg(formdata).then((res) => {
|
||||
if (res.result == '0') {
|
||||
this.$toast.clear()
|
||||
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'
|
||||
) {
|
||||
if (that.type == 'fileListIdFront' || that.type == 'fileListIdBack' || that.type == 'fileLIstImg' || that.type == 'fileListBank' || that.type == 'fileListNotify' || that.type == 'saleInsuredInfoOther') {
|
||||
debugger
|
||||
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'
|
||||
@@ -1149,20 +1119,13 @@ export default {
|
||||
}
|
||||
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'
|
||||
) {
|
||||
}
|
||||
else if (that.type == 'fileListIdFrontInsured' || that.type == 'fileListIdBackInsured' || that.type == 'fileListBankInsured' || that.type == 'fileLIstImgInsured' || that.type == 'fileListNotifyInsured' || that.type == 'saleInsuredPersonInfoOther') {
|
||||
debugger
|
||||
// 是被保险人
|
||||
// 证件类型
|
||||
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
|
||||
if (that.type == 'fileListIdFrontInsured' && that.id == '1') {
|
||||
name = 'fileListIdFrontInsured'
|
||||
imageInfoType = '1'
|
||||
@@ -1212,7 +1175,6 @@ export default {
|
||||
name = 'fileListNotifyInsured'
|
||||
imageInfoType = '24'
|
||||
}
|
||||
|
||||
let obj = {
|
||||
name: name,
|
||||
businessNo: that.orderNo,
|
||||
@@ -1225,17 +1187,13 @@ export default {
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (
|
||||
that.type == 'fileListIdFrontBeneficiary' ||
|
||||
that.type == 'fileListIdBackBeneficiary' ||
|
||||
that.type == 'fileLIstImgBeneficiary'
|
||||
) {
|
||||
}
|
||||
else if (that.type == 'fileListIdFrontBeneficiary' || that.type == 'fileListIdBackBeneficiary' || that.type == 'fileLIstImgBeneficiary') {
|
||||
debugger
|
||||
// 是收益人
|
||||
// 证件类型
|
||||
|
||||
let imageInfoType = ''
|
||||
let name = ''
|
||||
|
||||
if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '1'
|
||||
@@ -1295,7 +1253,8 @@ export default {
|
||||
}
|
||||
this.imageType = imageInfoType
|
||||
that.list.push(obj)
|
||||
} else if (that.type == 'fileListOther') {
|
||||
}
|
||||
else if (that.type == 'fileListOther') {
|
||||
// 是其他
|
||||
let type = '2'
|
||||
let name = 'fileListOther'
|
||||
@@ -1324,7 +1283,8 @@ export default {
|
||||
// fileName: that.imgName
|
||||
// }
|
||||
// that.list.push(obj)
|
||||
} else if (that.type == 'fileListNotify') {
|
||||
}
|
||||
else if (that.type == 'fileListNotify') {
|
||||
// 健康告知异常类资料
|
||||
// let obj = {
|
||||
// name: 'fileListNotify',
|
||||
|
||||
Reference in New Issue
Block a user