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/orderCheck.vue |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 56 insertions(+), 4 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>

--
Gitblit v1.9.1