From fe65a15581b007a1f86400da8c62f541ef81ccd0 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 26 三月 2024 16:36:19 +0800
Subject: [PATCH] #

---
 pages/phyz/stationManage/stationManage.vue |   56 +++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 49 insertions(+), 7 deletions(-)

diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue
index dc5cc8d..987ffc5 100644
--- a/pages/phyz/stationManage/stationManage.vue
+++ b/pages/phyz/stationManage/stationManage.vue
@@ -5,7 +5,7 @@
 				maxlength="500" ancel="cancel" @clear="clear" placeholder="杈撳叆 / 鎵弿 璁㈠崟鍙�">
 			</uni-search-bar>
 		</view>
-		<view class="list" v-if="station">
+		<view class="list" style="background-color: #3eb689;color: #fff;" v-if="station">
 			<view class="list-left">
 				<view>绔欑偣缂栧彿锛歿{station.stationCode}}</view>
 				<view>宸ヤ綅缂栧彿锛歿{station.devNo}}</view>
@@ -14,10 +14,10 @@
 				<!-- <view class="card-id">{{i + 1}}</view> -->
 			</view>
 			<view class="list-right" @click="getOrderDetl(item)">
-				<uni-icons type="right" color="#c1c1c1"></uni-icons>
+				<uni-icons type="right" color="#fff"></uni-icons>
 			</view>
 		</view>
-		<view class="list" v-if="wrkMast">
+		<view class="list" style="background-color: #019fe8;color: #fff;" v-if="wrkMast">
 			<view class="list-left">
 				<view>宸ヤ綔鍙凤細{{wrkMast.wrkNo}}</view>
 				<view>宸ヤ綔鐘舵�侊細{{wrkMast.wrkSts$}}</view>
@@ -27,10 +27,22 @@
 				<view>鏂欑鐮侊細{{wrkMast.barcode}}</view>
 				<!-- <view class="card-id">{{i + 1}}</view> -->
 			</view>
-			<view class="list-right" @click="getOrderDetl(item)">
-				<uni-icons type="right" color="#c1c1c1"></uni-icons>
+			<!-- <view class="list-right" @click="getOrderDetl(item)">
+				<uni-icons type="right" color="#fff"></uni-icons>
+			</view> -->
+		</view>
+		
+		<view class="list" style="background-color: #fda800;color: #fff;" v-for="wrkMast in wrkDetls">
+			<view class="list-left">
+				<view>鐗╂枡鍙凤細{{wrkMast.matnr}}</view>
+				<view>鐗╂枡鍚嶇О锛歿{wrkMast.maktx}}</view>
+				<view>鎵瑰彿锛歿{wrkMast.batch}}</view>
+				<view>瑙勬牸锛歿{wrkMast.specs}}</view>
+				<view>鏁伴噺锛歿{wrkMast.anfme}}</view>
 			</view>
 		</view>
+		
+		<view style="height: 100rpx;"></view>
 	</view>
 </template>
 
@@ -43,7 +55,8 @@
 				searchValueFocus: true,
 				searchValue: '',
 				station: '',
-				wrkMast: ''
+				wrkMast: '',
+				wrkDetls: []
 				
 			}
 		},
@@ -56,7 +69,16 @@
 		},
 		methods: {
 			searchValueInput() {
-				this.getBasDevp()
+				if (this.searchValue == '') {
+					this.station = ''
+					this.wrkMast = ''
+					this.wrkDetls = []
+				} else {
+					this.getBasDevp()
+				}
+			},
+			clear() {
+				
 			},
 			// 鑾峰彇鏆傚瓨浣�
 			getBasDevp() {
@@ -98,10 +120,30 @@
 						if (res.code === 200) {
 							for (let item of res.data.records) {
 								_this.wrkMast = item
+								_this.getWrkDetl(item.wrkNo)
 							}
 						}
 					}
 				})
+			},
+			getWrkDetl(wrkNo) {
+				let _this = this
+				uni.request({
+					url: `${_this.baseUrl}/agv/wrkDetl/list/auth`,
+					header: {'token': uni.getStorageSync('token')},
+					data: {
+						curr: 1,
+						limit: 1000,
+						wrk_no: wrkNo
+					},
+					method: 'GET',
+					success(res) {
+						res = res.data
+						if (res.code === 200) {
+							_this.wrkDetls = res.data.records
+						}
+					}
+				})
 			}
 		}
 	}

--
Gitblit v1.9.1