|
|
|
@ -918,7 +918,12 @@
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
|
<el-descriptions :column="3" border>
|
|
|
|
|
<el-descriptions
|
|
|
|
|
:column="3"
|
|
|
|
|
border
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LS"
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
|
form.equipmentCode
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
@ -942,7 +947,11 @@
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label="故障图片"
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LS"
|
|
|
|
|
>
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
|
:key="index"
|
|
|
|
@ -959,9 +968,9 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="100">
|
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="85">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="65">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
@ -975,7 +984,7 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="45">
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="47">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
@ -1009,7 +1018,25 @@ export default {
|
|
|
|
|
dicts: ["device_order_source", "device_reach_standard"],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
//选择设备维修班组
|
|
|
|
|
CS: {
|
|
|
|
|
"text-align": "center", //文本居中
|
|
|
|
|
"min-width": "100px", //最小宽度
|
|
|
|
|
"word-break": "break-all", //过长时自动换行
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
LS: {
|
|
|
|
|
color: "#000",
|
|
|
|
|
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
|
|
|
|
|
"font-weight": "600",
|
|
|
|
|
|
|
|
|
|
height: "40px",
|
|
|
|
|
|
|
|
|
|
"min-width": "110px",
|
|
|
|
|
|
|
|
|
|
"word-break": "keep-all",
|
|
|
|
|
},
|
|
|
|
|
teamOption: [],
|
|
|
|
|
//图片存储
|
|
|
|
|
fileList: [],
|
|
|
|
@ -1315,18 +1342,24 @@ export default {
|
|
|
|
|
newFiles.push(newFile);
|
|
|
|
|
});
|
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
|
|
|
|
|
|
var urlLists = [];
|
|
|
|
|
this.form.fileList.forEach((item) => {
|
|
|
|
|
urlLists.push(item.url);
|
|
|
|
|
});
|
|
|
|
|
this.urlLists = urlLists;
|
|
|
|
|
console.log("2222222222", this.urlLists);
|
|
|
|
|
} else if (response.data.files == null) {
|
|
|
|
|
this.urlLists = null;
|
|
|
|
|
}
|
|
|
|
|
this.checkList = null;
|
|
|
|
|
this.checkList = response.data.checkList;
|
|
|
|
|
if (this.checkList != null) {
|
|
|
|
|
//检查项遍历
|
|
|
|
|
var standards = [];
|
|
|
|
|
this.checkList.forEach((item1) => {
|
|
|
|
|
//检查项名字
|
|
|
|
|
if (item1 != null) {
|
|
|
|
|
item1.standardList.forEach((item) => {
|
|
|
|
|
var standard = {};
|
|
|
|
|
standard.itemName = item1.itemName;
|
|
|
|
@ -1338,11 +1371,22 @@ export default {
|
|
|
|
|
standard.detailReach = item.detailReach;
|
|
|
|
|
standard.actualValue = item.actualValue;
|
|
|
|
|
standard.standardType = item.standardType;
|
|
|
|
|
|
|
|
|
|
var standardUrlLists = [];
|
|
|
|
|
item.picturePaths.forEach((item2) => {
|
|
|
|
|
standardUrlLists.push(item2.fileAddress);
|
|
|
|
|
});
|
|
|
|
|
standard.standardUrlLists = standardUrlLists;
|
|
|
|
|
|
|
|
|
|
standards.push(standard);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.checkList = standards;
|
|
|
|
|
console.log("1111111111", this.checkList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.openView = true;
|
|
|
|
|
this.title = "查看故障报修";
|
|
|
|
|
});
|
|
|
|
@ -1356,6 +1400,7 @@ export default {
|
|
|
|
|
this.teamOption = response.rows;
|
|
|
|
|
});
|
|
|
|
|
getFaultReport(orderId).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
if (response.data.files != null) {
|
|
|
|
|
var newFiles = [];
|
|
|
|
|
response.data.files.forEach((item) => {
|
|
|
|
@ -1365,7 +1410,51 @@ export default {
|
|
|
|
|
newFiles.push(newFile);
|
|
|
|
|
});
|
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
|
|
|
|
|
|
var urlLists = [];
|
|
|
|
|
this.form.fileList.forEach((item) => {
|
|
|
|
|
urlLists.push(item.url);
|
|
|
|
|
});
|
|
|
|
|
this.urlLists = urlLists;
|
|
|
|
|
console.log("2222222222", this.urlLists);
|
|
|
|
|
} else if (response.data.files == null) {
|
|
|
|
|
this.urlLists = null;
|
|
|
|
|
}
|
|
|
|
|
this.checkList = null;
|
|
|
|
|
this.checkList = response.data.checkList;
|
|
|
|
|
if (this.checkList != null) {
|
|
|
|
|
//检查项遍历
|
|
|
|
|
var standards = [];
|
|
|
|
|
this.checkList.forEach((item1) => {
|
|
|
|
|
//检查项名字
|
|
|
|
|
if (item1 != null) {
|
|
|
|
|
item1.standardList.forEach((item) => {
|
|
|
|
|
var standard = {};
|
|
|
|
|
standard.itemName = item1.itemName;
|
|
|
|
|
standard.itemMethod = item1.itemMethod;
|
|
|
|
|
standard.standardName = item.standardName;
|
|
|
|
|
standard.detailUpLimit = item.detailUpLimit;
|
|
|
|
|
standard.detailDownLimit = item.detailDownLimit;
|
|
|
|
|
standard.detailUnit = item.detailUnit;
|
|
|
|
|
standard.detailReach = item.detailReach;
|
|
|
|
|
standard.actualValue = item.actualValue;
|
|
|
|
|
standard.standardType = item.standardType;
|
|
|
|
|
|
|
|
|
|
var standardUrlLists = [];
|
|
|
|
|
item.picturePaths.forEach((item2) => {
|
|
|
|
|
standardUrlLists.push(item2.fileAddress);
|
|
|
|
|
});
|
|
|
|
|
standard.standardUrlLists = standardUrlLists;
|
|
|
|
|
|
|
|
|
|
standards.push(standard);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.checkList = standards;
|
|
|
|
|
console.log("1111111111", this.checkList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
response.data.orderStatus == "审核通过" ||
|
|
|
|
|
response.data.orderStatus == "驳回"
|
|
|
|
@ -1406,6 +1495,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
/** 审核提交按钮 */
|
|
|
|
|
submitCheckForm() {
|
|
|
|
|
if (Array.isArray(this.form.fileList)) {
|
|
|
|
|
this.form.fileList = this.listToString(this.form.fileList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.orderId != null) {
|
|
|
|
|