From 990558e59d882d191153b0f13328844f4957df9c Mon Sep 17 00:00:00 2001 From: liutao <790864623@qq.com> Date: Fri, 12 Jun 2026 08:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E9=85=8D=E7=BD=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en.ts | 5 + src/locales/zh-CN.ts | 7 +- src/views/mes/printconfig/ConfigForm.vue | 164 ++++++++++++++- src/views/mes/printconfig/index.vue | 256 ++++++++++++++++++++++- 4 files changed, 417 insertions(+), 15 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index 165eec74..c7a96dca 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -3234,6 +3234,10 @@ export default { designTitle: 'Template Design' }, PrintConfig: { + moduleName: 'Printer Config', + currentHostName: 'Current Host Name', + unknownHostName: 'Not detected', + currentHostTip: 'This page only displays and manages printer configurations for the current host.', hostName: 'Host Name', systemPrinterName: 'Printer Name', defaultStatus: 'Is Default', @@ -3245,6 +3249,7 @@ export default { placeholderHostName: 'Please input host name', placeholderSystemPrinterName: 'Please input printer name', placeholderRemark: 'Please input printer remark', + testPrint:'Test Print' } }, QualityManagement: { diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 2c370e30..4e384913 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -2725,6 +2725,10 @@ export default { designTitle: '模板配置' }, PrintConfig: { + moduleName: '打印机配置', + currentHostName: '当前主机名', + unknownHostName: '未获取到', + currentHostTip: '当前页面仅展示和管理当前主机的打印机配置。', hostName: '主机名', systemPrinterName: '打印机名称', defaultStatus: '是否默认', @@ -2742,7 +2746,8 @@ export default { validatorNameRequired: '模板名称不能为空', validatorTypeRequired: '模板类型不能为空', design: '配置', - designTitle: '模板配置' + designTitle: '模板配置', + testPrint:'测试打印' } }, QualityManagement: { diff --git a/src/views/mes/printconfig/ConfigForm.vue b/src/views/mes/printconfig/ConfigForm.vue index 7331b26f..67ee35ed 100644 --- a/src/views/mes/printconfig/ConfigForm.vue +++ b/src/views/mes/printconfig/ConfigForm.vue @@ -8,10 +8,24 @@ v-loading="formLoading" > - + - + + + + @@ -24,6 +38,7 @@ @@ -31,13 +46,18 @@ + +