From 7c110a88a523bce6566f290cce8b57a9e69bb3cd Mon Sep 17 00:00:00 2001
From: liyuetong
Date: Fri, 23 Jul 2021 13:20:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2tab=EF=BC=8C=E9=80=9A?=
=?UTF-8?q?=E8=BF=87=EF=BC=8C=E6=9C=AA=E9=80=9A=E8=BF=87=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E9=9C=80=E8=A6=81=E9=87=8D=E7=BD=AE=E5=8F=B3=E4=B8=8A=E8=A7=92?=
=?UTF-8?q?=E7=9A=84=E6=8C=89=E9=92=AE=E7=8A=B6=E6=80=81--=E5=85=A8?=
=?UTF-8?q?=E9=83=A8=E5=B1=95=E5=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ebiz/claims/ClaimApprovalList.vue | 156 +++++++-------------
1 file changed, 54 insertions(+), 102 deletions(-)
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() // 初始化显示按钮
}
}
}