diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index eaf96565d..cb845903d 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -750,6 +750,10 @@ if (this.chooseProducts.length == 0) { return this.$toast('请添加产品') } + if(!this.isElecCont) { + this.$toast('请选择保单形式') + return false + } //重新校验该产品是否需要为协同单位 let flagCompany = await riskRules.checkCompany(this.chooseProducts[0].riskCode, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).workcompany, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).isAsync,this) if (flagCompany && localStorage.isFrom != 'proposal') { @@ -817,6 +821,11 @@ } } } + if(this.manageComCode == '45') { + if(this.appntDTO.age >= 60) { + showFlag = true + } + } if (showFlag) { this.thisdoubledialogshow = true } else { @@ -961,35 +970,6 @@ } }) }, - 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') { - 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 - } - }) - }) - } - } - } - return showFlag - }, nextPageShow() { let thismyurl = '' if (this.$route.query.orderNo) { @@ -1001,47 +981,30 @@ localStorage.fromAddBeneficiaryInfo = '' localStorage.removeItem('applicant') if(this.isFrom == 'sale') { - if(!this.isElecCont) { - this.$toast('请选择保单形式') - return false + let params = { + orderNO: this.$route.query.orderNo, + isElecCont: this.isElecCont } - else { - let params = { - orderNO: this.$route.query.orderNo, - isElecCont: this.isElecCont + if(this.isElecCont == '1') { + params.isElecCont = '0' + } + saveOrderType(params).then(res => { + if(res.result == 0) { + this.$jump({ + flag: 'h5', + extra: { + forbidSwipeBack: '1', + url: location.origin + '/#' + thismyurl, + needRefresh: '1' + }, + routerInfo: { + path: thismyurl + } + }) + } else { + this.$toast(res.resultMessage) } - if(this.isElecCont == '1') { - params.isElecCont = '0' - } - saveOrderType(params).then(res => { - if(res.result == 0) { - this.$jump({ - flag: 'h5', - extra: { - forbidSwipeBack: '1', - url: location.origin + '/#' + thismyurl, - needRefresh: '1' - }, - routerInfo: { - path: thismyurl - } - }) - } else { - this.$toast(res.resultMessage) - } - }) - // this.$jump({ - // flag: 'h5', - // extra: { - // forbidSwipeBack: '1', - // url: location.origin + '/#' + thismyurl, - // needRefresh: '1' - // }, - // routerInfo: { - // path: thismyurl - // } - // }) - } + }) } else { this.$jump({ flag: 'h5', diff --git a/src/views/ebiz/sale/InsuredInfo.vue b/src/views/ebiz/sale/InsuredInfo.vue index 4ef134e67..a6ae62812 100644 --- a/src/views/ebiz/sale/InsuredInfo.vue +++ b/src/views/ebiz/sale/InsuredInfo.vue @@ -1487,26 +1487,10 @@ this.$CacheUtils.setLocItem('orderNo', resultData.orderNo) // localStorage.insuredDetail = JSON.stringify(this.userInfo) // 添加提示 - let age = utilsAge.getAge(this.userInfo.birthday, new Date()) - if (age >= 60 && this.manageComCode == '45') { - this.thisdoubledialogshow = true - // this.$dialog - // .alert({ - // message: '根据监管要求,本单需要您配合对销售过程进行录音录像!', - // confirmButtonColor: '#000000', - // }) - // .then(() => { - // this.$jump({ - // flag: 'h5', - // extra: { - // url: location.origin + `/#/sale/insuredPerson?${str}` + '&orderNo=' + resultData.orderNo, - // }, - // routerInfo: { - // path: `/sale/insuredPerson?${str}` + '&orderNo=' + resultData.orderNo, - // }, - // }) - // }) - } else { + // let age = utilsAge.getAge(this.userInfo.birthday, new Date()) + // if (age >= 60 && this.manageComCode == '45') { + // this.thisdoubledialogshow = true + // } else { this.$jump({ flag: 'h5', extra: { @@ -1516,7 +1500,7 @@ path: `/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo, }, }) - } + // } } else { this.$toast(resultData.resultMessage) }