添加受益人增加四要素校验接口

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-11-02 16:58:22 +08:00
parent f590880d36
commit 70d2f6da7f
2 changed files with 49 additions and 10 deletions

View File

@@ -362,4 +362,13 @@ export function getDoubleRecordProductLst(data) {
method: 'post', method: 'post',
data data
}) })
} }
// 指定受益人身份四要素
export function checkAppointBnf(data) {
return request({
url: getUrl('/sale/bnfCheck/checkAppointBnf ', 1),
method: 'post',
data
})
}

View File

@@ -250,7 +250,7 @@ import idNoCheck from '@/assets/js/utils/idNoCheck'
import { idToData } from './js/verification' import { idToData } from './js/verification'
import { selectComp } from './js/methods' import { selectComp } from './js/methods'
import getAreaName from '@/assets/js/utils/getAreaNameForSale' import getAreaName from '@/assets/js/utils/getAreaNameForSale'
import { getOrderDetail } from '@/api/ebiz/sale/sale' import { getOrderDetail, checkAppointBnf } from '@/api/ebiz/sale/sale'
let relationToInsured = [ let relationToInsured = [
{ id: 2, text: '配偶' }, { id: 2, text: '配偶' },
@@ -1121,14 +1121,44 @@ export default {
if (this.userInfo.asAppntAddress == true) { if (this.userInfo.asAppntAddress == true) {
localStorage.applicant = '1' localStorage.applicant = '1'
} }
this.$jump({ let thisbnfDTOs = []
flag: 'h5', thisbnfDTOs.push(this.userInfo)
extra: { let params = {
url: location.origin + '/#/sale/beneficiary?orderNo=' + this.$route.query.orderNo, orderType: 'BNF_ORDER',
needRefresh: '1' orderDTO: {
}, productDTO: null,
routerInfo: { orderInfoDTO: {
path: '/sale/beneficiary?orderNo=' + this.$route.query.orderNo bnfFlag: this.bnfFlag,
orderNo: this.$route.query.orderNo
},
appntDTO: {},
insuredDTOs: [
{
insuredId: JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredId,
bnfDTOs: thisbnfDTOs
}
],
paymentDTO: {},
orderAccountDTO: {},
channelDTO: null,
orderExpandDTO: null,
thirdOrderDTO: null
}
}
checkAppointBnf(params).then(res=>{
if(res.result == '0'){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/beneficiary?orderNo=' + this.$route.query.orderNo,
needRefresh: '1'
},
routerInfo: {
path: '/sale/beneficiary?orderNo=' + this.$route.query.orderNo
}
})
} else {
this.$toast(res.resultMessage)
} }
}) })
} else { } else {