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