|
|
@ -440,7 +440,7 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="2">
|
|
|
|
<el-col :span="2">
|
|
|
|
<el-select v-model="form.planLoopType" placeholder="周期" clearable>
|
|
|
|
<el-select v-model="form.planLoopType" placeholder="周期">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="dict in dict.type.device_loop_type"
|
|
|
|
v-for="dict in dict.type.device_loop_type"
|
|
|
|
:key="dict.value"
|
|
|
|
:key="dict.value"
|
|
|
@ -1564,13 +1564,36 @@ export default {
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
if (this.selectPersonList.length == 0) {
|
|
|
|
if (this.selectPersonList.length == 0 && this.form.upkeep == "0") {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
message: "请请选择人员!",
|
|
|
|
message: "请请选择人员!",
|
|
|
|
type: "warning"
|
|
|
|
type: "warning"
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return
|
|
|
|
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;
|
|
|
|
this.planLoading = true;
|
|
|
|
if (this.form.planId != null) {
|
|
|
|
if (this.form.planId != null) {
|
|
|
|
this.form.personList = this.selectPersonList;
|
|
|
|
this.form.personList = this.selectPersonList;
|
|
|
|