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() {