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;