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 | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 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 5a5d03a..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"
@@ -433,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) {
@@ -440,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();
@@ -663,6 +675,13 @@
if (!palletCode) {
return;
}
+
+ this.$nextTick(() => {
+ if (this.$refs.palletInput) {
+ this.$refs.palletInput.focus();
+ this.$refs.palletInput.select(); // 閫変腑鍏ㄩ儴鍐呭
+ }
+ });
// 鍏堟牴鎹墭鐩樺彿鑾峰彇璁㈠崟鍙�
this.getOrderNoByPallet(palletCode).then((orderNo) => {
if (orderNo) {
@@ -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