yanjinhui
9 天以前 60a50d7a976f33a172421546fd891f33a21043e5
н¨Îļþ¼Ð/PDA/pages/stash/inboundorderDetail.vue
@@ -33,6 +33,7 @@
         return {
            page: "/pages/stash/raworderboxing?",
            loadVisible: false,
            isIn:false,
            searchValue: "",
            status: "more",
            allReceivingOrders: [],
@@ -48,6 +49,15 @@
         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;
@@ -97,6 +107,26 @@
                        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:1
                                       });
                                    }, 500);
                                 } else {
                                    // ç”¨æˆ·ç‚¹å‡»å–消,可以停留在当前页面
                                    // æˆ–者执行其他操作
                                 }
                              }
                           });
                        }
                     }
                  }
               })