From 1919058aab930e928de36ac9a6745b729d8dd01e Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 11 四月 2024 23:01:57 +0800
Subject: [PATCH] #

---
 pages/phyz/orderOut/orderList.vue  |   19 ++++++++-
 pages/phyz/orderOut/orderCheck.vue |   60 ++++++++++++++++++++++++++++--
 2 files changed, 73 insertions(+), 6 deletions(-)

diff --git a/pages/phyz/orderOut/orderCheck.vue b/pages/phyz/orderOut/orderCheck.vue
index 8183fd0..7e57867 100644
--- a/pages/phyz/orderOut/orderCheck.vue
+++ b/pages/phyz/orderOut/orderCheck.vue
@@ -1,6 +1,26 @@
 <template>
 	<view>
-		
+		<view class="list">
+			<view class="list-left">
+				<view>缂栧彿锛歿{data.matnr}}</view>
+				<view>鍚嶇О锛歿{data.maktx}}</view>
+				<view>瑙勬牸锛歿{data.specs}}</view>
+				<view>鎵瑰彿锛歿{data.batch}}</view>
+				<view class="list-anfme">鏁伴噺锛歿{data.anfme}}</view>
+				<view class="list-qty-1" v-if="data.anfme > data.qty">浣滀笟鏁伴噺锛歿{data.qty}}</view>
+				<view class="list-qty-2" v-if="data.anfme <= data.qty">浣滀笟鏁伴噺锛歿{data.qty}}</view>
+				<view>璐т綅锛歿{data.locNo}}</view>
+				<view style="display: flex;">鍑哄簱绔欙細
+					<view class="dropdown" @click="toggleDropdown(data)">
+						<input type="text" style="width: 270rpx;" v-model="data.agvStaNo" placeholder="璇烽�夋嫨鍑哄簱绔�">
+						<uni-icons :type="data.isOpen ? 'top' : 'bottom'" color="#c1c1c1" style="margin-left: 10rpx;"></uni-icons>
+						<scroll-view scroll-y="ture" class="dropdown-content" v-if="data.isOpen">
+							<view class="dropdown-item" v-for="option in data.agvStaNos" @click="selected(option,data)">{{option}}</view>
+						</scroll-view>
+					</view>
+				</view>
+			</view>
+		</view>
 	</view>
 </template>
 
@@ -8,15 +28,47 @@
 	export default {
 		data() {
 			return {
-				
+				baseUrl: '',
+				token: '',
+				data: {},
+				option: ''
 			}
 		},
+		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) {
+				for (let item of data.mats) {
+					_this.ids.push(item.id)
+				}
+				_this.getPakoutList(_this.ids)
+			})
+		},
 		methods: {
-			
+			// 璁㈠崟鏄庣粏
+			getPakoutList(ids) {
+				let _this = this
+				uni.request({
+					url: `${_this.baseUrl}/out/pakout/preview/auth`,
+					header: {'token': uni.getStorageSync('token')},
+					data: ids,
+					method: 'POST',
+					success(res) {
+						res = res.data
+						console.log(res);
+						if (res.code === 200) {
+						} 
+					}
+				})
+			},
 		}
 	}
 </script>
 
 <style>
-
+	@import url('../../../static/css/common/order.css');
 </style>
diff --git a/pages/phyz/orderOut/orderList.vue b/pages/phyz/orderOut/orderList.vue
index af909f2..1fe7fad 100644
--- a/pages/phyz/orderOut/orderList.vue
+++ b/pages/phyz/orderOut/orderList.vue
@@ -110,8 +110,23 @@
 					}
 				})
 			},
-			pakoutPrive() {
-				this.$refs.pakoutPrive.open()
+			pakoutPrive(item) {
+				let _this = this
+				uni.navigateTo({
+					url: "./orderCheck",
+					success: function(res) {
+						// 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�   鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
+						res.eventChannel.emit('item1', {
+							item: item,
+						})
+					},
+					events: {
+						// 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�  鍙﹀涓�涓〉闈紶杩囨潵鐨�
+						acceptDataFromOpenedPage: function(data) {
+							// _this.matnr = data.data
+						},
+					},
+				});
 			},
 			pakout(item) {
 				let _this = this

--
Gitblit v1.9.1