From 2198087b9c780aa29b630e5212239f85f3b40c83 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 16 四月 2026 17:19:36 +0800
Subject: [PATCH] 产品生成二维码
---
src/views/basicData/product/index.vue | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index a74a294..d4186c1 100644
--- a/src/views/basicData/product/index.vue
+++ b/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,
+ });
// 鐢熸垚浜岀淮鐮乁RL
qrCodeUrl.value = await QRCode.toDataURL(qrCodeData, {
width: 300,
--
Gitblit v1.9.3