保单列表过滤核保状态的单子

This commit is contained in:
shishengjie
2019-10-11 18:15:11 +08:00
parent c5f689ec7a
commit 002f415c70
2 changed files with 5 additions and 11 deletions

View File

@@ -35,7 +35,7 @@
<van-cell title="联系电话" :value="item.mobile" />
</van-cell-group>
</van-collapse-item>
<div v-for="(itm, i) in item.bnfDTOs" :key="itm.name" class="pb10">
<div v-for="(itm, i) in item.bnfDTOs" :key="i" class="pb10">
<!-- 受益人信息 -->
<van-collapse-item title="受益人信息" :name="i + 81">
<van-cell-group>

View File

@@ -109,19 +109,13 @@ export default {
methods: {
// 获取保单列表
getpolicyListAgent() {
let that = this
let data = {}
getpolicyListAgent(data).then(res => {
// console.log(res)
//orderStatus 1 承保 0 核保 4终止
if (res.result == '0') {
res.policyListDTOList.map(item => {
if (item.orderStatus == '1') {
item.orderStatus = '有效'
} else {
item.orderStatus = '无效'
}
})
that.policyListDTOList = res.policyListDTOList
//过滤掉 核保状态的数据 只展示承保和终止的保单
this.policyListDTOList = res.policyListDTOList.filter(item => item.orderStatus != '0')
console.log(this.policyListDTOList)
} else {
this.isShow = true
}