mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 09:16:43 +08:00
[FIX]【桂企】客户列表带入信息-将工作单位置空;产品详情页投保按钮,增加售卖权限校验
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
<script>
|
||||
import { Tab, Tabs, List, Row, Col, Icon, Cell, Sticky } from 'vant'
|
||||
import { getProductInfo } from '@/api/ebiz/product/product.js'
|
||||
import riskRules from '../common/risk-rules.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
[Tab.name]: Tab,
|
||||
@@ -95,13 +97,21 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
goInsure() {
|
||||
async goInsure() {
|
||||
localStorage.orderNo = ''
|
||||
localStorage.chooseProductCodes = '' //置空所选险种
|
||||
let path = `/sale/insuredInfo`
|
||||
let flagPermission = true
|
||||
if (this.$route.params.productDetailCode == 'GFRSPRO_M0024') {
|
||||
flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0024', this)
|
||||
let specilFlag = '1'
|
||||
path = `${path}?specilFlag=${specilFlag}`
|
||||
} else {
|
||||
flagPermission = false
|
||||
}
|
||||
if (flagPermission) {
|
||||
//校验该代理人是否有该产品的售卖权限
|
||||
return this.$toast('抱歉,您没有该产品的销售权限!')
|
||||
}
|
||||
// 跳转到投保建议
|
||||
this.$jump({
|
||||
|
||||
@@ -885,7 +885,7 @@ export default {
|
||||
this.userInfo.medical = data.socialSecurity //有无社保
|
||||
this.userInfo.taxResidentId = data.residentStatus //税收居民身份
|
||||
this.userInfo.averageAnnualIncome = data.averageYearlyIncome //平均年收入
|
||||
this.userInfo.workcompany = data.workUnits //工作单位
|
||||
this.userInfo.workcompany = this.specilFlag == '1' ? '' : data.workUnits //工作单位
|
||||
this.userInfo.jobStatus = data.jobStatus //工作情况
|
||||
this.userInfo.marriage = data.marryStatus //婚姻状况
|
||||
this.userInfo.familyAnnualIncome = data.familyAnnualIncome //家庭年收入
|
||||
|
||||
Reference in New Issue
Block a user