From c18d2a118251c644f90dffa8cda1f9c8fb9baca1 Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期二, 03 二月 2026 17:24:16 +0800
Subject: [PATCH] 优化组盘页面

---
 项目代码/WIDESEA_WMSClient/src/extension/inbound/extend/AllcatedPallet.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/AllcatedPallet.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/AllcatedPallet.vue"
index fe15c2e..92ca4a5 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/AllcatedPallet.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/extend/AllcatedPallet.vue"
@@ -625,6 +625,10 @@
       this.isManualInput = true;
       this.isScanning = false;
 
+      if (this.trayBarcode) {
+        this.trayBarcode = this.trayBarcode.replace(/\s+/g, "");
+      }
+
       if (this.manualInputTimer) {
         clearTimeout(this.manualInputTimer);
       }
@@ -638,6 +642,9 @@
       this.isManualInput = true;
       this.isScanning = false;
 
+      if (this.barcode) {
+        this.barcode = this.barcode.replace(/\s+/g, "");
+      }
       if (this.manualInputTimer) {
         clearTimeout(this.manualInputTimer);
       }
@@ -666,7 +673,9 @@
         .then(valid => {
           if (!valid) return;
           
-          const currentTrayBarcode = this.trayBarcode.trim();
+          let currentTrayBarcode = (this.trayBarcode || "").replace(/\s+/g, "").trim();
+        
+         this.trayBarcode = currentTrayBarcode;
 
           if (!currentTrayBarcode) {
             this.error = '璇疯緭鍏ユ垨鎵弿鎵樼洏鏉$爜';

--
Gitblit v1.9.3