src/pages/equipmentManagement/upkeep/add.vue
@@ -205,8 +205,6 @@ // 扫描二维码功能 const startScan = () => { processScanResult(""); return; if (isScanning.value) { showToast("正在扫描中,请稍候..."); return; @@ -251,7 +249,7 @@ // 处理扫码结果并匹配设备 const processScanResult = scanResult => { const deviceId = getDeviceIdByRegExp(scanResult); const matchedDevice = deviceOptions.value.find(item => item.id == 4); const matchedDevice = deviceOptions.value.find(item => item.id == deviceId); if (matchedDevice) { // 找到匹配的设备,自动填充