mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 05:32:52 +08:00
Merge branch 'feature/增加主险' into dev
This commit is contained in:
@@ -262,20 +262,14 @@ export default {
|
||||
},
|
||||
//转投保
|
||||
async toInsurance(item) {
|
||||
console.log(item)
|
||||
|
||||
for (let i = 0; i < item.insuredDTOs.length; i++) {
|
||||
if (item.insuredDTOs[i].mainRisk.length == '2') {
|
||||
return Toast.fail('暂不支持组合产品转投保')
|
||||
}
|
||||
let flag = true //所有类型都调用check
|
||||
const arr = []
|
||||
item.insuredDTOs[i].riskDTOLst.map(item => {
|
||||
arr.push(item.riskCode)
|
||||
})
|
||||
if (flag && (await riskRules.getProductSellPermissionList(arr, this))) {
|
||||
return this.$toast('抱歉,您没有该产品的销售权限!')
|
||||
}
|
||||
// if (item.insuredDTOs[0].mainRisk.length == '2') {
|
||||
// return Toast.fail('暂不支持组合产品转投保')
|
||||
// }
|
||||
let flag = item.insuredDTOs[0].riskDTOLst.some(v => {
|
||||
return v.riskCode == 'GFRS_M0024'
|
||||
})
|
||||
if (flag && (await riskRules.getProductSellPermissionList('GFRS_M0024', this))) {
|
||||
return this.$toast('抱歉,您没有该产品的销售权限!')
|
||||
}
|
||||
// let flag = item.insuredDTOs[0].riskDTOLst.some(v => {
|
||||
// return v.riskCode == 'GFRS_M0024' //桂企单独调用check
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
<span>{{ moneyItem.contentLabel }}</span>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormatNo}}</span
|
||||
<span class="color_3A81F6">{{ moneyItem.value | numFormatNo }}</span
|
||||
>{{ moneyItem.content | productRateUnit }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -361,11 +361,11 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
numFormat(str){
|
||||
return str.replace(/\.00/,'')
|
||||
numFormat(str) {
|
||||
return str.replace(/\.00/, '')
|
||||
},
|
||||
numFormatNo(str){
|
||||
return Number(str.replace(/,/g, '')).toFixed(0);
|
||||
numFormatNo(str) {
|
||||
return Number(str.replace(/,/g, '')).toFixed(0)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -637,16 +637,17 @@ export default {
|
||||
async insure() {
|
||||
let path = '/sale/insuredInfo?edit=1'
|
||||
if (this.mainRiskCodes) {
|
||||
if (this.mainRiskCodes.length != 1) {
|
||||
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('抱歉,您没有该产品的销售权限!')
|
||||
// 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('抱歉,您没有该产品的销售权限!')
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user