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

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 title="联系电话" :value="item.mobile" />
</van-cell-group> </van-cell-group>
</van-collapse-item> </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-collapse-item title="受益人信息" :name="i + 81">
<van-cell-group> <van-cell-group>

View File

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