zhangwencui
2026-06-15 61a2db936dcbc3d5aebe8ff850bcaab76e3b3785
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) {
      // 找到匹配的设备,自动填充