From 2c4e1b585101fb1c92455506442bee96b1f58c20 Mon Sep 17 00:00:00 2001
From: chen.llin <1442464845@qq.comm>
Date: 星期三, 21 一月 2026 08:30:10 +0800
Subject: [PATCH] 托盘码暂存位相同阻止

---
 pages/AGV/agv_empty.vue |    6 ++++++
 pages/AGV/agv_start.vue |    6 ++++++
 pages/AGV/agv_back.vue  |    6 ++++++
 3 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/pages/AGV/agv_back.vue b/pages/AGV/agv_back.vue
index 1aec748..ddb815a 100644
--- a/pages/AGV/agv_back.vue
+++ b/pages/AGV/agv_back.vue
@@ -485,6 +485,12 @@
 			},
 			combConfirm(type) {
 				if (this.isSubmitting || this.barcode === '') return;
+				// 妫�鏌ユ墭鐩樼爜鍜屾殏瀛樹綅缂栫爜鏄惁鐩稿悓
+				if (this.barcode && this.sourceSite && this.barcode.trim() === this.sourceSite.trim()) {
+					this.messageText = "鎵樼洏鐮佸拰鏆傚瓨浣嶇紪鐮佷笉鑳界浉鍚�"
+					this.messageToggle('error')
+					return;
+				}
 				this.msgType = type
 				this.title = '纭鍛煎彨'
 				this.content = '纭鍛煎彨锛�'
diff --git a/pages/AGV/agv_empty.vue b/pages/AGV/agv_empty.vue
index ec6d7a5..5bc7cdc 100644
--- a/pages/AGV/agv_empty.vue
+++ b/pages/AGV/agv_empty.vue
@@ -527,6 +527,12 @@
 			},
 			combConfirm(type) {
 				if (this.isSubmitting || this.barcode === '' || this.sourceSite === '') return;
+				// 妫�鏌ユ墭鐩樼爜鍜屾殏瀛樹綅缂栫爜鏄惁鐩稿悓
+				if (this.barcode && this.sourceSite && this.barcode.trim() === this.sourceSite.trim()) {
+					this.messageText = "鎵樼洏鐮佸拰鏆傚瓨浣嶇紪鐮佷笉鑳界浉鍚�"
+					this.messageToggle('error')
+					return;
+				}
 				this.msgType = type
 				this.title = '纭鍛煎彨'
 				this.content = '纭鍛煎彨锛�'
diff --git a/pages/AGV/agv_start.vue b/pages/AGV/agv_start.vue
index da4ebb1..78f9480 100644
--- a/pages/AGV/agv_start.vue
+++ b/pages/AGV/agv_start.vue
@@ -506,6 +506,12 @@
 			},
 			combConfirm(type) {
 				if (this.isSubmitting || this.barcode === '' || this.sourceSite === '') return;
+				// 妫�鏌ユ墭鐩樼爜鍜屾殏瀛樹綅缂栫爜鏄惁鐩稿悓
+				if (this.barcode && this.sourceSite && this.barcode.trim() === this.sourceSite.trim()) {
+					this.messageText = "鎵樼洏鐮佸拰鏆傚瓨浣嶇紪鐮佷笉鑳界浉鍚�"
+					this.messageToggle('error')
+					return;
+				}
 				this.msgType = type
 				this.title = '纭鍛煎彨'
 				this.content = '纭鍛煎彨锛�'

--
Gitblit v1.9.1