From 7fe28430a9d9d484cc2dfc7ac71def6f06c42e92 Mon Sep 17 00:00:00 2001 From: Harry Yang Date: Fri, 30 Dec 2022 15:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=88=E5=90=8C=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=20=E9=A1=B9=E7=9B=AE=E6=8F=90=E7=A4=BA=E6=8F=90?= =?UTF-8?q?=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/admin/business/process-new.ftl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/resources/templates/admin/business/process-new.ftl b/src/main/resources/templates/admin/business/process-new.ftl index e545156..4ffb29e 100644 --- a/src/main/resources/templates/admin/business/process-new.ftl +++ b/src/main/resources/templates/admin/business/process-new.ftl @@ -824,6 +824,11 @@ .then(res => res.json()) .then(data => { const { incomeDetails, procurementDetails, ...form } = data + if (!form.projectNo || !form.projectName) { + this.$message.warning("当前选择的项目没有编号或者名称") + return + } + // 转换数据 // @formatter:off const computeType = (type) => { @@ -844,7 +849,7 @@ default: return '未知' } } - // @formatter:on + // @formatter:on this.initForm(form) this.projectSelected = true @@ -861,9 +866,6 @@ this.procurementDetailsRowKey = rowKey - if (!form.projectNo || !form.projectName) { - this.$message.warning("当前选择的项目没有编号或者名称"); - } }) .catch(err => { this.$message.error("项目'" + name + "'加载失败");