From ea79f0278f9b17b6d17e054028d5e7175ec168dd Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 24 十月 2025 17:02:27 +0800
Subject: [PATCH] 优化PDA出库处理

---
 新建文件夹/PDA/pages/stash/outboundorderDetail.vue |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/outboundorderDetail.vue" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/outboundorderDetail.vue"
index 650b2f6..5c29554 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/outboundorderDetail.vue"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/outboundorderDetail.vue"
@@ -40,6 +40,7 @@
 				orderNo: "",
 				pageNo: 1,
 				scrollTop: 0,
+				outTask:false,
 				warehouseId: ""
 			}
 		},
@@ -54,6 +55,14 @@
 			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;
 		},
@@ -65,6 +74,45 @@
 			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: {
@@ -100,6 +148,12 @@
 								this.status = 'noMore';
 								//this.allReceivingOrders = [];
 								this.loadVisible = true;
+								uni.setStorageSync('isout',true);
+								setTimeout(() => {
+								    uni.navigateBack({
+								        delta: 1
+								    });
+								}, 600);
 							}
 						}
 					})

--
Gitblit v1.9.3