mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 16:56:43 +08:00
关于产品风险等级与销售人员资质校验系统需求
This commit is contained in:
@@ -396,4 +396,12 @@ export function changeOrderStatus(data) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function riskLevelCheck(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/sale/order/riskLevelCheck', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Cell, CellGroup, Tag, Radio, RadioGroup,Tab,Tabs} from 'vant'
|
import { Cell, CellGroup, Tag, Radio, RadioGroup,Tab,Tabs} from 'vant'
|
||||||
import { mainRiskList,mainRiskListProposal,calculatePremium,getActProductList } from '@/api/ebiz/common/common'
|
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 { getDetail } from '@/api/ebiz/proposal/proposal.js'
|
||||||
import riskRules from './risk-rules'
|
import riskRules from './risk-rules'
|
||||||
export default {
|
export default {
|
||||||
@@ -326,16 +326,28 @@ export default {
|
|||||||
|
|
||||||
//下一步
|
//下一步
|
||||||
nextStep() {
|
nextStep() {
|
||||||
console.log(this.result)
|
|
||||||
if (!this.result) {
|
if (!this.result) {
|
||||||
this.$toast('请选择产品')
|
this.$toast('请选择产品')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//置空产品
|
let params = {
|
||||||
localStorage.chooseProducts = ''
|
productCode: this.result.riskProductCode,
|
||||||
|
orderNo: this.$route.query.orderNo
|
||||||
//添加主险
|
}
|
||||||
this.addMainRisk()
|
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() {
|
async addMainRisk() {
|
||||||
|
|||||||
Reference in New Issue
Block a user