From 2832fbe17566df04dedb67926ba951cc89f1b0b3 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Fri, 24 Nov 2023 17:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A7=94=E5=A4=96=E4=BF=9D=E5=85=BB=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/outsourceWorkOrder/index.vue | 2 +- src/views/device/upkeepPlan/index.vue | 27 +++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/views/device/outsourceWorkOrder/index.vue b/src/views/device/outsourceWorkOrder/index.vue index 86074b4..6a0986d 100644 --- a/src/views/device/outsourceWorkOrder/index.vue +++ b/src/views/device/outsourceWorkOrder/index.vue @@ -175,7 +175,7 @@ width="180" /> - + { if (valid) { - if (this.selectPersonList.length == 0) { + if (this.selectPersonList.length == 0 && this.form.upkeep == "0") { this.$message({ message: "请请选择人员!", type: "warning" }) return } + if (this.form.upkeep == "1") { + if (this.form.workOutsourcingUnit == null) { + this.$message({ + message: "委外单位不可为空!", + type: "warning" + }) + return + } + if (this.form.workPerson == null) { + this.$message({ + message: "委外人员不可为空!", + type: "warning" + }) + return + } + if (this.form.workConnection == null) { + this.$message({ + message: "联系方式不可为空!", + type: "warning" + }) + return + } + } this.planLoading = true; if (this.form.planId != null) { this.form.personList = this.selectPersonList;