yyb
2026-05-22 552ec6b7d8ccc56c379da195fc6c9c74312b1070
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) {
      // 找到匹配的设备,自动填充