|
|
@ -73,6 +73,9 @@ export default { |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
searchVal:{ |
|
|
|
baseId: this.$store.state.plantBaseInfoId, |
|
|
|
userId: this.$store.getters['userInfo'].id, |
|
|
|
enterpriseId: this.$store.getters['userInfo'].companyId, |
|
|
|
pageNo:1, |
|
|
|
pageSize:6, |
|
|
|
search:"", |
|
|
@ -93,11 +96,12 @@ export default { |
|
|
|
this.searchVal.pageNo=1 |
|
|
|
}, |
|
|
|
async search(){ |
|
|
|
var res=await request("/api/plantFarming/listAgrMaterials",{ |
|
|
|
params: this.searchVal |
|
|
|
var res=await request("/api/OutInManageApi/queryCollectingList",{ |
|
|
|
method:"post", |
|
|
|
body: this.searchVal |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.list=this.list.concat(res.data.list) |
|
|
|
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"}) |
|
|
|