From d3e9d00e6b73a2f7d782e16975239f6e166ccdc9 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 15 四月 2024 10:39:47 +0800
Subject: [PATCH] #

---
 pages/phyz/stationManage/stationDetl.vue |    2 ++
 pages/phyz/checkLocDetl/locDetl.vue      |   29 +++++++++++++++++++++++++++--
 pages/phyz/checkLocDetl/checkLocDetl.vue |   26 +++++++++++++++++++++++++-
 3 files changed, 54 insertions(+), 3 deletions(-)

diff --git a/pages/phyz/checkLocDetl/checkLocDetl.vue b/pages/phyz/checkLocDetl/checkLocDetl.vue
index bd56f44..cb1c3e3 100644
--- a/pages/phyz/checkLocDetl/checkLocDetl.vue
+++ b/pages/phyz/checkLocDetl/checkLocDetl.vue
@@ -65,7 +65,6 @@
 				bay1: '',
 				lev1: '',
 				dataList: [],
-				
 			}
 		},
 		onLoad() {
@@ -140,6 +139,31 @@
 			},
 			goToLocDetl() {
 				this.$refs.check.open()
+			},
+			checkClose() {
+				this.$refs.check.close()
+			},
+			checkConfirm() {
+				let _this = this
+				let param = {
+					barcode : _this.barcode,
+					locNo : _this.locNo
+				}
+				uni.navigateTo({
+					url: "./locDetl",
+					success: function(res) {
+						// 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�   鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
+						res.eventChannel.emit('item', {
+							item: param
+						})
+					},
+					events: {
+						// 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�  鍙﹀涓�涓〉闈紶杩囨潵鐨�
+						acceptDataFromOpenedPage: function(data) {
+							_this.searchValueFocus = true
+						}
+					},
+				});
 			}
 			
 		}
diff --git a/pages/phyz/checkLocDetl/locDetl.vue b/pages/phyz/checkLocDetl/locDetl.vue
index 8183fd0..d2c4a8a 100644
--- a/pages/phyz/checkLocDetl/locDetl.vue
+++ b/pages/phyz/checkLocDetl/locDetl.vue
@@ -8,11 +8,36 @@
 	export default {
 		data() {
 			return {
-				
+				baseUrl: '',
+				token: '',
 			}
 		},
+		onShow() {
+			let _this = this
+			this.baseUrl = uni.getStorageSync('baseUrl');
+			this.token = uni.getStorageSync('token');
+			// const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
+			const eventChannel = this.getOpenerEventChannel();
+			// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
+			eventChannel.on('item', function(data) {
+				console.log(data);
+				_this.getLocDetl(data.item.locNo,data.item.barcode)
+			})
+		},
 		methods: {
-			
+			getLocDetl(locNo,barcode) {
+				let _this = this 
+				uni.request({
+					url: `${_this.baseUrl}/agvMobile/check/detl/v1`,
+					header: {'token': uni.getStorageSync('token')},
+					data: { locNo: locNo,barcode: barcode },
+					method: 'GET',
+					success(res) {
+						res = res.data
+						console.log(res);
+					}
+				})
+			}
 		}
 	}
 </script>
diff --git a/pages/phyz/stationManage/stationDetl.vue b/pages/phyz/stationManage/stationDetl.vue
index ec31cef..82c3684 100644
--- a/pages/phyz/stationManage/stationDetl.vue
+++ b/pages/phyz/stationManage/stationDetl.vue
@@ -152,6 +152,8 @@
 	export default {
 		data() {
 			return {
+				baseUrl: '',
+				token: '',
 				station: null,
 				reload: {
 					loading: false,

--
Gitblit v1.9.1