|
|
@ -1042,7 +1042,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="维修用时" prop="workCostTime">
|
|
|
|
<el-form-item label="维修用时" prop="workCostTime">
|
|
|
|
<el-input v-model="form.workCostTime" style="width: 195px">
|
|
|
|
<el-input v-model="form.workCostTime" style="width: 195px" disabled>
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
@ -1056,6 +1056,11 @@
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
|
|
|
<el-form-item label="故障类型" prop="faultType">
|
|
|
|
|
|
|
|
<el-cascader :options="faultTypeOption" v-model="form.faultType" style="width: 195px" clearable></el-cascader>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
@ -1107,6 +1112,7 @@ import {
|
|
|
|
updateRepairOrder,
|
|
|
|
updateRepairOrder,
|
|
|
|
applyOutsource,
|
|
|
|
applyOutsource,
|
|
|
|
writeRepairOrder,
|
|
|
|
writeRepairOrder,
|
|
|
|
|
|
|
|
queryEquFaultTypeTree,
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
} from "@/api/device/repairOrder";
|
|
|
|
import { getMaintenanceTeamList } from "@/api/device/equTeam";
|
|
|
|
import { getMaintenanceTeamList } from "@/api/device/equTeam";
|
|
|
|
import ItemSelect from "./selectSingleEquipment.vue";
|
|
|
|
import ItemSelect from "./selectSingleEquipment.vue";
|
|
|
@ -1149,6 +1155,8 @@ export default {
|
|
|
|
urlAfterLists: [],
|
|
|
|
urlAfterLists: [],
|
|
|
|
//选择设备维修班组
|
|
|
|
//选择设备维修班组
|
|
|
|
teamOption: [],
|
|
|
|
teamOption: [],
|
|
|
|
|
|
|
|
//故障类型
|
|
|
|
|
|
|
|
faultTypeOption: [],
|
|
|
|
optType: undefined,
|
|
|
|
optType: undefined,
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
@ -1283,6 +1291,7 @@ export default {
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.getTeamList();
|
|
|
|
this.getTeamList();
|
|
|
|
|
|
|
|
this.getEquFaultTypeTree();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 生成表头序号
|
|
|
|
// 生成表头序号
|
|
|
@ -1354,6 +1363,14 @@ export default {
|
|
|
|
this.teamOption = response.rows;
|
|
|
|
this.teamOption = response.rows;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//故障类型
|
|
|
|
|
|
|
|
getEquFaultTypeTree() {
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
queryEquFaultTypeTree(this.queryParams).then((response) => {
|
|
|
|
|
|
|
|
console.log(response.rows);
|
|
|
|
|
|
|
|
this.faultTypeOption = response.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
// 委外申请查看页面-取消按钮
|
|
|
|
// 委外申请查看页面-取消按钮
|
|
|
|
cancelApplyViewForm() {
|
|
|
|
cancelApplyViewForm() {
|
|
|
|
this.openApplyView = false;
|
|
|
|
this.openApplyView = false;
|
|
|
@ -1449,7 +1466,8 @@ export default {
|
|
|
|
const workId = row.workId || this.ids;
|
|
|
|
const workId = row.workId || this.ids;
|
|
|
|
getRepairOrder(workId).then((response) => {
|
|
|
|
getRepairOrder(workId).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
//转成list
|
|
|
|
|
|
|
|
this.form.faultType = response.data.faultType.split(",");
|
|
|
|
//遍历response.data.beforeRepairFiles
|
|
|
|
//遍历response.data.beforeRepairFiles
|
|
|
|
if (response.data.beforeRepairFiles != null) {
|
|
|
|
if (response.data.beforeRepairFiles != null) {
|
|
|
|
var beforeNewFiles = [];
|
|
|
|
var beforeNewFiles = [];
|
|
|
@ -1600,6 +1618,8 @@ export default {
|
|
|
|
this.form.afterRepairFile
|
|
|
|
this.form.afterRepairFile
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.form.faultType = this.form.faultType.join(',');
|
|
|
|
|
|
|
|
console.log(this.form.faultType);
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
if (this.form.workId != null) {
|
|
|
|
if (this.form.workId != null) {
|
|
|
@ -1707,6 +1727,17 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 对象转成指定字符串分隔
|
|
|
|
|
|
|
|
listToString(list, separator) {
|
|
|
|
|
|
|
|
let strs = "";
|
|
|
|
|
|
|
|
separator = separator || ",";
|
|
|
|
|
|
|
|
for (let i in list) {
|
|
|
|
|
|
|
|
strs += list[i].url + separator;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return strs != "" ? strs.substr(0, strs.length - 1) : "";
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|