From bcbd67beb1c7251cc839da4daeaf4ff996c915b9 Mon Sep 17 00:00:00 2001 From: proudlx <965752348@qq.com> Date: Mon, 12 Apr 2021 09:08:10 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=B7=BB=E5=8A=A0=E4=BA=BA=E8=84=B8=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E7=99=BD=E5=90=8D=E5=8D=95=E6=A0=A1=E9=AA=8C'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/insureAgain/index.vue | 99 +++++++++++++++++----------- 1 file changed, 60 insertions(+), 39 deletions(-) diff --git a/src/views/ebiz/insureAgain/index.vue b/src/views/ebiz/insureAgain/index.vue index a5869433c..4197af16c 100644 --- a/src/views/ebiz/insureAgain/index.vue +++ b/src/views/ebiz/insureAgain/index.vue @@ -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({