diff --git a/pages/massif/collectList.vue b/pages/massif/collectList.vue index 453bb25..b9eb2bd 100644 --- a/pages/massif/collectList.vue +++ b/pages/massif/collectList.vue @@ -54,7 +54,7 @@ - + {{v.goodsType}} {{v.substanceName}} @@ -76,7 +76,7 @@ export default { baseId: this.$store.state.plantBaseInfoId, pageNo:1, flagGroupBy:'y', - pageSize:6, + pageSize:7, search:"", }, list:[], @@ -95,21 +95,23 @@ export default { this.searchVal.pageNo=1 }, async search(){ - var res=await request("/api/Inventory/queryCollectingList",{ - method:"post", - body: this.searchVal - }) - if(res.statu){ - this.list=this.list.concat(res.data.records) - this.total=res.data.total - this.searchVal.pageNo++ - if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"}) - }else{ - uni.showModal({ - title:"提示", - content:res.msg||"获取领用农资失败!", - showCancel:false, + if(this.total==0 || this.list.length