委外保养定时任务修改

master
wws 10 months ago
parent 5c2489a7c7
commit 2832fbe175

@ -175,7 +175,7 @@
width="180"
/>
<el-table-column
label="维修单号"
label="维修/保养单号"
align="center"
prop="repairCode"
width="180"

@ -440,7 +440,7 @@
</el-form-item>
</el-col>
<el-col :span="2">
<el-select v-model="form.planLoopType" placeholder="周期" clearable>
<el-select v-model="form.planLoopType" placeholder="周期">
<el-option
v-for="dict in dict.type.device_loop_type"
:key="dict.value"
@ -1564,13 +1564,36 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
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;

Loading…
Cancel
Save