gongchunyi
22 小时以前 6fb92e1e4c9c84909664be7b85ccfdb272339a1f
src/views/basicData/product/index.vue
@@ -528,7 +528,12 @@
      currentProductId.value = row.id;
      qrCodeName.value = fatherName.value + "-" + row.model;
      // 使用row.id生成二维码
      const qrCodeData = row.id.toString();
      const qrCodeData = JSON.stringify({
        id: row.id,
        productName: fatherName.value,
        model: row.model,
        unit: row.unit,
      });
      // 生成二维码URL
      qrCodeUrl.value = await QRCode.toDataURL(qrCodeData, {
        width: 300,