This commit is contained in:
aihe 2024-06-21 13:51:48 +08:00
parent 6829645900
commit b46bce64f9
2 changed files with 8 additions and 4 deletions

View File

@ -114,6 +114,7 @@
return return
} }
if (reload) { if (reload) {
this.$emit('onListReload', this.searchParam)
this.page.pageNum = 1 this.page.pageNum = 1
this.showLoading() this.showLoading()
} }

View File

@ -50,7 +50,7 @@
<template v-slot:body> <template v-slot:body>
<view class="pos-abt-all"> <view class="pos-abt-all">
<tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun" <tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
ref="listRef" ref="listRef" @onListReload="handleListReload"
> >
<view class="pgb-cont"> <view class="pgb-cont">
<!-- 列表数据 --> <!-- 列表数据 -->
@ -168,10 +168,13 @@
return res return res
}, },
initData(){ initData(){
this.getStaticData()
}, },
async getStaticData(){ handleListReload(params){
let cpParam = this.transSearchPm(this.searchParam) // list重置到第一页,需重新查询统计数据
this.getStaticData(params)
},
async getStaticData(params){
let cpParam = this.transSearchPm(params)
const staRes = await apiService.getWaybillStatMap(cpParam) const staRes = await apiService.getWaybillStatMap(cpParam)
let { hasDoNum, waitDoNum, statNumList } = staRes.data let { hasDoNum, waitDoNum, statNumList } = staRes.data
this.staticInfo.commStat = { hasDoNum, waitDoNum } this.staticInfo.commStat = { hasDoNum, waitDoNum }