[FIX] 修改建议书转投保checke校验条件

This commit is contained in:
li.kai
2020-07-07 17:42:54 +08:00
parent ee6d19a718
commit 70fe4cd249

View File

@@ -44,7 +44,7 @@
<div class="line_gray"></div>
<div class="text-center">
<label class="fs14 color_3A81F6 fw600 lh24">首年保费</label><br />
<label class="fs13 color_FFA42F lh20">{{ pageShowInfo.showInsuredDTO.totalPrem | numFormat}}</label>
<label class="fs13 color_FFA42F lh20">{{ pageShowInfo.showInsuredDTO.totalPrem | numFormat }}</label>
</div>
</div>
<div class="fs15 line_title">产品计划</div>
@@ -361,8 +361,8 @@ export default {
}
}
},
numFormat(str){
return str.replace(/\.00/,'')
numFormat(str) {
return str.replace(/\.00/, '')
}
},
mounted() {
@@ -398,7 +398,7 @@ export default {
methods: {
initDutyColor(code) {
if (code) {
return code.replace(new RegExp('<span>', 'g'), '<span style="color: #3a81f6;font-weight: 600;">').replace(/\.00/,'')
return code.replace(new RegExp('<span>', 'g'), '<span style="color: #3a81f6;font-weight: 600;">').replace(/\.00/, '')
} else {
return ''
}
@@ -635,15 +635,15 @@ export default {
if (this.mainRiskCodes.length != 1) {
return Toast.fail('暂不支持组合产品转投保')
}
if (this.mainRiskCodes[0] == 'GFRS_M0024') {
let specilFlag = '1'
path = `${path}&specilFlag=${specilFlag}`
let flagPermission = await riskRules.getProductSellPermissionList(this.mainRiskCodes[0], this)
if (flagPermission) {
//校验该代理人是否有该产品的售卖权限
return Toast.fail('抱歉,您没有该产品的销售权限!')
}
// if (this.mainRiskCodes[0] == 'GFRS_M0024') { //将checke开发给所有类型
let specilFlag = '1'
path = `${path}&specilFlag=${specilFlag}`
let flagPermission = await riskRules.getProductSellPermissionList(this.mainRiskCodes[0], this)
if (flagPermission) {
//校验该代理人是否有该产品的售卖权限
return Toast.fail('抱歉,您没有该产品的销售权限!')
}
// }
}
let params = {
proposalInfoDTO: {