mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 04:16:44 +08:00
Compare commits
3 Commits
release/【2
...
feature/FM
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f89a845b75 | ||
|
|
a14e2c2784 | ||
|
|
55ba73ea48 |
@@ -396,4 +396,12 @@ export function changeOrderStatus(data) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function riskLevelCheck(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/order/riskLevelCheck', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
@@ -52,7 +52,7 @@
|
||||
<script>
|
||||
import { Cell, CellGroup, Tag, Radio, RadioGroup,Tab,Tabs} from 'vant'
|
||||
import { mainRiskList,mainRiskListProposal,calculatePremium,getActProductList } from '@/api/ebiz/common/common'
|
||||
import { getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||
import { getOrderDetail, riskLevelCheck } from '@/api/ebiz/sale/sale'
|
||||
import { getDetail } from '@/api/ebiz/proposal/proposal.js'
|
||||
import riskRules from './risk-rules'
|
||||
export default {
|
||||
@@ -70,7 +70,7 @@ export default {
|
||||
return {
|
||||
recommendType: '', // 渠道控制
|
||||
isCrossChannel: 0, // 是否选择交叉渠道列表 0-否 1-是
|
||||
active: 2,
|
||||
active: 'normal',
|
||||
specilFlag: '0',
|
||||
flag: true,
|
||||
list: [],
|
||||
@@ -105,8 +105,6 @@ export default {
|
||||
} else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0024' || res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0040') {
|
||||
this.specilFlag = '1'
|
||||
}
|
||||
// 处理活动产品
|
||||
// this.activeFlag = res.orderDTO.orderInfoDTO.activeType
|
||||
//isActivityCode 有值代表是活动,无值代表是普通产品
|
||||
this.isActivityCode = res.orderDTO.orderInfoDTO.activityCode
|
||||
// recommendType 03 银保渠道
|
||||
@@ -145,26 +143,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// checkItemShow(item) {
|
||||
// if (this.activeFlag != 'KMH' && this.activeFlag != 'SQY') {
|
||||
// return true
|
||||
// }
|
||||
// let showFlag = false
|
||||
// if (item.activeLst && item.activeLst.length > 0) {
|
||||
// item.activeLst.forEach(subItem => {
|
||||
// if (this.activeFlag && this.activeFlag == 'KMH') {
|
||||
// if (subItem == 'KMH') {
|
||||
// showFlag = true;
|
||||
// }
|
||||
// }else if (this.activeFlag && this.activeFlag == 'SQY') {
|
||||
// if (subItem == 'SQY') {
|
||||
// showFlag = true;
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// return showFlag
|
||||
// },
|
||||
onChangeMainList(name){
|
||||
if (name == 'cross') {
|
||||
this.isCrossChannel = '1';
|
||||
@@ -326,16 +304,38 @@ export default {
|
||||
|
||||
//下一步
|
||||
nextStep() {
|
||||
console.log(this.result)
|
||||
if (!this.result) {
|
||||
this.$toast('请选择产品')
|
||||
return
|
||||
}
|
||||
//置空产品
|
||||
localStorage.chooseProducts = ''
|
||||
|
||||
//添加主险
|
||||
this.addMainRisk()
|
||||
if(localStorage.getItem('isFrom') == 'sale') {
|
||||
let params = {
|
||||
productCode: this.result.riskProductCode,
|
||||
orderNo: this.$route.query.orderNo,
|
||||
}
|
||||
if(this.recommendType == '03' && !this.isActivityCode) {
|
||||
params.productChannl = this.isCrossChannel
|
||||
}
|
||||
riskLevelCheck(params).then(res => {
|
||||
if(res.result == 0) {
|
||||
if(res.saLevelMatch == "Y"){
|
||||
//置空产品
|
||||
localStorage.chooseProducts = ''
|
||||
//添加主险
|
||||
this.addMainRisk()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
//置空产品
|
||||
localStorage.chooseProducts = ''
|
||||
//添加主险
|
||||
this.addMainRisk()
|
||||
}
|
||||
},
|
||||
//储存主险
|
||||
async addMainRisk() {
|
||||
|
||||
Reference in New Issue
Block a user