From b0dd2be72c1cdcc7a7859654ee06c2d5229288ad Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Mon, 24 Feb 2025 10:35:18 +0800 Subject: [PATCH] 20250224 --- src/printFormat/alphaHardTagPrintFormat.js | 4 ++-- src/views/modules/manufacturer/manufacturerInformation.vue | 2 +- src/views/modules/part/external.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/printFormat/alphaHardTagPrintFormat.js b/src/printFormat/alphaHardTagPrintFormat.js index 7aa8731..8193bb9 100644 --- a/src/printFormat/alphaHardTagPrintFormat.js +++ b/src/printFormat/alphaHardTagPrintFormat.js @@ -135,7 +135,7 @@ const printCartonLabel = (LODOP,row,icons,hz) => { LODOP.SET_PRINT_STYLEA(0, 'FontName', 'Arial') LODOP.SET_PRINT_STYLEA(0, 'FontSize', 10) - LODOP.ADD_PRINT_TEXT(86, 275, 64, 20, row.weight) + LODOP.ADD_PRINT_TEXT(86, 275, 64, 20, new Decimal(row.weight).toDecimalPlaces(3)) LODOP.SET_PRINT_STYLEA(0, 'FontName', 'Arial') LODOP.SET_PRINT_STYLEA(0, 'FontSize', 10) LODOP.SET_PRINT_STYLEA(0, 'Alignment', 3) @@ -144,7 +144,7 @@ const printCartonLabel = (LODOP,row,icons,hz) => { LODOP.SET_PRINT_STYLEA(0, 'FontName', 'Arial') LODOP.SET_PRINT_STYLEA(0, 'FontSize', 10) if (row.showPound === 'Y'){ - LODOP.ADD_PRINT_TEXT(101, 275, 64, 20, new Decimal(row.weight).mul(new Decimal(2.20462)).toDecimalPlaces(6)) + LODOP.ADD_PRINT_TEXT(101, 275, 64, 20, new Decimal(row.weight).mul(new Decimal(2.20462)).toDecimalPlaces(3)) LODOP.SET_PRINT_STYLEA(0, 'FontName', 'Arial') LODOP.SET_PRINT_STYLEA(0, 'FontSize', 10) LODOP.SET_PRINT_STYLEA(0, 'Alignment', 3) diff --git a/src/views/modules/manufacturer/manufacturerInformation.vue b/src/views/modules/manufacturer/manufacturerInformation.vue index 743c6bc..329fd21 100644 --- a/src/views/modules/manufacturer/manufacturerInformation.vue +++ b/src/views/modules/manufacturer/manufacturerInformation.vue @@ -75,7 +75,7 @@ - + diff --git a/src/views/modules/part/external.vue b/src/views/modules/part/external.vue index b0e8fa3..8bc5621 100644 --- a/src/views/modules/part/external.vue +++ b/src/views/modules/part/external.vue @@ -1750,7 +1750,7 @@ export default { + :precision="3"> @@ -1771,7 +1771,7 @@ export default { + :precision="3">