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/PickingRetuenPallet.vue |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/PickingRetuenPallet.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/PickingRetuenPallet.vue"
index a99859c..4aa4e57 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/PickingRetuenPallet.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/PickingRetuenPallet.vue"
@@ -169,6 +169,7 @@
   data() {
     return {
       palletVisible: this.visible,
+      trayBarcodeReg: /^[A-Z]\d{9}$/,
       trayBarcode: '',
       barcode: '',
       materials: [],
@@ -209,6 +210,13 @@
             trigger: 'change'
           }
         ],
+        trayBarcode: [
+        {
+          pattern: /^[A-Z]\d{9}$/,
+          message: '鎵樼洏鍙锋牸寮忛敊璇�',
+          trigger: 'blur'
+        }
+      ],
         warehouseType: [
           {
             massage: '璇烽�夋嫨浠撳簱',
@@ -516,6 +524,7 @@
           inputEl.focus();
           this.currentFocus = 'tray';
           this.scanTarget = 'tray';
+          inputEl.select();
         }
       }
     },
@@ -705,6 +714,12 @@
 
       this.error = '';
 
+      if (!this.trayBarcodeReg.test(currentTrayBarcode)) {
+        ElMessage.error('鎵樼洏鏉$爜鏍煎紡閿欒');
+        this.focusTrayInput();
+        return;
+      }
+
       // 璁剧疆鎵樼洏鏉$爜鍚庯紝鑷姩鑱氱劍鍒扮墿鏂欒緭鍏ユ
       this.focusBarcodeInput();
 

--
Gitblit v1.9.3