|
|
|
@ -312,11 +312,12 @@
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="title"
|
|
|
|
|
:visible.sync="openCheck"
|
|
|
|
|
width="1000px"
|
|
|
|
|
width="1100px"
|
|
|
|
|
append-to-body
|
|
|
|
|
v-if="openCheck"
|
|
|
|
|
>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
<el-tabs type="border-card" :key="new Date().getTime()">
|
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
|
<el-descriptions
|
|
|
|
|
:column="3"
|
|
|
|
@ -386,6 +387,26 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="47">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="picturePath" label="图片">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-popover placement="right" width="300" trigger="hover">
|
|
|
|
|
<div class="standardUrl_body">
|
|
|
|
|
<div
|
|
|
|
|
v-for="(url, index) in scope.row.standardUrlLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<el-image :src="url"></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="reference"
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-picture"
|
|
|
|
|
circle
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="审核">
|
|
|
|
@ -610,8 +631,9 @@
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="title"
|
|
|
|
|
:visible.sync="viewCheck"
|
|
|
|
|
width="1000px"
|
|
|
|
|
width="1100px"
|
|
|
|
|
append-to-body
|
|
|
|
|
v-if="viewCheck"
|
|
|
|
|
>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
<el-tabs type="border-card" :key="new Date().getTime()">
|
|
|
|
@ -663,13 +685,9 @@
|
|
|
|
|
:column="1"
|
|
|
|
|
border
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LSP2"
|
|
|
|
|
:label-style="LSP"
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label="故障图片"
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LSP"
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
|
:key="index"
|
|
|
|
@ -704,15 +722,40 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="47">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="picturePath" label="图片">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-popover placement="right" width="300" trigger="hover">
|
|
|
|
|
<div class="standardUrl_body">
|
|
|
|
|
<div
|
|
|
|
|
v-for="(url, index) in scope.row.standardUrlLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<el-image :src="url"></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="reference"
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-picture"
|
|
|
|
|
circle
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
<el-tab-pane label="报修审核结果">
|
|
|
|
|
<el-descriptions
|
|
|
|
|
:column="2"
|
|
|
|
|
:column="3"
|
|
|
|
|
border
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LS"
|
|
|
|
|
v-if="form.repairDestination == '计划性维修'"
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item label="审核结果">{{
|
|
|
|
|
form.orderStatus
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="报修去向">{{
|
|
|
|
|
form.repairDestination
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
@ -935,8 +978,9 @@
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="title"
|
|
|
|
|
:visible.sync="openView"
|
|
|
|
|
width="1000px"
|
|
|
|
|
width="1100px"
|
|
|
|
|
append-to-body
|
|
|
|
|
v-if="openView"
|
|
|
|
|
>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
<el-tabs type="border-card" :key="new Date().getTime()">
|
|
|
|
@ -1009,6 +1053,26 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="47">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="picturePath" label="图片">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-popover placement="right" width="300" trigger="hover">
|
|
|
|
|
<div class="standardUrl_body">
|
|
|
|
|
<div
|
|
|
|
|
v-for="(url, index) in scope.row.standardUrlLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<el-image :src="url"></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-button
|
|
|
|
|
slot="reference"
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-picture"
|
|
|
|
|
circle
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
@ -1046,6 +1110,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
LS: {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "110px",
|
|
|
|
|
},
|
|
|
|
|
LSP: {
|
|
|
|
|
"text-align": "center",
|
|
|
|
@ -1270,7 +1335,9 @@ export default {
|
|
|
|
|
// 表单重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
fileList: "",
|
|
|
|
|
//报修图片
|
|
|
|
|
fileList: null,
|
|
|
|
|
//
|
|
|
|
|
orderId: null,
|
|
|
|
|
orderCode: null,
|
|
|
|
|
equipmentCode: null,
|
|
|
|
@ -1354,27 +1421,28 @@ export default {
|
|
|
|
|
const orderId = row.orderId || this.ids;
|
|
|
|
|
getFaultReport(orderId).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
//报修故障照片上传
|
|
|
|
|
if (response.data.files != null) {
|
|
|
|
|
var newFiles = [];
|
|
|
|
|
console.log("1", response.data.files);
|
|
|
|
|
response.data.files.forEach((item) => {
|
|
|
|
|
var newFile = {};
|
|
|
|
|
console.log("2", response.data.files);
|
|
|
|
|
newFile.name = item.fileName;
|
|
|
|
|
newFile.url = item.fileAddress;
|
|
|
|
|
newFiles.push(newFile);
|
|
|
|
|
});
|
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
|
|
|
|
|
|
//报修故障照片
|
|
|
|
|
this.urlLists = null;
|
|
|
|
|
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) {
|
|
|
|
@ -1394,20 +1462,21 @@ 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);
|
|
|
|
|
if (item.picturePaths != null) {
|
|
|
|
|
item.picturePaths.forEach((item2) => {
|
|
|
|
|
standardUrlLists.push(item2.fileAddress);
|
|
|
|
|
});
|
|
|
|
|
standard.standardUrlLists = standardUrlLists;
|
|
|
|
|
standards.push(standard);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.checkList = standards;
|
|
|
|
|
console.log("1111111111", this.checkList);
|
|
|
|
|
console.log(this.checkList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.openView = true;
|
|
|
|
@ -1424,6 +1493,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
getFaultReport(orderId).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
//报修故障照片上传
|
|
|
|
|
if (response.data.files != null) {
|
|
|
|
|
var newFiles = [];
|
|
|
|
|
response.data.files.forEach((item) => {
|
|
|
|
@ -1433,16 +1503,18 @@ export default {
|
|
|
|
|
newFiles.push(newFile);
|
|
|
|
|
});
|
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
|
|
|
|
|
|
//报修故障照片
|
|
|
|
|
this.urlLists = null;
|
|
|
|
|
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) {
|
|
|
|
@ -1462,20 +1534,21 @@ 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);
|
|
|
|
|
if (item.picturePaths != null) {
|
|
|
|
|
item.picturePaths.forEach((item2) => {
|
|
|
|
|
standardUrlLists.push(item2.fileAddress);
|
|
|
|
|
});
|
|
|
|
|
standard.standardUrlLists = standardUrlLists;
|
|
|
|
|
standards.push(standard);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.checkList = standards;
|
|
|
|
|
console.log("1111111111", this.checkList);
|
|
|
|
|
console.log(this.checkList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
@ -1570,3 +1643,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.standardUrl_body {
|
|
|
|
|
height: 400px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|