理赔审批列表页面,切换tab至审批记录,切换至未审批, 点击全选,无法反向全部取消

This commit is contained in:
liyuetong
2021-08-02 13:13:06 +08:00
parent c4c2250e56
commit 20a3cb4e0d

View File

@@ -86,7 +86,7 @@
<div class="bottom-btn bg-white pt10 pb10 flex justify-content-s" style="border-top: 1px solid #dadada;" v-if="active == 'notApproved'">
<div>
<van-button class="ml10 mr10" type="danger" :plain='total != claimApprovalIds.length' round size="small" @click="checkAll">全选</van-button>
<!-- <van-button class="ml10 mr10" type="danger" round size="small" @click="collapseAll">展开</van-button> -->
<van-button class="ml10 mr10" type="danger" round size="small" @click="collapseAll">展开</van-button>
<span class="fs12">合计{{totalMoney}}</span>
</div>
<div>
@@ -160,6 +160,7 @@ export default {
},
//右上角,全部展开、全部收起
collapseAll(){
this.isOpen = this.isOpen == '0' ? (this.isOpen = '1') : (this.isOpen = '0')
let that = this
if(that.isOpen == '0'){
that.activeNames = []
@@ -201,6 +202,9 @@ export default {
that.$forceUpdate()
if(that.claimApprovalIds.length){
that.getTotalMoneyFunc()
}else{
//重置金额
that.totalMoney = 0
}
//审批弹框点击取消之后操作checkbox或全选时统计通过、拒绝按钮数量
// 按钮状态 0通过 1拒绝
@@ -303,6 +307,7 @@ export default {
//初始化列表
async getList(plainStatus) {
let that = this
that.total = 0
let status
that.claimApprovalIds = []
//审批记录切换按钮时1已通过0未通过按钮状态