[FIX]【桂企】客户列表带入信息-将工作单位置空;产品详情页投保按钮,增加售卖权限校验

This commit is contained in:
yuweiqi
2020-05-26 11:53:05 +08:00
parent 06f6cbab20
commit 313ee92f3b
2 changed files with 12 additions and 2 deletions

View File

@@ -31,6 +31,8 @@
<script> <script>
import { Tab, Tabs, List, Row, Col, Icon, Cell, Sticky } from 'vant' import { Tab, Tabs, List, Row, Col, Icon, Cell, Sticky } from 'vant'
import { getProductInfo } from '@/api/ebiz/product/product.js' import { getProductInfo } from '@/api/ebiz/product/product.js'
import riskRules from '../common/risk-rules.js'
export default { export default {
components: { components: {
[Tab.name]: Tab, [Tab.name]: Tab,
@@ -95,13 +97,21 @@ export default {
} }
}) })
}, },
goInsure() { async goInsure() {
localStorage.orderNo = '' localStorage.orderNo = ''
localStorage.chooseProductCodes = '' //置空所选险种 localStorage.chooseProductCodes = '' //置空所选险种
let path = `/sale/insuredInfo` let path = `/sale/insuredInfo`
let flagPermission = true
if (this.$route.params.productDetailCode == 'GFRSPRO_M0024') { if (this.$route.params.productDetailCode == 'GFRSPRO_M0024') {
flagPermission = await riskRules.getProductSellPermissionList('GFRS_M0024', this)
let specilFlag = '1' let specilFlag = '1'
path = `${path}?specilFlag=${specilFlag}` path = `${path}?specilFlag=${specilFlag}`
} else {
flagPermission = false
}
if (flagPermission) {
//校验该代理人是否有该产品的售卖权限
return this.$toast('抱歉,您没有该产品的销售权限!')
} }
// 跳转到投保建议 // 跳转到投保建议
this.$jump({ this.$jump({

View File

@@ -885,7 +885,7 @@ export default {
this.userInfo.medical = data.socialSecurity //有无社保 this.userInfo.medical = data.socialSecurity //有无社保
this.userInfo.taxResidentId = data.residentStatus //税收居民身份 this.userInfo.taxResidentId = data.residentStatus //税收居民身份
this.userInfo.averageAnnualIncome = data.averageYearlyIncome //平均年收入 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.jobStatus = data.jobStatus //工作情况
this.userInfo.marriage = data.marryStatus //婚姻状况 this.userInfo.marriage = data.marryStatus //婚姻状况
this.userInfo.familyAnnualIncome = data.familyAnnualIncome //家庭年收入 this.userInfo.familyAnnualIncome = data.familyAnnualIncome //家庭年收入