dengjunjie
2025-10-26 7bfa3796ce60a29c4fe2244a7b7a553149773483
н¨Îļþ¼Ð/PDA/pages/stash/CheckoutorderDetail.vue
@@ -40,6 +40,7 @@
            orderNo: "",
            pageNo: 1,
            scrollTop: 0,
            checkTask: false,
            warehouseId: ""
         }
      },
@@ -53,6 +54,15 @@
      onReachBottom() {
         this.pageNo += 1;
         this.getData();
      },
      onShow() {
         this.checkTask = uni.getStorageSync('checkTask');
         if (this.checkTask) {
            uni.removeStorageSync('checkTask');
            this.pageNo = 1;
            // ä»Žå…¶ä»–页面返回时刷新
            this.getData();
         }
      },
      onPageScroll(e) {
         this.scrollTop = e.scrollTop;
@@ -100,6 +110,25 @@
                        this.status = 'noMore';
                        //this.allReceivingOrders = [];
                        this.loadVisible = true;
                     if (this.allReceivingOrders.length < 1) {
                        uni.showModal({
                           title: '提示',
                           content: '盘点已完成,是否返回首页?',
                           success: (res) => {
                              if (res.confirm) {
                                 // ç”¨æˆ·ç‚¹å‡»ç¡®å®š
                                 setTimeout(() => {
                                    uni.navigateBack({
                                       delta: 2
                                    });
                                 }, 500);
                              } else {
                                 // ç”¨æˆ·ç‚¹å‡»å–消,可以停留在当前页面
                                 // æˆ–者执行其他操作
                              }
                           }
                        });
                     }
                     }
                  }
               })