未审批无数据时,切换到审批记录后,钱数不对

This commit is contained in:
liyuetong
2021-08-13 17:09:20 +08:00
parent 514d447798
commit af40d32e6a

View File

@@ -313,6 +313,10 @@ export default {
that.total = 0
let status
that.claimApprovalIds = []
//重置数据
this.totalMoney = 0
this.passNum = 0
this.refuseNum = 0
//审批记录切换按钮时1已通过0未通过按钮状态
if(plainStatus){
status = plainStatus
@@ -347,9 +351,10 @@ export default {
})
item.checkboxResult = arr
})
this.passNum = this.claimApprovalIds.length
this.refuseNum = 0
if(that.active == 'notApproved'){
this.passNum = this.claimApprovalIds.length
this.refuseNum = 0
that.getTotalMoneyFunc()
}
that.$forceUpdate();