From 029559f7cedded183bd1fbd09a5ebb576a9fa21d Mon Sep 17 00:00:00 2001
From: zhou zhou <zozhouo3o@gmail.com>
Date: 星期五, 17 四月 2026 12:34:23 +0800
Subject: [PATCH] #条码自定义
---
rsf-design/src/views/basic-info/wh-mat/matnrPrintTemplate.helpers.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/rsf-design/src/views/basic-info/wh-mat/matnrPrintTemplate.helpers.js b/rsf-design/src/views/basic-info/wh-mat/matnrPrintTemplate.helpers.js
index 0ebb9ef..f40f917 100644
--- a/rsf-design/src/views/basic-info/wh-mat/matnrPrintTemplate.helpers.js
+++ b/rsf-design/src/views/basic-info/wh-mat/matnrPrintTemplate.helpers.js
@@ -473,6 +473,10 @@
}
normalized.columns = normalizeTableColumns(element?.columns, normalized.w)
normalized.rows = normalizeTableRows(element?.rows)
+ normalized.w = Math.max(
+ normalizeNumber(normalized.w, 0),
+ normalized.columns.reduce((total, column) => total + normalizeNumber(column?.width, 0), 0)
+ )
normalized.h = Math.max(
normalizeNumber(normalized.h, 0),
normalized.rows.reduce((total, row) => total + normalizeNumber(row?.height, 0), 0)
--
Gitblit v1.9.1