mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 19:26:43 +08:00
Compare commits
2 Commits
release/【2
...
feature/【2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02dee75430 | ||
|
|
68dbd13b09 |
@@ -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,32 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
if(this.manageComCode == '45') {
|
||||
console.log(this.chooseProducts)
|
||||
if(this.appntDTO.age >= 60) {
|
||||
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
|
||||
} else {
|
||||
@@ -961,35 +991,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 +1002,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',
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user