From 6c7a81b96edfd4ef1aed1ebaecde24bcda3389c2 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 19 一月 2024 09:28:50 +0800
Subject: [PATCH] #

---
 pages/order/orderPakin2.vue |   42 +++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/pages/order/orderPakin2.vue b/pages/order/orderPakin2.vue
index f34ba9d..f0e819d 100644
--- a/pages/order/orderPakin2.vue
+++ b/pages/order/orderPakin2.vue
@@ -12,7 +12,7 @@
 			<view class="item">
 				<view class="code-decs">鐮佸灈浣�:</view>
 				<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="palletizingNo2" :focus="palletizingNo2Focus">
-				<view class="item-right">
+				<view class="item-right" @click="selectPst()">
 					<uni-icons type="right" color="#c1c1c1"></uni-icons>
 				</view>
 			</view>
@@ -136,6 +136,17 @@
 					@confirm="resetConfirm" @close="resetClose"></uni-popup-dialog>
 			</uni-popup>
 		</view>
+		<!-- 寮圭獥閫夋嫨 -->
+		<uni-popup ref="inputDialog" type="dialog">
+			<view class="pop">
+				<view class="pop-btn" @click="select('1')">
+					1鍙风爜鍨涗綅
+				</view>
+				<view class="pop-btn" @click="select('2')">
+					2鍙风爜鍨涗綅
+				</view>
+			</view>
+		</uni-popup>
 	</view>
 </template>
 
@@ -148,6 +159,7 @@
 				orderNo: '',
 				barcode: '',
 				palletizingNo: '',
+				palletizingNo2: '',
 				boxType: '',
 				createTime: '',
 				dataList: [{}],
@@ -164,6 +176,7 @@
 				content: '',
 				barcodeFocus: true,
 				palletizingNoFocus: false,
+				palletizingNo2Focus: false,
 				boxTypeFocus: false,
 				createTimeFocus: false,
 				matFocus: false,
@@ -194,6 +207,15 @@
 						}
 					}
 				})
+			},
+			// 閫夋嫨鐮佸灈浣�
+			selectPst() {
+				this.$refs.inputDialog.open()
+			},
+			select(e) {
+				this.palletizingNo2 = e
+				this.$refs.inputDialog.close()
+				console.log(this.palletizingNo);
 			},
 			// 娣诲姞鐗╂枡
 			addMat() {
@@ -606,5 +628,23 @@
 		display: flex;
 		align-items: center;
 	}
+	
+	.pop {
+		min-height: 200rpx;
+		width: 80vw;
+		background-color: #55aaff;
+		border-radius: 20rpx;
+		color: #eee;
+	}
+	.pop-btn {
+		height: 100rpx;
+		line-height: 100rpx;
+		width: 100%;
+		text-align: center;
+		border-bottom: 1px solid #ccc;
+	}
+	.pop-btn:last-child {
+		border: none;
+	}
 </style>
 

--
Gitblit v1.9.1