From 557f7f6079c30cd6fe8d6005cea3d89468bbcd31 Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期一, 09 三月 2026 09:23:13 +0800
Subject: [PATCH] 代码优化

---
 项目代码/WIDESEA_WMSClient/src/views/outbound/outPicking.vue |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outPicking.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outPicking.vue"
index 14cef75..49b205f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outPicking.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outPicking.vue"
@@ -9,6 +9,8 @@
                     <i class="el-icon-document"></i>
                     <span class="order-label">璁㈠崟鍙凤細</span>
                     <span class="order-value">{{ orderNo }}</span>
+                    <span class="order-label" style="margin-left: 20px;">浜х嚎鍚嶇О锛�</span>
+                    <span class="order-value">{{ orderInfo?.departmentName || '' }}</span>
                 </div>
                 <div class="order-status">
                     <el-tag v-if="orderInfo" :type="getStatusType(orderInfo.orderStatus)" size="medium"
@@ -431,6 +433,12 @@
                     this.playErrorAudio();
                     const errorMsg = response.message || '璇ユ墭鐩樺彿鏈叧鑱斾换浣曡鍗�';
                     this.$message.error(errorMsg);
+                    this.$nextTick(() => {
+                if (this.$refs.palletInput) {
+                    this.$refs.palletInput.focus();
+                    this.$refs.palletInput.select(); // 閫変腑鍏ㄩ儴鍐呭
+                }
+            });
                     return null;
                 }
             } catch (error) {
@@ -438,6 +446,12 @@
                 const errorMsg = `鑾峰彇璁㈠崟鍙峰紓甯革細${error.message || '缃戠粶閿欒'}`;
                 this.$message.error(errorMsg);
                 console.error("銆愭墭鐩樺彿鏌ヨ鍗曞彿鎺ュ彛寮傚父銆�", error);
+                this.$nextTick(() => {
+                if (this.$refs.palletInput) {
+                    this.$refs.palletInput.focus();
+                    this.$refs.palletInput.select(); // 閫変腑鍏ㄩ儴鍐呭
+                }
+            });
                 return null;
             } finally {
                 this.hideFullScreenLoading();
@@ -656,12 +670,18 @@
             this.pickedTotal = this.pickedCount
         },
 
-        // ============== 寰皟锛氭柊澧炶幏鍙栬鍗曞彿閫昏緫锛屽叾浣欎笉鍙� ==============
         handlePalletScan(flag = true) {
             const palletCode = this.scanForm.palletCode.trim();
             if (!palletCode) {
                 return;
             }
+
+            this.$nextTick(() => {
+        if (this.$refs.palletInput) {
+            this.$refs.palletInput.focus();
+            this.$refs.palletInput.select(); // 閫変腑鍏ㄩ儴鍐呭
+        }
+    });
             // 鍏堟牴鎹墭鐩樺彿鑾峰彇璁㈠崟鍙�
             this.getOrderNoByPallet(palletCode).then((orderNo) => {
                 if (orderNo) {
@@ -673,7 +693,6 @@
                 this.loadPalletData(flag);
             });
         },
-        // ============== 寰皟缁撴潫 ==============
 
         handleMaterialScan() {
             if (!this.scanForm.palletCode) {
@@ -718,10 +737,12 @@
                     await this.loadPalletData(false)
                 } else {
                     this.$message.error(response.message || '鎷i�夌‘璁ゅけ璐�')
+                    this.scanForm.materialBarcode = '';
                     this.playErrorAudio()
                 }
             } catch (error) {
                 this.$message.error('鎷i�夌‘璁ゅけ璐�')
+                this.scanForm.materialBarcode = '';
                 this.playErrorAudio()
             } finally {
                 this.confirmLoading = false

--
Gitblit v1.9.3