判断保单挂起

This commit is contained in:
na.guo
2020-08-25 13:32:50 +08:00
parent 90f6cbf72a
commit b5eb38ee16
3 changed files with 60 additions and 2 deletions

View File

@@ -175,5 +175,11 @@ export default {
let str = '' let str = ''
str = (moneyStr + '').replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,') str = (moneyStr + '').replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,')
return str return str
},
// 处理保额的格式化加单位
amtFormat1(moneyStr) {
let str = ''
str = (moneyStr + '').replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,') + '元'
return str
} }
} }

View File

@@ -147,6 +147,43 @@ export default {
}) })
*/ */
this.list = this.$store.getters.getPcPolicyInfo this.list = this.$store.getters.getPcPolicyInfo
//测试数据
// this.list = [
// {
// accountName: '李玉玲',
// accountType: null,
// appntName: '李玉玲',
// bankCode: 'ABC',
// bankName: null,
// bankNo: '0000000000000000000',
// bankProvince: null,
// contNo: '809920200001286898',
// contState: '有效',
// cvalidate: '2020-04-25',
// hangUpFlag: '1',
// insuredName: '李玉玲',
// isNewInfo: '1',
// riskName: '国富人寿国富鑫享年金保险',
// tradeAbstract: '4'
// },
// {
// accountName: '李玉玲',
// accountType: null,
// appntName: '李玉玲',
// bankCode: 'ABC',
// bankName: null,
// bankNo: '0000000000000000000',
// bankProvince: null,
// contNo: '809920200001286898',
// contState: '有效',
// cvalidate: '2020-04-25',
// hangUpFlag: '1',
// insuredName: '李玉玲',
// isNewInfo: '1',
// riskName: '国富人寿国富鑫享年金保险',
// tradeAbstract: '4'
// }
//]
this.getBank() this.getBank()
}, },
mounted() { mounted() {
@@ -261,6 +298,21 @@ export default {
}, },
// 下一步 // 下一步
async nextStep() { async nextStep() {
//过滤挂起的保单
this.list1 = this.list.filter(item => {
return item.hangUpFlag == '1'
})
let contNoList = []
this.list1.forEach(item => {
contNoList.push(item.contNo)
})
contNoList = contNoList.toString()
if (contNoList) {
this.$toast(`当前客户存在以下保单保全在途:${contNoList},暂时不能进行当前保全项操作`)
return false
console.log(contNoList, 'this.list1')
}
this.$validator.validate().then(valid => { this.$validator.validate().then(valid => {
if (true === valid) { if (true === valid) {
this.change() this.change()

View File

@@ -10,7 +10,7 @@
<van-cell title="投保人" :value="detail.appntName" required name="投保人" /> <van-cell title="投保人" :value="detail.appntName" required name="投保人" />
<van-cell title="被保险人" :value="detail.insuredName" required name="被保险人" /> <van-cell title="被保险人" :value="detail.insuredName" required name="被保险人" />
<van-cell title="保单生效日期" :value="detail.cvalidate" required name="保单生效日期" /> <van-cell title="保单生效日期" :value="detail.cvalidate" required name="保单生效日期" />
<van-cell title="退保金额" :value="`${ctTrialDTO.surrenderMoney" | amtFormat} ` required name="退保金额" /> <van-cell title="退保金额" :value="ctTrialDTO.surrenderMoney | amtFormat1" required name="退保金额" />
<!-- <van-cell title="万能险退保手续费比例" :value="ctTrialDTO.surrenderRate" required v-if="riskType" name="万能险退保手续费比例" /> --> <!-- <van-cell title="万能险退保手续费比例" :value="ctTrialDTO.surrenderRate" required v-if="riskType" name="万能险退保手续费比例" /> -->
</van-cell-group> </van-cell-group>
<!-- 账号信息 --> <!-- 账号信息 -->
@@ -215,7 +215,7 @@ export default {
}, },
filters: { filters: {
idToText: filters.idToText, idToText: filters.idToText,
amtFormat: filters.amtFormat amtFormat: filters.amtFormat1
}, },
methods: { methods: {
//获取试算信息 //获取试算信息