heshaofeng
2026-03-09 557f7f6079c30cd6fe8d6005cea3d89468bbcd31
ÏîÄ¿´úÂë/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 || '拣选确认失败')
                    this.scanForm.materialBarcode = '';
                    this.playErrorAudio()
                }
            } catch (error) {
                this.$message.error('拣选确认失败')
                this.scanForm.materialBarcode = '';
                this.playErrorAudio()
            } finally {
                this.confirmLoading = false