From f761af1e575b5beb808d81933f0fe18024379fa3 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Fri, 23 Feb 2024 17:15:28 +0800 Subject: [PATCH] =?UTF-8?q?task#11265,=E5=88=86=E9=A1=B5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseList/caseList.vue | 83 +++++++++++++++++++++++++-------- 1 file changed, 63 insertions(+), 20 deletions(-) diff --git a/src/views/caseList/caseList.vue b/src/views/caseList/caseList.vue index 5377e39d..44ffcca8 100644 --- a/src/views/caseList/caseList.vue +++ b/src/views/caseList/caseList.vue @@ -19,19 +19,26 @@ -
-
-
-
审核批次:{{item.batchCode}}
-
查看
+ +
+
+
+
审核批次:{{item.batchCode}}
+
查看
+
+
报销金额:{{item.totalAmount}}元/{{item.auditSuccessAmount}}元
+
案件数量:{{item.orderCount}}/{{item.auditSuccessCount}}
+
提交人员:{{ item.createUser }}
+
提交时间:{{ item.createTime }}
-
报销金额:{{item.totalAmount}}元/{{item.auditSuccessAmount}}元
-
案件数量:{{item.orderCount}}/{{item.auditSuccessCount}}
-
提交人员:{{ item.createUser }}
-
提交时间:{{ item.createTime }}
-
+
@@ -48,20 +55,19 @@ export default { mixins: [myMixins], data(){ return{ - tabArr: [{name: '待审核', status: 1,num:0}, {name: '已审核', status: 2,num:0},], + tabArr: [ {name: '待审核', status: 1,num:0},{name: '已审核', status: 2,num:0},], activeIndex: 0, pageList:[], pageNum:1, pageSize:10, + total:'', isLoading:"", + loading: false, + finished: false, noClick:true } }, async mounted() { - /*let token = localStorage.getItem('token'); - this.$dialog.alert({ - message: token - });*/ await this.getCount(); await this.getList() }, @@ -71,14 +77,31 @@ export default { }, }, methods:{ + async onLoad(){ + console.log('00000000000000000000') + this.pageNum++; + await this.getList() + // 加载状态结束 + this.loading = false; + + // 数据全部加载完成 + if (this.pageList.length >= this.total) { + this.finished = true; + } + }, async changeTab(index) { this.activeIndex = index this.pageNum = 1 this.pageList = []; + this.total=0 + this.loading=false + this.finished=false await this.getList() + // await this.onLoad() }, onRefresh() { - this.getList() + this.pageNum=1 + // this.getList() setTimeout(() => { this.$toast('刷新成功'); this.isLoading = false; @@ -90,7 +113,19 @@ export default { pageSize:this.pageSize, type: this.activeIndex+1 }) - this.pageList=res.data + this.total=res.total + if(this.pageNum == 1){// 第一页直接赋值 + this.pageList=res.data + }else{// 第二页数据拼接 + console.log("第二页数据拼接") + let preList = this.pageList; + console.log("preList",preList) + let arr = res.data; + console.log("arr",arr) + this.pageList = preList.concat(arr) + console.log("this.pageList",this.pageList) + } + }, async getCount(){ let res=await reimburseBatchCount() @@ -121,6 +156,7 @@ export default { .wrap{ @include wh(100%,100%); box-sizing: border-box; + overflow-y: auto; } .navBar{ margin-bottom: 46px; @@ -133,17 +169,24 @@ export default { width: 100%; } } +::v-deep .van-list__finished-text{ + background-color: #F4F5F7 !important; + padding-bottom: 10px; +} /*::v-deep .van-nav-bar__content{ background-color: #354683 !important; }*/ -::v-deep .van-pull-refresh{ - height: calc(100% - 86px) ; -} +//::v-deep .van-pull-refresh{ +// height: calc(100% - 86px) ; +//} .tab_wrap { @include fontWeightSize(500, 14px); @include flexColAround(); padding: 2px 0 10px 0; background: #2C395F; + position: fixed; + z-index: 11; + width: 100%; div { padding-top: 8px; color: #FFFFFF;