mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 18:36:43 +08:00
'添加人脸识别白名单校验'
This commit is contained in:
@@ -117,6 +117,7 @@ import Order from '@/components/ebiz/insureAgain/Order'
|
|||||||
import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement'
|
import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement'
|
||||||
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||||
import { getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
|
import { getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
|
||||||
|
import { getWhitelist } from '@/api/ebiz/whitelist'
|
||||||
export default {
|
export default {
|
||||||
name: 'InsureAgain',
|
name: 'InsureAgain',
|
||||||
components: {
|
components: {
|
||||||
@@ -256,54 +257,74 @@ export default {
|
|||||||
// return this.$toast('人脸识别,验证失败!')
|
// return this.$toast('人脸识别,验证失败!')
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
getReAppntPolicy({ policyNo: order.policyNo }).then((res) => {
|
getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
let url
|
if (res.orderDTO.appntDTO.idType == '1') {
|
||||||
//投保人信息返显
|
// 白名单校验
|
||||||
CacheUtils.setLocItem('orderDetailData', JSON.stringify(res))
|
const resData = await getWhitelist({
|
||||||
let appntDTO = res.orderDTO.appntDTO
|
idNo: res.orderDTO.appntDTO.idNo,
|
||||||
let insuredDTOs = res.orderDTO.insuredDTOs[0]
|
name: res.orderDTO.appntDTO.name,
|
||||||
let orderInfoDTO = res.orderDTO.orderInfoDTO
|
whiteType: 'reOrder_face_show'
|
||||||
let riskDTOLst = insuredDTOs.riskDTOLst
|
})
|
||||||
this.orderInfo.appntName = appntDTO.name
|
if (resData.result === '0') {
|
||||||
this.orderInfo.cvaliDate = orderInfoDTO.cvaliDate
|
// 在白名单内
|
||||||
this.orderInfo.expiryDate = orderInfoDTO.expiryDate
|
if (resData.content && resData.content.length) {
|
||||||
this.orderInfo.riskCode = ''
|
this.goUrl(res)
|
||||||
CacheUtils.setLocItem('orderNo', orderInfoDTO.orderNo)
|
return
|
||||||
riskDTOLst.forEach((element, index) => {
|
}
|
||||||
if (element.riskCode === 'GFRS_A0008') {
|
} else {
|
||||||
this.orderInfo.riskCode = 'GFRS_A0008'
|
this.$toast(resData.resultMessage)
|
||||||
}
|
}
|
||||||
})
|
|
||||||
if (order.newOrderStatus === '38') {
|
|
||||||
url = '/insureAgain/ProductInformation'
|
|
||||||
} else if (order.newOrderStatus === '39') {
|
|
||||||
url = '/insureAgain/Notification'
|
|
||||||
} else if (order.newOrderStatus === '40') {
|
|
||||||
url = '/insureAgain/SignatureConfirmation'
|
|
||||||
} else if (order.newOrderStatus === '01') {
|
|
||||||
url = '/insureAgain/SignatureConfirmation'
|
|
||||||
} else if (order.newOrderStatus === '02') {
|
|
||||||
url = '/insureAgain/Payment'
|
|
||||||
} else {
|
} else {
|
||||||
this.isAgreementShow = true
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$jump({
|
|
||||||
flag: 'h5',
|
|
||||||
extra: {
|
|
||||||
url: location.origin + '/#' + url
|
|
||||||
},
|
|
||||||
routerInfo: {
|
|
||||||
path: url
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
goUrl(res) {
|
||||||
|
let url
|
||||||
|
//投保人信息返显
|
||||||
|
CacheUtils.setLocItem('orderDetailData', JSON.stringify(res))
|
||||||
|
let appntDTO = res.orderDTO.appntDTO
|
||||||
|
let insuredDTOs = res.orderDTO.insuredDTOs[0]
|
||||||
|
let orderInfoDTO = res.orderDTO.orderInfoDTO
|
||||||
|
let riskDTOLst = insuredDTOs.riskDTOLst
|
||||||
|
this.orderInfo.appntName = appntDTO.name
|
||||||
|
this.orderInfo.cvaliDate = orderInfoDTO.cvaliDate
|
||||||
|
this.orderInfo.expiryDate = orderInfoDTO.expiryDate
|
||||||
|
this.orderInfo.riskCode = ''
|
||||||
|
CacheUtils.setLocItem('orderNo', orderInfoDTO.orderNo)
|
||||||
|
riskDTOLst.forEach((element, index) => {
|
||||||
|
if (element.riskCode === 'GFRS_A0008') {
|
||||||
|
this.orderInfo.riskCode = 'GFRS_A0008'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (order.newOrderStatus === '38') {
|
||||||
|
url = '/insureAgain/ProductInformation'
|
||||||
|
} else if (order.newOrderStatus === '39') {
|
||||||
|
url = '/insureAgain/Notification'
|
||||||
|
} else if (order.newOrderStatus === '40') {
|
||||||
|
url = '/insureAgain/SignatureConfirmation'
|
||||||
|
} else if (order.newOrderStatus === '01') {
|
||||||
|
url = '/insureAgain/SignatureConfirmation'
|
||||||
|
} else if (order.newOrderStatus === '02') {
|
||||||
|
url = '/insureAgain/Payment'
|
||||||
|
} else {
|
||||||
|
this.isAgreementShow = true
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
url: location.origin + '/#' + url
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: url
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
uncommitInsureDetail(order) {
|
uncommitInsureDetail(order) {
|
||||||
CacheUtils.setLocItem('policyNo', order.policyNo)
|
CacheUtils.setLocItem('policyNo', order.policyNo)
|
||||||
this.$jump({
|
this.$jump({
|
||||||
|
|||||||
Reference in New Issue
Block a user