From 98c5fbdce57cf9f0914ca5fb2c659c9396d3aed6 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期三, 03 十二月 2025 22:53:01 +0800
Subject: [PATCH] 提交

---
 项目代码/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue"
index db36e69..290038c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/Pallet.vue"
@@ -169,6 +169,7 @@
   data() {
     return {
       palletVisible: this.visible,
+      trayBarcodeReg:/^[A-Z]\d{9}$/,
       trayBarcode: '',
       barcode: '',
       materials: [],
@@ -209,9 +210,16 @@
             trigger: 'change'
           }
         ],
+        trayBarcode:[
+          {
+            pattern: this.trayBarcodeReg,
+            message: '鎵樼洏鍙锋牸寮忛敊璇紙闇�涓�1涓ぇ鍐欏瓧姣�+9涓暟瀛楋紝濡侫000008024锛�',
+            trigger: 'blur'
+         }
+        ],
         warehouseType: [
           {
-            massage: '璇烽�夋嫨浠撳簱',
+            message: '璇烽�夋嫨浠撳簱',
             trigger: 'change'
           }
         ]
@@ -516,6 +524,7 @@
           inputEl.focus();
           this.currentFocus = 'tray';
           this.scanTarget = 'tray';
+          inputEl.select();
         }
       }
     },
@@ -705,6 +714,16 @@
 
       this.error = '';
 
+      if(!this.trayBarcodeReg.test(currentTrayBarcode)){
+        ElMessage.warning({
+          message: '鎵樼洏鍙锋牸寮忛敊璇�',
+          type: 'warning',
+          duration: 3000
+        })
+        this.focusTrayInput();
+        return;
+      }
+
       // 璁剧疆鎵樼洏鏉$爜鍚庯紝鑷姩鑱氱劍鍒扮墿鏂欒緭鍏ユ
       this.focusBarcodeInput();
 

--
Gitblit v1.9.3