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