| | |
| | | this.isManualInput = true; |
| | | this.isScanning = false; |
| | | |
| | | if (this.trayBarcode) { |
| | | this.trayBarcode = this.trayBarcode.replace(/\s+/g, ""); |
| | | } |
| | | |
| | | if (this.manualInputTimer) { |
| | | clearTimeout(this.manualInputTimer); |
| | | } |
| | |
| | | this.isManualInput = true; |
| | | this.isScanning = false; |
| | | |
| | | if (this.barcode) { |
| | | this.barcode = this.barcode.replace(/\s+/g, ""); |
| | | } |
| | | |
| | | if (this.manualInputTimer) { |
| | | clearTimeout(this.manualInputTimer); |
| | | } |
| | |
| | | this.validateForm().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 = "璇疯緭鍏ユ垨鎵弿鎵樼洏鏉$爜"; |