From fb5dea4dbe0935afc8da60f56de482347463b195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 24 Dec 2025 14:01:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(pdo):=20=E6=B7=BB=E5=8A=A0=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=89=93=E5=8D=B0=E5=8A=9F=E8=83=BD=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在PDO列表中添加打印按钮 - 将标签打印从标签页改为独立弹窗 - 调整T.vue组件布局列数 - 修改打印配置以扫描页面样式 --- .../views/l2/pdo/components/LabelPrint.vue | 4 +-- apps/l2/src/views/l2/pdo/index.vue | 27 ++++++++++++++----- apps/l2/src/views/l2/setup/panels/T.vue | 3 ++- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/apps/l2/src/views/l2/pdo/components/LabelPrint.vue b/apps/l2/src/views/l2/pdo/components/LabelPrint.vue index 59af56b..85c90e6 100644 --- a/apps/l2/src/views/l2/pdo/components/LabelPrint.vue +++ b/apps/l2/src/views/l2/pdo/components/LabelPrint.vue @@ -182,8 +182,8 @@ export default { type: 'html', header: null, // 不显示默认页眉 footer: null, // 不显示默认页脚 - style: printStyle, // 应用打印样式 - scanStyles: false, // 不扫描页面现有样式 + // style: printStyle, // 应用打印样式 + scanStyles: true, // 不扫描页面现有样式 targetStyles: ['*'], // 允许所有目标样式 documentTitle: '标签打印', // 打印文档标题 onPrintDialogClose: () => { diff --git a/apps/l2/src/views/l2/pdo/index.vue b/apps/l2/src/views/l2/pdo/index.vue index cfbf4e4..187bb89 100644 --- a/apps/l2/src/views/l2/pdo/index.vue +++ b/apps/l2/src/views/l2/pdo/index.vue @@ -106,6 +106,7 @@ - - + + - - - - - + + + + + + + +
+ +
@@ -190,6 +197,7 @@ export default { return { activeTab: 'basicInfo', queryForm: { coilid: '', startDate: '', endDate: '' }, + printOpen: false, tableData: [], tableLoading: false, btnLoading: false, @@ -283,6 +291,11 @@ export default { this.formData = JSON.parse(JSON.stringify(row)); this.dialogVisible = true }, + handlePrint(row) { + // 深拷贝行数据(避免直接修改表格数据) + this.formData = JSON.parse(JSON.stringify(row)); + this.printOpen = true + }, // 删除(保持不变) handleDelete(row) { this.$confirm(`确定删除成品卷 ${row.exitMatId}?`, '确认删除', { type: 'danger' }).then(() => { diff --git a/apps/l2/src/views/l2/setup/panels/T.vue b/apps/l2/src/views/l2/setup/panels/T.vue index d7229c1..d53d7ec 100644 --- a/apps/l2/src/views/l2/setup/panels/T.vue +++ b/apps/l2/src/views/l2/setup/panels/T.vue @@ -41,7 +41,7 @@ :xs="24" :sm="12" :md="8" - :lg="5" + :lg="6" :xl="4" class="card-col" > @@ -152,6 +152,7 @@