|
|
@ -316,9 +316,14 @@
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<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">
|
|
|
|
<el-tabs type="border-card" :key="new Date().getTime()">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-descriptions :column="3" border>
|
|
|
|
<el-descriptions
|
|
|
|
|
|
|
|
:column="3"
|
|
|
|
|
|
|
|
border
|
|
|
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
|
|
|
:label-style="LS"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
form.equipmentCode
|
|
|
|
form.equipmentCode
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
@ -342,7 +347,11 @@
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
<el-descriptions-item
|
|
|
|
|
|
|
|
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"
|
|
|
@ -351,17 +360,17 @@
|
|
|
|
></el-descriptions-item>
|
|
|
|
></el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
<el-tab-pane label="检查项信息" v-if="checkList != null">
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="200">
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="200">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="200">
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="160">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
</el-table-column>
|
|
|
|
</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>
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="50">
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="85">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag
|
|
|
|
<dict-tag
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
@ -369,13 +378,13 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="70">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="45">
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="47">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
@ -605,9 +614,14 @@
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<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">
|
|
|
|
<el-tabs type="border-card" :key="new Date().getTime()">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-descriptions :column="3" border>
|
|
|
|
<el-descriptions
|
|
|
|
|
|
|
|
:column="3"
|
|
|
|
|
|
|
|
border
|
|
|
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
|
|
|
:label-style="LS"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
<el-descriptions-item label="设备编码">{{
|
|
|
|
form.equipmentCode
|
|
|
|
form.equipmentCode
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
@ -645,8 +659,12 @@
|
|
|
|
form.orderDesc
|
|
|
|
form.orderDesc
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions :column="1" border :contentStyle="CS" :label-style="LSP2">
|
|
|
|
<el-descriptions-item label="故障图片">
|
|
|
|
<el-descriptions-item
|
|
|
|
|
|
|
|
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"
|
|
|
@ -655,6 +673,34 @@
|
|
|
|
></el-descriptions-item>
|
|
|
|
></el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
<el-tab-pane label="检查项信息" v-if="checkList != null">
|
|
|
|
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="200">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="160">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="85">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="85">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
|
|
|
|
:value="scope.row.detailReach"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="70">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="47">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
<el-tab-pane label="报修审核结果">
|
|
|
|
<el-tab-pane label="报修审核结果">
|
|
|
|
<el-descriptions
|
|
|
|
<el-descriptions
|
|
|
@ -739,35 +785,6 @@
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
<el-tab-pane label="检查项信息" v-if="checkList != null ">
|
|
|
|
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="200">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="200">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="85">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="65">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
|
|
|
|
:value="scope.row.detailReach"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailDownLimit" label="下限" width="50">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="detailUnit" label="单位" width="47">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@ -917,7 +934,7 @@
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<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">
|
|
|
|
<el-tabs type="border-card" :key="new Date().getTime()">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-tab-pane label="基本信息">
|
|
|
|
<el-descriptions
|
|
|
|
<el-descriptions
|
|
|
|
:column="3"
|
|
|
|
:column="3"
|
|
|
@ -951,7 +968,7 @@
|
|
|
|
<el-descriptions-item
|
|
|
|
<el-descriptions-item
|
|
|
|
label="故障图片"
|
|
|
|
label="故障图片"
|
|
|
|
:contentStyle="CS"
|
|
|
|
:contentStyle="CS"
|
|
|
|
:label-style="LS"
|
|
|
|
:label-style="LSP"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-image
|
|
|
|
<el-image
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
|
v-for="(item, index) in urlLists"
|
|
|
@ -961,17 +978,17 @@
|
|
|
|
></el-descriptions-item>
|
|
|
|
></el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="检查项信息" v-if="checkList != null ">
|
|
|
|
<el-tab-pane label="检查项信息" v-if="checkList != null">
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
<el-table :data="checkList" border style="width: 100%">
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="200">
|
|
|
|
<el-table-column prop="itemName" label="检查项名称" width="200">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="200">
|
|
|
|
<el-table-column prop="itemMethod" label="检查项方法" width="160">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
<el-table-column prop="standardName" label="标准名称" width="180">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="85">
|
|
|
|
<el-table-column prop="standardType" label="标准类型" width="85">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="65">
|
|
|
|
<el-table-column prop="detailReach" label="是否达标" width="85">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag
|
|
|
|
<dict-tag
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
|
:options="dict.type.device_reach_standard"
|
|
|
@ -979,7 +996,7 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="50">
|
|
|
|
<el-table-column prop="actualValue" label="实际值" width="70">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
<el-table-column prop="detailUpLimit" label="上限" width="50">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -1021,22 +1038,17 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
CS: {
|
|
|
|
CS: {
|
|
|
|
"text-align": "center", //文本居中
|
|
|
|
"text-align": "center", //文本居中
|
|
|
|
"min-width": "100px", //最小宽度
|
|
|
|
|
|
|
|
"word-break": "break-all", //过长时自动换行
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
LS: {
|
|
|
|
LS: {
|
|
|
|
color: "#000",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"text-align": "center",
|
|
|
|
"text-align": "center",
|
|
|
|
|
|
|
|
},
|
|
|
|
"font-weight": "600",
|
|
|
|
LSP: {
|
|
|
|
|
|
|
|
"text-align": "center",
|
|
|
|
height: "40px",
|
|
|
|
width: "110px",
|
|
|
|
|
|
|
|
},
|
|
|
|
"min-width": "110px",
|
|
|
|
LSP2: {
|
|
|
|
|
|
|
|
"text-align": "center",
|
|
|
|
"word-break": "keep-all",
|
|
|
|
width: "120px",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
teamOption: [],
|
|
|
|
teamOption: [],
|
|
|
|
//图片存储
|
|
|
|
//图片存储
|
|
|
@ -1319,8 +1331,16 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
this.form.fileList = newFiles;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
this.form.orderSource == "点检" ||
|
|
|
|
|
|
|
|
this.form.orderSource == "巡检"
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
Message.warning("点检、巡检报修信息自动生成,不可修改!");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改故障报修";
|
|
|
|
this.title = "修改故障报修";
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 查看按钮操作 */
|
|
|
|
/** 查看按钮操作 */
|
|
|
@ -1331,10 +1351,10 @@ export default {
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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);
|
|
|
@ -1347,7 +1367,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.urlLists = urlLists;
|
|
|
|
this.urlLists = urlLists;
|
|
|
|
console.log("2222222222", this.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;
|
|
|
|