| | |
| | | orderNo: "", |
| | | pageNo: 1, |
| | | scrollTop: 0, |
| | | outTask:false, |
| | | warehouseId: "" |
| | | } |
| | | }, |
| | |
| | | this.pageNo += 1; |
| | | this.getData(); |
| | | }, |
| | | onShow() { |
| | | this.outTask = uni.getStorageSync('outTask'); |
| | | if (this.outTask) { |
| | | uni.removeStorageSync('outTask'); |
| | | // 浠庡叾浠栭〉闈㈣繑鍥炴椂鍒锋柊 |
| | | this.getData(); |
| | | } |
| | | }, |
| | | onPageScroll(e) { |
| | | this.scrollTop = e.scrollTop; |
| | | }, |
| | |
| | | groupClick() { |
| | | |
| | | }, |
| | | // getData() { |
| | | // var postData = { |
| | | // MainData: { |
| | | // warehouseId: this.warehouseId, |
| | | // locationCode: this.searchValue, |
| | | // orderNo: this.orderNo, |
| | | // pageNo: this.pageNo, |
| | | // isCheck:false, |
| | | // }, |
| | | // } |
| | | // if (this.pageNo == 1) this.allReceivingOrders = []; |
| | | // this.$u.post('/api/DeliveryOrder/GetCheckOutTasks',postData).then(( |
| | | // res) => { |
| | | // if (res.status) { |
| | | // if (res.data.length > 0) { |
| | | // if (this.searchValue == '') { |
| | | // this.allReceivingOrders = this.allReceivingOrders.concat(res.data); |
| | | // // this.allReceivingOrders = res.data; |
| | | // if (this.allReceivingOrders.length > 3) { |
| | | // this.loadVisible = true; |
| | | // } else { |
| | | // this.loadVisible = false; |
| | | // } |
| | | // } else { |
| | | // this.allReceivingOrders = res.data; |
| | | // if (this.allReceivingOrders.length > 3) { |
| | | // this.loadVisible = true; |
| | | // } else { |
| | | // this.loadVisible = false; |
| | | // } |
| | | // } |
| | | // } else { |
| | | // this.status = 'noMore'; |
| | | // //this.allReceivingOrders = []; |
| | | // this.loadVisible = true; |
| | | // } |
| | | // } |
| | | // }) |
| | | // } |
| | | getData() { |
| | | var postData = { |
| | | MainData: { |
| | |
| | | this.status = 'noMore'; |
| | | //this.allReceivingOrders = []; |
| | | this.loadVisible = true; |
| | | uni.setStorageSync('isout',true); |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, 600); |
| | | } |
| | | } |
| | | }) |