库存盘点添加扫码保留数值的功能
This commit is contained in:
@ -722,6 +722,9 @@ const onScanSuccess = async (code: string) => {
|
||||
if (!code || loading.value) return
|
||||
const trimCode = code.trim()
|
||||
|
||||
// 将扫到的条码同步显示在输入框中
|
||||
barcodeInput.value = trimCode
|
||||
|
||||
if (!/^[A-Za-z0-9\-\.]+$/.test(trimCode)) {
|
||||
ElMessage.warning(`识别到异常字符:${trimCode}`)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user