diff --git a/src/views/ebiz/claims/ClaimApprovalList.vue b/src/views/ebiz/claims/ClaimApprovalList.vue
index add268b5b..fd30af73e 100644
--- a/src/views/ebiz/claims/ClaimApprovalList.vue
+++ b/src/views/ebiz/claims/ClaimApprovalList.vue
@@ -37,45 +37,42 @@
>{{ item.approvalDate }}
-
-
-
-
-
-
-
- {{index01+1}}.{{item01.insuredName}}
- {{item01.caseEndDate}}
- {{item01.getMoney}}元
-
-
-
赔案号:
-
{{ item01.clmNo }}
-
-
-
-
领款人:
-
{{ item02.payeeName }}
-
-
-
领款金额(万元):
-
{{ item02.payMoney }}
-
-
-
先前支付失败次数:
-
{{ item02.getCount }}
-
-
-
上一次支付失败原因:
-
{{ item02.lastFailReason }}
-
-
-
上一次支付失败日期:
-
{{ item02.lastFailDate }}
-
-
-
-
+
+
+
+
+
+ {{index01+1}}.{{item01.insuredName}}
+ {{item01.caseEndDate}}
+ {{item01.getMoney}}元
+
+
+
赔案号:
+
{{ item01.clmNo }}
+
+
+
+
领款人:
+
{{ item02.payeeName }}
+
+
+
领款金额(万元):
+
{{ item02.payMoney }}
+
+
+
先前支付失败次数:
+
{{ item02.getCount }}
+
+
+
上一次支付失败原因:
+
{{ item02.lastFailReason }}
+
+
+
上一次支付失败日期:
+
{{ item02.lastFailDate }}
+
+
+
@@ -140,7 +137,7 @@ export default {
window.appCallBack = this.appCallBack
},
methods: {
- checkBtn() {
+ checkBtn() {
let title = this.isOpen == '1' ? '全部收起' : '全部展开'
this.$jump({
flag: 'webview_right_button',
@@ -248,64 +245,6 @@ export default {
that.$forceUpdate()
console.log(this.claimApprovalIds,'claimApprovalIds')
},
- checkBoxClick(){
- // ev.stopPropagation();
- let that = this
- this.claimApprovalIds= []
- //非全选状态时,更新claimApprovalIds数组
- this.claimApprovalList.forEach(function(item) {
- that.claimApprovalIds = that.claimApprovalIds.concat(item.checkboxResult)
- })
- that.$forceUpdate()
- if(that.claimApprovalIds.length){
- that.getTotalMoneyFunc()
- }
- //审批弹框点击取消之后,操作checkbox或全选时,统计通过、拒绝按钮数量
- // 按钮状态 0通过 1拒绝
- if(this.btnStatus == 0){
- this.refuseNum = 0
- this.passNum = this.claimApprovalIds.length
- }else if(this.btnStatus == 1){
- this.refuseNum = this.claimApprovalIds.length
- this.passNum = 0
- }
- console.log(this.claimApprovalIds,'claimApprovalIds')
- },
- //全选
- checkAllFunc() {
- let that = this
- if(that.claimApprovalIds.length != that.total){
- this.claimApprovalIds= []
- this.claimApprovalList.forEach(function(item) {
- item.checkboxResult = []
- let arr = []
- item.claimApprovalSearchLst.forEach(function(item01) {
- arr.push(item01.id)
- that.claimApprovalIds.push(item01.id)
- })
- item.checkboxResult = arr
- })
- that.getTotalMoneyFunc()
- }else{ //取消全选
- this.claimApprovalIds= []
- this.claimApprovalList.forEach(function(item) {
- item.checkboxResult = []
- let arr = []
- item.checkboxResult = arr
- })
- that.totalMoney = 0
- }
- //审批弹框点击取消之后,操作checkbox或全选时,统计通过、拒绝按钮数量
- // 按钮状态 0通过 1拒绝
- if(this.btnStatus == 0){
- this.refuseNum = 0
- this.passNum = this.claimApprovalIds.length
- }else if(this.btnStatus == 1){
- this.refuseNum = this.claimApprovalIds.length
- this.passNum = 0
- }
- that.$forceUpdate()
- },
//通过按钮
passHandle(){
if(this.claimApprovalIds.length){
@@ -341,8 +280,11 @@ export default {
}).then(() => {
claimApproval({claimApprovalIds:this.claimApprovalIds,approvalResult:approvalResult}).then(res => {
if (res.result == '0') {
- that.getList()
- } else {
+ that.getList()
+ } else if(res.result == '2') { //当前数据正在审批中,请稍后再试--刷新数据
+ that.getList()
+ this.$toast(res.resultMessage)
+ }else{
this.$toast(res.resultMessage)
}
})
@@ -350,8 +292,13 @@ export default {
},
//审批记录--切换1已通过,0未通过按钮状态
approvalRecordSwitch(plainStatus){
- this.getList(plainStatus)
- this.plainStatus = plainStatus
+ let that = this
+ this.getList(plainStatus)
+ this.plainStatus = plainStatus
+ //切换tab时,需要重置右上角的按钮状态--全部展开
+ that.activeNames = []
+ that.isOpen = 0 //右上角按钮状态 0 全部收起 1 全部展开
+ that.checkBtn() // 初始化显示按钮
},
//初始化列表
async getList(plainStatus) {
@@ -415,6 +362,7 @@ export default {
})
},
tabChange(name) {
+ let that = this
this.currentPage = 1
this.active = name
this.claimApprovalList = []
@@ -425,6 +373,10 @@ export default {
}else{
this.getList()
}
+ //切换tab时,需要重置右上角的按钮状态--全部展开
+ that.activeNames = []
+ that.isOpen = 0 //右上角按钮状态 0 全部收起 1 全部展开
+ that.checkBtn() // 初始化显示按钮
}
}
}