From bdac5e8adec3c85774c32b99860610bb2cc1de63 Mon Sep 17 00:00:00 2001 From: "li.yuetong" Date: Fri, 8 Apr 2022 18:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E4=BF=9D=E4=BA=BA=E8=AF=B7=E6=B1=82{{?= =?UTF-8?q?URL}}/sale/card/saveOrUpdateGroupCard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ebiz/cardList/cardList.js | 10 ++ src/views/ebiz/cardList/GroupAppntInfo.vue | 18 +- src/views/ebiz/cardList/GroupCheckInfo.vue | 26 +-- src/views/ebiz/cardList/GroupInsuredInfo.vue | 163 +++---------------- src/views/ebiz/cardList/productDetails.vue | 15 +- 5 files changed, 72 insertions(+), 160 deletions(-) diff --git a/src/api/ebiz/cardList/cardList.js b/src/api/ebiz/cardList/cardList.js index 34ab46168..04916ec63 100644 --- a/src/api/ebiz/cardList/cardList.js +++ b/src/api/ebiz/cardList/cardList.js @@ -126,3 +126,13 @@ export function revokeOrder(data) { data }) } + +// 团险--多个被保人--开始 +// 投保人保存接口 +export function saveOrUpdateGroupCard(data) { + return request({ + url: getUrl('/sale/card/saveOrUpdateGroupCard', 1), + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/views/ebiz/cardList/GroupAppntInfo.vue b/src/views/ebiz/cardList/GroupAppntInfo.vue index a5f94db1e..8f1840285 100644 --- a/src/views/ebiz/cardList/GroupAppntInfo.vue +++ b/src/views/ebiz/cardList/GroupAppntInfo.vue @@ -198,7 +198,7 @@ import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker' import CustomerPicker from '@/components/ebiz/customer/CustomerPicker' import DataDictionary from '@/assets/js/utils/data-dictionary' import areaList from '@/assets/js/utils/areaForSale' -import { saveOrUpdateCard } from '@/api/ebiz/cardList/cardList.js' +import { saveOrUpdateGroupCard } from '@/api/ebiz/cardList/cardList.js' import utilsAge from '@/assets/js/utils/age' import getAreaName from '@/assets/js/utils/getAreaNameForSale' import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan' @@ -797,12 +797,22 @@ export default { supportBank: '0' }, appntDTO: this.userInfo, - // insuredDTOs: [this.insuredInfo] - } + }, + orderType: "CARDGROUP_APPNT_ORDER" } - let resultData = await saveOrUpdateCard(params) + let resultData = await saveOrUpdateGroupCard(params) if (resultData.result == 0) { + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + `/#/cardList/GroupInsuredInfo`, + forbidSwipeBack: 1 + }, + routerInfo: { + path: `/cardList/GroupInsuredInfo` + } + }) console.log('resultData.orderNo', resultData.content.object) } else { console.error(resultData.resultMessage) diff --git a/src/views/ebiz/cardList/GroupCheckInfo.vue b/src/views/ebiz/cardList/GroupCheckInfo.vue index 11db8b8af..8dd396eda 100644 --- a/src/views/ebiz/cardList/GroupCheckInfo.vue +++ b/src/views/ebiz/cardList/GroupCheckInfo.vue @@ -25,15 +25,19 @@ - +

被保人信息

- - - - - - - + + + + + + + + + + +

受益人信息

@@ -52,7 +56,7 @@