|
@@ -75,6 +75,8 @@
|
|
|
totalQuantity: 0,
|
|
|
details: []
|
|
|
},
|
|
|
+ page:1,
|
|
|
+ isOver:false,
|
|
|
goodsList:[]
|
|
|
}
|
|
|
},
|
|
@@ -84,13 +86,20 @@
|
|
|
this.checkDto.warehouseName = option.warehouseName;
|
|
|
this.getGoodList();
|
|
|
},
|
|
|
+ onReachBottom() {
|
|
|
+ if(this.isOver) return
|
|
|
+ this.getGoodList();
|
|
|
+ },
|
|
|
methods:{
|
|
|
getGoodList(){
|
|
|
- this.$api.get('/wms/inventory/boardList/item/?warehouseId='+this.checkDto.warehouseId).then(res=>{
|
|
|
+ this.$api.get('/wms/inventory/boardList/item/?warehouseId='+this.checkDto.warehouseId+'&page='+this.page+'&limit=-1').then(res=>{
|
|
|
if(res.data.code===0){
|
|
|
- this.checkDto.details = res.data.data.list;
|
|
|
- this.checkDto.details.forEach(d=>d.checkQuantity=+d.quantity);
|
|
|
- this.computeNum();
|
|
|
+ // if(this.checkDto.details.length<res.data.data.total){
|
|
|
+ // this.page++;
|
|
|
+ this.checkDto.details = [...this.checkDto.details,...res.data.data.list];
|
|
|
+ this.checkDto.details.forEach(d=>d.checkQuantity=+d.quantity);
|
|
|
+ this.computeNum();
|
|
|
+ // }else this.isOver = true
|
|
|
}else this.$showToast(res.data.msg)
|
|
|
})
|
|
|
},
|