From 0793bc58a1ca34f9db488335232f87857b40fbff Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Sun, 28 Apr 2024 17:20:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=8F=82=E4=B8=8E?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E6=A0=87=E5=87=86=E5=88=B6=E4=BF=AE=E8=AE=A2?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=8F=90=E6=8A=A5=E6=B5=81=E7=A8=8B=20?= =?UTF-8?q?=E6=9C=AA=E5=A1=AB=E5=85=A8=E4=BF=A1=E6=81=AF=E6=97=B6=E9=98=BB?= =?UTF-8?q?=E6=AD=A2=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processCenter/pages/creatProcess/cywbbzzxd/step3.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue index 99cf202d4..5142edd81 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue @@ -692,14 +692,19 @@ export default { }); }, handleSubmit() { + let isValid = true if (this.participantsData.length < 1) { this.$message.warning("项目信息不能为空"); } else { this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { + if (item.projectNumber === undefined || item.projectNumber === '') { this.$message.warning("请完善项目信息"); + isValid = false } }); + if (!isValid){ + return + } this.wbbzform.commentText = this.commentStep; let json = { participantsData: this.participantsData,