From 7d4c1f1397a972d25e78f824c04c04e1167506f3 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Sun, 8 Oct 2023 09:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E5=BD=95=E5=BC=B9=E7=AA=97=E6=96=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5=E4=B8=8E=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ebiz/sale/sale.js | 9 ++++ src/views/ebiz/common/SelectedProduct.vue | 56 +++++++++++++++++------ 2 files changed, 52 insertions(+), 13 deletions(-) diff --git a/src/api/ebiz/sale/sale.js b/src/api/ebiz/sale/sale.js index eece5631a..19ac747ff 100644 --- a/src/api/ebiz/sale/sale.js +++ b/src/api/ebiz/sale/sale.js @@ -353,4 +353,13 @@ export function getUniversalCodeLst(data) { method: 'post', data }) +} + +// 获取柳州分红万能投连型产品编码集合 +export function getDoubleRecordProductLst(data) { + return request({ + url: getUrl('/sale/product/getDoubleRecordProductLst ', 1), + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index 5574be8fb..a65a05a61 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -133,7 +133,7 @@ import FieldPicker from '@/components/ebiz/FieldPicker' import { orderDetail, deleteOrderInfo, mainRiskList, mainRiskListProposal, calculatePremium } from '@/api/ebiz/common/common' import { formatAllRisk } from '@/assets/js/utils/formatRiskList' import { getDetail, deleteProposal } from '@/api/ebiz/proposal/proposal.js' -import { saveOrderActiveType,getActivityList } from '@/api/ebiz/sale/sale.js' +import { saveOrderActiveType,getActivityList, getDoubleRecordProductLst } from '@/api/ebiz/sale/sale.js' import utilsAge from '@/assets/js/utils/age' import IndexBar from '@/components/ebiz/sale/IndexBar' import riskRules from './risk-rules' @@ -770,17 +770,33 @@ export default { } }) } else { - let showFlag = this.showTipForDoubleRecord() + let showFlag = false + if (this.manageComCode == '52') { + this.chooseProducts.map(item => { + if (item.insuYearFlag == 'A' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) { + showFlag = true + return true + } + }) + } + if(!showFlag){ + let doubleRecordRes = await getDoubleRecordProductLst({}) + if(doubleRecordRes.result == 0){ + if(doubleRecordRes.content && doubleRecordRes.content.length != 0){ + doubleRecordRes.content.forEach(items=>{ + this.chooseProducts.map(item => { + if (item.riskCode == items ) { + showFlag = true + return true + } + }) + }) + } + } + } + if (showFlag) { this.thisdoubledialogshow = true - // this.$dialog - // .alert({ - // message: '根据监管要求,本单需要您配合对销售过程进行录音录像!', - // confirmButtonColor: '#000000' - // }) - // .then(() => { - // this.nextPageShow() - // }) } else { this.nextPageShow() } @@ -923,19 +939,33 @@ export default { } }) }, - showTipForDoubleRecord() { + async showTipForDoubleRecord() { //判断投保人年龄是否大于等于60岁 let showFlag = false let age = this.appntDTO.birthday?utilsAge.getAge(this.appntDTO.birthday, new Date()):this.appntDTO.age if (this.manageComCode == '52') { - console.log(this.chooseProducts) this.chooseProducts.map(item => { - if (item.insuYearFlag == 'A' || item.riskCode == 'GFRS_M0074' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) { + if (item.insuYearFlag == 'A' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) { showFlag = true return true } }) } + if(showFlag){ + let doubleRecordRes = await getDoubleRecordProductLst({}) + if(doubleRecordRes.result == 0){ + if(doubleRecordRes.content && doubleRecordRes.content.length != 0){ + doubleRecordRes.content.forEach(items=>{ + this.chooseProducts.map(item => { + if (item.riskCode == items ) { + showFlag = true + return true + } + }) + }) + } + } + } return showFlag }, nextPageShow() {