| | |
| | | return { |
| | | page: "/pages/stash/raworderboxing?", |
| | | loadVisible: false, |
| | | isIn:false, |
| | | searchValue: "", |
| | | status: "more", |
| | | allReceivingOrders: [], |
| | |
| | | this.allReceivingOrders=res.detail; |
| | | this.page = this.page + "orderNo=" + this.orderNo +"&warehouseId=" + this.warehouseId + "&batchNo="; |
| | | this.getData(); |
| | | }, |
| | | onShow() { |
| | | this.isIn = uni.getStorageSync('isIn'); |
| | | if (this.isIn) { |
| | | uni.removeStorageSync('isIn'); |
| | | this.pageNo = 1; |
| | | // ä»å
¶ä»é¡µé¢è¿åæ¶å·æ° |
| | | this.getData(); |
| | | } |
| | | }, |
| | | onReachBottom() { |
| | | this.pageNo += 1; |
| | |
| | | this.status = 'noMore'; |
| | | //this.allReceivingOrders = []; |
| | | this.loadVisible = true; |
| | | if (this.allReceivingOrders.length < 1) { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'å
¥åºå·²å®æï¼æ¯å¦è¿åé¦é¡µï¼', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.setStorageSync('isLoaded', true); |
| | | // ç¨æ·ç¹å»ç¡®å® |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | }, 500); |
| | | } else { |
| | | // ç¨æ·ç¹å»åæ¶ï¼å¯ä»¥åçå¨å½åé¡µé¢ |
| | | // æè
æ§è¡å
¶ä»æä½ |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | }) |