GFRS-2223 【重新投保】-保额展示及待支付订单取消人脸识别---提交人:白金岩

This commit is contained in:
bai.jinyan
2021-05-28 09:55:32 +08:00
parent cc0c168e02
commit 159bf6c5de
2 changed files with 35 additions and 29 deletions

View File

@@ -292,38 +292,44 @@ export default {
}, 100)
getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => {
if (res.result == 0) {
this.orderInfo.sex = res.orderDTO.appntDTO.sex
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, order)
return
// 待支付订单 不需再次人脸识别
if (order.newOrderStatus == '02') {
this.goUrl(res, order)
return
}else {
this.orderInfo.sex = res.orderDTO.appntDTO.sex
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, order)
return
} else {
// 人脸识别
window.EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: res.orderDTO.appntDTO.idNo, //身份证号码
name: res.orderDTO.appntDTO.name //姓名
}).then((data) => {
if (JSON.parse(data).state == '1') {
this.goUrl(res, order)
} else {
return this.$toast('人脸识别,验证失败!')
}
})
}
} else {
// 人脸识别
window.EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: res.orderDTO.appntDTO.idNo, //身份证号码
name: res.orderDTO.appntDTO.name //姓名
}).then((data) => {
if (JSON.parse(data).state == '1') {
this.goUrl(res, order)
} else {
return this.$toast('人脸识别,验证失败!')
}
})
this.$toast(resData.resultMessage)
}
} else {
this.$toast(resData.resultMessage)
return this.$toast('人脸识别,证件类型不为身份证!')
}
} else {
return this.$toast('人脸识别,证件类型不为身份证!')
}
} else {
this.$toast(res.resultMessage)