From 70d2f6da7fbed1268540264fca7d21c26d257fd3 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Thu, 2 Nov 2023 16:58:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=97=E7=9B=8A=E4=BA=BA?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=9B=E8=A6=81=E7=B4=A0=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ebiz/sale/sale.js | 11 ++++- src/views/ebiz/sale/AddBeneficiaryInfo.vue | 48 ++++++++++++++++++---- 2 files changed, 49 insertions(+), 10 deletions(-) diff --git a/src/api/ebiz/sale/sale.js b/src/api/ebiz/sale/sale.js index 19ac747ff..258ebe413 100644 --- a/src/api/ebiz/sale/sale.js +++ b/src/api/ebiz/sale/sale.js @@ -362,4 +362,13 @@ export function getDoubleRecordProductLst(data) { method: 'post', data }) -} \ No newline at end of file +} + +// 指定受益人身份四要素 +export function checkAppointBnf(data) { + return request({ + url: getUrl('/sale/bnfCheck/checkAppointBnf ', 1), + method: 'post', + data + }) +} diff --git a/src/views/ebiz/sale/AddBeneficiaryInfo.vue b/src/views/ebiz/sale/AddBeneficiaryInfo.vue index f27279e4b..f8ae16ece 100644 --- a/src/views/ebiz/sale/AddBeneficiaryInfo.vue +++ b/src/views/ebiz/sale/AddBeneficiaryInfo.vue @@ -250,7 +250,7 @@ import idNoCheck from '@/assets/js/utils/idNoCheck' import { idToData } from './js/verification' import { selectComp } from './js/methods' import getAreaName from '@/assets/js/utils/getAreaNameForSale' -import { getOrderDetail } from '@/api/ebiz/sale/sale' +import { getOrderDetail, checkAppointBnf } from '@/api/ebiz/sale/sale' let relationToInsured = [ { id: 2, text: '配偶' }, @@ -1121,14 +1121,44 @@ export default { if (this.userInfo.asAppntAddress == true) { localStorage.applicant = '1' } - 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 + let thisbnfDTOs = [] + thisbnfDTOs.push(this.userInfo) + let params = { + orderType: 'BNF_ORDER', + orderDTO: { + productDTO: null, + orderInfoDTO: { + 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 {