From bf2bf30a961596dddc6c4be7f6463086635cd79f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 10 Nov 2026 15:46:19 +0800 Subject: [PATCH] =?UTF-8?q?2026-11-10=20=E4=BC=98=E5=8C=96=E5=87=BA?= =?UTF-8?q?=E8=B4=A7=E6=8A=A5=E5=91=8A=E6=89=93=E5=8D=B0=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/report/shipment_report.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/modules/report/shipment_report.vue b/src/views/modules/report/shipment_report.vue index a70dde4..4d06276 100644 --- a/src/views/modules/report/shipment_report.vue +++ b/src/views/modules/report/shipment_report.vue @@ -3,12 +3,12 @@
选择模板 - 选择检验单 + 选择检验单 打印
-
+

出货报告打印报表

@@ -17,7 +17,7 @@ 选择检验单: - {{ reportData.inspectionNo || '请选择' }} + {{ reportData.inspectionNo || '请选择' }} 报告日期 {{ currentDate }} @@ -491,6 +491,10 @@ export default { // 确认选择检验单:填充报表数据("结果"列改由主表行"选择"检验明细项目赋值) confirmSelectionlection() { + if (!this.selectedTemplateCode) { + this.$message.warning('请先选择属性模板') + return + } if (this.selectedRow) { this.reportData = { ...this.selectedRow } this.selectDialogVisible = false @@ -766,6 +770,10 @@ export default { // 打印报表(仅打印主页面报表内容) printReport() { + if (!this.selectedTemplateCode) { + this.$message.warning('请先选择属性模板') + return + } if (!this.reportData.inspectionNo) { this.$message.warning('请先选择检验单') return