| | |
| | | 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) { |
| | |
| | | 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(); |
| | |
| | | if (!palletCode) { |
| | | return; |
| | | } |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.$refs.palletInput) { |
| | | this.$refs.palletInput.focus(); |
| | | this.$refs.palletInput.select(); // éä¸å
¨é¨å
容 |
| | | } |
| | | }); |
| | | // å
æ ¹æ®æçå·è·å订åå· |
| | | this.getOrderNoByPallet(palletCode).then((orderNo) => { |
| | | if (orderNo) { |
| | |
| | | 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 |