mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 09:26:44 +08:00
关于产品风险等级与销售人员资质校验系统需求
This commit is contained in:
@@ -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 {
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user