From 21633d6362f2a6f0fd836dd4c345230b2397f26f Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Tue, 25 Aug 2026 09:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=AD=97=E5=9B=BA=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/labelSetting/cnLabelSetting.js | 2 ++ src/i18n/locales/labelSetting/enLabelSetting.js | 1 + src/views/modules/labelSetting/LabelDesigner.vue | 3 ++- .../modules/labelSetting/components/PropertyForm.vue | 10 ++++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/i18n/locales/labelSetting/cnLabelSetting.js b/src/i18n/locales/labelSetting/cnLabelSetting.js index 0fa1fc5..8c0c56f 100644 --- a/src/i18n/locales/labelSetting/cnLabelSetting.js +++ b/src/i18n/locales/labelSetting/cnLabelSetting.js @@ -376,6 +376,8 @@ export default { showDecimalPlaces: '整数显示小数位', thousandsSeparator: '千位分隔符', roundHalfUp: '四舍五入', + fixedDigits: '固定位数', + fixedDigitsPlaceholder: '例如 6 -> 000200', dataSource: '数据源', fieldValue: '字段值', currentDate: '当前日期', diff --git a/src/i18n/locales/labelSetting/enLabelSetting.js b/src/i18n/locales/labelSetting/enLabelSetting.js index 4b1998e..1b7d3c8 100644 --- a/src/i18n/locales/labelSetting/enLabelSetting.js +++ b/src/i18n/locales/labelSetting/enLabelSetting.js @@ -133,6 +133,7 @@ export default { bold: 'Bold', autoWrap: 'Auto wrap', italic: 'Italic', underline: 'Underline', characterSpacing: 'Character spacing:', textWidthMm: 'Text width (mm)', textLines: 'Text lines', decimalPlaces: 'Decimal places', showDecimalPlaces: 'Show decimals for integers', thousandsSeparator: 'Thousands separator', roundHalfUp: 'Round half up', + fixedDigits: 'Fixed digits', fixedDigitsPlaceholder: 'Leave empty to disable, e.g. 6 -> 000200', dataSource: 'Data source', fieldValue: 'Field value', currentDate: 'Current date', extractType: 'Extraction type', fullDate: 'Full date', extractYear: 'Year', extractMonth: 'Month', extractDay: 'Day', extractWeek: 'Week', extractWeekday: 'Weekday', dateOffset: 'Day offset', firstDayOfWeek: 'First day of week', firstDayWeekday: 'Weekday of first day', diff --git a/src/views/modules/labelSetting/LabelDesigner.vue b/src/views/modules/labelSetting/LabelDesigner.vue index 9edd8c7..9c7be44 100644 --- a/src/views/modules/labelSetting/LabelDesigner.vue +++ b/src/views/modules/labelSetting/LabelDesigner.vue @@ -463,7 +463,7 @@ export default { const defaultElement = {reportId: '', type: '', x: 0, y: 0, data: '', fontSize: 30, bold: false, newline: false, lineRows: 2, lineWidth: 200, digits: 2, step: 1, width: 100, height: 30, previewUrl: '', barcodeType: '', showContent: true, showElement: true, showSerialNumber: false, - showMainSeq: false,parentSerialLabelNo:'', seqName: '', isChecked: false, decimalPlaces: '', showDecimalPlaces: false, thousandsSeparator: false, roundHalfUp: true, dateOffsetDays: 0, + showMainSeq: false,parentSerialLabelNo:'', seqName: '', isChecked: false, decimalPlaces: '', showDecimalPlaces: false, thousandsSeparator: false, roundHalfUp: true, fixedDigits: '', dateOffsetDays: 0, // 字体相关属性 fontFamily: 'default', textAlign: 'left', letterSpacing: 0, fontItalic: false, fontUnderline: false }; @@ -537,6 +537,7 @@ export default { newline: false, lineRows: 2, lineWidth: 200, + fixedDigits: '', digits: 2, step: 1, showSerialNumber: false diff --git a/src/views/modules/labelSetting/components/PropertyForm.vue b/src/views/modules/labelSetting/components/PropertyForm.vue index 2fd433e..468a328 100644 --- a/src/views/modules/labelSetting/components/PropertyForm.vue +++ b/src/views/modules/labelSetting/components/PropertyForm.vue @@ -149,6 +149,14 @@ {{ $t('labelSetting.property.roundHalfUp') }} + + +