From d78a337df4af502f6e886dd4cb1533f2ec02843c Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 04 十月 2023 22:59:44 +0800
Subject: [PATCH] #

---
 pages/AGV/AGVPakinOn.vue |   36 ++++++++++++++++++++++++++++++++++--
 1 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/pages/AGV/AGVPakinOn.vue b/pages/AGV/AGVPakinOn.vue
index 753ae47..33c2652 100644
--- a/pages/AGV/AGVPakinOn.vue
+++ b/pages/AGV/AGVPakinOn.vue
@@ -2,6 +2,11 @@
 	<view>
 		<view class="code">
 			<view class="item">
+				<view class="code-decs">璁㈠崟鍙�:</view>
+				<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="orderNo" :focus="orderNoFocus"
+					@input="orderNoInput()">
+			</view>
+			<view class="item">
 				<view class="code-decs">鎵樼洏鐮�:</view>
 				<input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="barcode" :focus="barcodeFocus"
 					@input="barcodeInput()">
@@ -144,6 +149,7 @@
 				baseUrl: '',
 				token: '',
 				barcode: '',
+				orderNo: '',
 				stationCode: '',
 				dataList: [],
 				count: 0,
@@ -159,6 +165,7 @@
 				barcodeFocus: true,
 				stationCodeFocus: false,
 				matFocus: false,
+				orderNoFocus: false,
 				matData: '',
 				removeNum: 0,
 				devNo: [],
@@ -194,6 +201,13 @@
 				}, 200)
 			},
 			// 绗﹀悎鏉′欢鐨勮烦杞埌涓嬩竴鏍忕洰
+			orderNoInput() {
+				// 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
+				setTimeout(() => {
+					var len = this.orderNo.length
+					this.barcodeFocuss()
+				}, 200)
+			},
 			barcodeInput() {
 				// 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
 				setTimeout(() => {
@@ -210,6 +224,15 @@
 					}
 					this.stationCodeFocuss()
 				}, 200)
+			},
+			// 鎵樼洏鐮佹湁璇噸缃�
+			barcodeFocuss() {
+				let that = this;
+				that.barcodeFocus = false;
+				setTimeout(() => {
+					that.barcode = '';
+					that.barcodeFocus = true;
+				}, 100);
 			},
 			// 鏆傚瓨浣嶆湁璇噸缃�
 			stationCodeFocuss() {
@@ -389,6 +412,9 @@
 				this.count = value
 			},
 			combConfirm(type) {
+				if (this.dataList.length < 1) {
+					return
+				}
 				this.msgType = type
 				this.title = '璀﹀憡'
 				this.content = '鏄惁鐜板湪缁勬墭!'
@@ -420,6 +446,7 @@
 				uni.request({
 					url: that.baseUrl + '/agvMobile/comb/auth',
 					data: JSON.stringify({
+						orderNo: that.orderNo,
 						barcode: that.barcode,
 						locno: that.stationCode,
 						combMats: that.dataList
@@ -484,6 +511,9 @@
 			},
 			// 鍚姩鍏ュ簱
 			agvStart(type) {
+				if (this.dataList.length < 1) {
+					return
+				}
 				this.msgType = type
 				this.title = '璀﹀憡'
 				this.content = '鏄惁鐜板湪鍚姩鍏ュ簱!'
@@ -543,7 +573,9 @@
 
 <style>
 	@import url('../../static/css/wms.css/wms.css');
-
+	.list:first-child {
+		margin-top: 540rpx;
+	}
 	.code {
 		width: 100%;
 		position: fixed;
@@ -587,7 +619,7 @@
 		width: 100%;
 		background-color: white;
 		position: fixed;
-		margin-top: 300rpx;
+		margin-top: 400rpx;
 		z-index: 9;
 		/* border-top: 1px solid #DCDFE6; */
 		text-align: center;

--
Gitblit v1.9.1