dengjunjie
6 天以前 1c8f0035e164e9780d8c35a32fc1524d67ff9d9d
н¨Îļþ¼Ð/PDA/pages/stash/outboundorderDetail.vue
@@ -49,20 +49,21 @@
         this.orderNo = res.orderNo;
         this.allReceivingOrders = res.detail;
         this.page = this.page + "orderNo=" + this.orderNo + "&warehouseId=" + this.warehouseId + "&locationCode=";
         this.getData();
         // this.getData();
      },
      onReachBottom() {
         this.pageNo += 1;
         this.getData();
      },
      onShow() {
         this.outTask = uni.getStorageSync('outTask');
         if (this.outTask) {
            uni.removeStorageSync('outTask');
         // this.outTask = uni.getStorageSync('outTask');
         // if (this.outTask) {
            // uni.removeStorageSync('outTask');
            this.pageNo = 1;
            this.allReceivingOrders = [];
            // ä»Žå…¶ä»–页面返回时刷新
            this.getData();
         }
         // }
      },
      onPageScroll(e) {
         this.scrollTop = e.scrollTop;
@@ -150,24 +151,24 @@
                     //this.allReceivingOrders = [];
                     this.loadVisible = true;
                     if (this.allReceivingOrders.length < 1) {
                        uni.showModal({
                           title: '提示',
                           content: '出库已完成,是否返回首页?',
                           success: (res) => {
                              if (res.confirm) {
                                 uni.getStorageSync('isLoaded',true)
                                 // ç”¨æˆ·ç‚¹å‡»ç¡®å®š
                     //    uni.showModal({
                     //       title: '提示',
                     //       content: '出库已完成,是否返回首页?',
                     //       success: (res) => {
                     //          if (res.confirm) {
                                 // uni.getStorageSync('isout',true)
                     //             // ç”¨æˆ·ç‚¹å‡»ç¡®å®š
                                 setTimeout(() => {
                                    uni.navigateBack({
                                       delta: 1
                                    });
                                 }, 500);
                              } else {
                                 // ç”¨æˆ·ç‚¹å‡»å–消,可以停留在当前页面
                                 // æˆ–者执行其他操作
                              }
                           }
                        });
                                 }, 300);
                     //          } else {
                     //             // ç”¨æˆ·ç‚¹å‡»å–消,可以停留在当前页面
                     //             // æˆ–者执行其他操作
                     //          }
                     //       }
                     //    });
                     }
                  }
               }