关于产品风险等级与销售人员资质校验系统需求

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-03-29 17:11:13 +08:00
parent 9238ad698b
commit 55ba73ea48
2 changed files with 27 additions and 7 deletions

View File

@@ -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
})
}

View File

@@ -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 {
@@ -326,16 +326,28 @@ export default {
//下一步
nextStep() {
console.log(this.result)
if (!this.result) {
this.$toast('请选择产品')
return
}
//置空产品
localStorage.chooseProducts = ''
//添加主险
this.addMainRisk()
let params = {
productCode: this.result.riskProductCode,
orderNo: this.$route.query.orderNo
}
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)
}
})
},
//储存主险
async addMainRisk() {