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