mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 17:46:44 +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 CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||
import { getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
|
||||
import { getWhitelist } from '@/api/ebiz/whitelist'
|
||||
export default {
|
||||
name: 'InsureAgain',
|
||||
components: {
|
||||
@@ -256,54 +257,74 @@ export default {
|
||||
// return this.$toast('人脸识别,验证失败!')
|
||||
// }
|
||||
// })
|
||||
getReAppntPolicy({ policyNo: order.policyNo }).then((res) => {
|
||||
getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => {
|
||||
if (res.result == 0) {
|
||||
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 (res.orderDTO.appntDTO.idType == '1') {
|
||||
// 白名单校验
|
||||
const resData = await getWhitelist({
|
||||
idNo: res.orderDTO.appntDTO.idNo,
|
||||
name: res.orderDTO.appntDTO.name,
|
||||
whiteType: 'reOrder_face_show'
|
||||
})
|
||||
if (resData.result === '0') {
|
||||
// 在白名单内
|
||||
if (resData.content && resData.content.length) {
|
||||
this.goUrl(res)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
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 {
|
||||
this.isAgreementShow = true
|
||||
return false
|
||||
}
|
||||
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#' + url
|
||||
},
|
||||
routerInfo: {
|
||||
path: url
|
||||
}
|
||||
})
|
||||
} else {
|
||||
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) {
|
||||
CacheUtils.setLocItem('policyNo', order.policyNo)
|
||||
this.$jump({
|
||||
|
||||
Reference in New Issue
Block a user