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/checkLocDetl/locDetl.vue |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

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>

--
Gitblit v1.9.1