From ba5cdfe7b350e3de26a402686556a661d8fa5da3 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 05 四月 2024 10:07:05 +0800
Subject: [PATCH] #

---
 pages/phyz/stationManage/stationDetl.vue   |   40 +++++++++++++++++++-
 pages/phyz/stationManage/stationManage.vue |   24 +++++++++++-
 2 files changed, 60 insertions(+), 4 deletions(-)

diff --git a/pages/phyz/stationManage/stationDetl.vue b/pages/phyz/stationManage/stationDetl.vue
index 8183fd0..7cfd868 100644
--- a/pages/phyz/stationManage/stationDetl.vue
+++ b/pages/phyz/stationManage/stationDetl.vue
@@ -1,6 +1,13 @@
 <template>
 	<view>
-		
+		<!-- 绔欑偣璇︽儏 -->
+		<view class="station" :class="station.style" >
+			<view class="station-title">{{station.devNo}}</view>
+			<view>绔欑偣绫诲瀷锛歿{station.locType1$}}鍖�</view>
+			<view>璐ф灦鍓嶄袱浣嶏細{{station.locType2$}}</view>
+			<view>绔欑偣鐘舵�侊細{{station.locSts$}}</view>
+			<view>璐ф灦鐮侊細{{station.barcode}}</view>
+		</view>
 	</view>
 </template>
 
@@ -8,8 +15,21 @@
 	export default {
 		data() {
 			return {
+				station: null,
 				
 			}
+		},
+		onLoad() {
+			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.station = data.item
+			})
 		},
 		methods: {
 			
@@ -18,5 +38,21 @@
 </script>
 
 <style>
-
+	.station-title {
+		font-size: 32px;
+		font-weight: bold;
+		padding: 24rpx 0;
+	}
+	.station {
+		font-size: 18px;
+		padding: 24rpx;
+	}
+	.station-wrk {
+		background-color: #ff7356;
+		color: #fff;
+	}
+	.station-nowrk {
+		background-color: #3eb689;
+		color: #fff;
+	}
 </style>
diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue
index 92ba2fd..77b6f92 100644
--- a/pages/phyz/stationManage/stationManage.vue
+++ b/pages/phyz/stationManage/stationManage.vue
@@ -8,7 +8,7 @@
 		<view class="list" :class="item.style" v-if="stations" v-for="item in stations">
 			<view class="list-left">
 				<view>宸ヤ綅缂栧彿锛歿{item.devNo}}</view>
-				<view>宸ヤ綅鐘舵�侊細{{item.locSts$}}</view>
+				<view>绔欑偣鐘舵�侊細{{item.locSts$}}</view>
 				<view>鏉″舰鐮侊細{{item.barcode}}</view>
 				<view>绔欑偣绫诲瀷锛歿{item.locType1$}}</view>
 				<!-- <view class="card-id">{{i + 1}}</view> -->
@@ -20,7 +20,7 @@
 		<view class="list" style="background-color: #3eb689;color: #fff;" v-if="station">
 			<view class="list-left">
 				<view>宸ヤ綅缂栧彿锛歿{station.devNo}}</view>
-				<view>宸ヤ綅鐘舵�侊細{{station.locSts$}}</view>
+				<view>绔欑偣鐘舵�侊細{{station.locSts$}}</view>
 				<view>鏉″舰鐮侊細{{station.barcode}}</view>
 				<!-- <view class="card-id">{{i + 1}}</view> -->
 			</view>
@@ -370,6 +370,26 @@
 			reviseConfirm() {
 				this.startPakin('empty')
 				this.$refs.revise.close()
+			},
+			// 鍓嶅線绔欑偣鏄庣粏椤甸潰
+			getOrderDetl(item) {
+				let _this = this
+				uni.navigateTo({
+					url: "./stationDetl",
+					success: function(res) {
+						// 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�   鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
+						res.eventChannel.emit('item', {
+							item: item
+						})
+					},
+					events: {
+						// 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�  鍙﹀涓�涓〉闈紶杩囨潵鐨�
+						acceptDataFromOpenedPage: function(data) {
+							// _this.matnr = data.data
+							_this.input(_this.matnr)
+						},
+					},
+				});
 			}
 		}
 	}

--
Gitblit v1.9.1