mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 06:16:44 +08:00
【关于个险渠道协同产品专区系统开发需求的申请】是否为协同单位为是并且协同单位可查,才可选主险为嘉和保,桂企保,瑞利年金
This commit is contained in:
@@ -552,7 +552,8 @@ export default {
|
||||
// marriage: appntDTO.marriage,
|
||||
medical: appntDTO.medical,
|
||||
certiexpiredate: appntDTO.certiexpiredate,
|
||||
nativeplace: appntDTO.nativeplace
|
||||
nativeplace: appntDTO.nativeplace,
|
||||
isAsync: appntDTO.isAsync
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
@@ -380,8 +380,7 @@ export default {
|
||||
//校验该代理人是否有该产品的售卖权限
|
||||
return this.$toast('抱歉,您没有该产品的销售权限!')
|
||||
}
|
||||
|
||||
let flagCompany = await riskRules.checkCompany(resultData.productCode, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).workcompany, this)
|
||||
let flagCompany = await riskRules.checkCompany(resultData.productCode, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).workcompany, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).isAsync,this)
|
||||
if (flagCompany && localStorage.isFrom != 'proposal') {
|
||||
//校验该投保人的工作单位是否能够投保该产品
|
||||
return this.$toast('该投保人工作单位不能投保该产品')
|
||||
|
||||
@@ -125,6 +125,7 @@ import { getDetail, deleteProposal } from '@/api/ebiz/proposal/proposal.js'
|
||||
import { saveOrderActiveType,getActivityList } 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'
|
||||
|
||||
export default {
|
||||
name: 'selectedProduct',
|
||||
@@ -370,7 +371,7 @@ export default {
|
||||
}
|
||||
},
|
||||
//下一步
|
||||
nextStep() {
|
||||
async nextStep() {
|
||||
if (!this.$route.query.salePageFlag) {
|
||||
//如果从保单列表编辑按钮进入
|
||||
localStorage.salePageFlag = '4'
|
||||
@@ -379,6 +380,12 @@ export default {
|
||||
if (this.chooseProducts.length == 0) {
|
||||
return this.$toast('请添加产品')
|
||||
}
|
||||
//重新校验该产品是否需要为协同单位
|
||||
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') {
|
||||
//校验该投保人的工作单位是否能够投保该产品
|
||||
return this.$toast('该投保人工作单位不能投保该产品')
|
||||
}
|
||||
//930折中方案,豁免险选择
|
||||
let oldAddRiskCodes = JSON.parse(localStorage.oldAddRiskCodes)
|
||||
if (oldAddRiskCodes.includes('DCRS_A0001')) {
|
||||
|
||||
@@ -141,7 +141,8 @@ export default {
|
||||
})
|
||||
},
|
||||
//校验投保人工作单位是否有权限投保该产品
|
||||
checkCompany(val, workcompany, that) {
|
||||
//isAsync 是否协同工作单位 0否 1是
|
||||
checkCompany(val, workcompany,isAsync, that) {
|
||||
let flag = true
|
||||
let columns = []
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -152,7 +153,8 @@ export default {
|
||||
if (columns.length == 0) {
|
||||
flag = false
|
||||
} else {
|
||||
flag = !columns.includes(workcompany)
|
||||
//是否为协同单位为是并且协同单位可查,才可选主险为嘉和保,桂企保,瑞利年金
|
||||
flag = !(columns.includes(workcompany) && isAsync == 1)
|
||||
}
|
||||
} else {
|
||||
that.$toast(res.resultMessage)
|
||||
|
||||
@@ -780,9 +780,10 @@ export default {
|
||||
// 选择年龄
|
||||
checkAgeForRate(index) {
|
||||
let risk = this.pageShowInfo.showInsuredDTO
|
||||
if (risk.sliderValue == risk.policyYear) {
|
||||
return
|
||||
}
|
||||
// 建议书选择106,这两个值相等时,就不能再选择其他年龄了,先去掉
|
||||
// if (risk.sliderValue == risk.policyYear) {
|
||||
// return
|
||||
// }
|
||||
risk.sliderValue = index
|
||||
this.$forceUpdate()
|
||||
this.slideChange(risk)
|
||||
|
||||
Reference in New Issue
Block a user