|
|
|
@ -264,6 +264,19 @@
|
|
|
|
|
width="200"
|
|
|
|
|
fixed
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="维修状态"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="workStatus"
|
|
|
|
|
width="150"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.device_repair_status"
|
|
|
|
|
:value="scope.row.workStatus"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="报修单号"
|
|
|
|
|
align="center"
|
|
|
|
@ -377,25 +390,13 @@
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="维修费用" align="center" prop="workCost" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="维修状态"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="workStatus"
|
|
|
|
|
width="150"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.device_repair_status"
|
|
|
|
|
:value="scope.row.workStatus"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="工厂编码" align="center" prop="factoryCode" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
align="center"
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
width="180"
|
|
|
|
|
fixed="right"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -890,28 +891,32 @@
|
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label="维修前故障图片"
|
|
|
|
|
:contentStyle="CS1"
|
|
|
|
|
:label-style="LSP1"
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LS_WRITE_IMG"
|
|
|
|
|
>
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlBeforeLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
:src="item"
|
|
|
|
|
></el-image
|
|
|
|
|
></el-descriptions-item>
|
|
|
|
|
<div class="view_picture_body">
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlBeforeLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
:src="item"
|
|
|
|
|
></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label="维修后故障图片"
|
|
|
|
|
:contentStyle="CS1"
|
|
|
|
|
:label-style="LSP1"
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LS_WRITE_IMG"
|
|
|
|
|
>
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlAfterLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
:src="item"
|
|
|
|
|
></el-image
|
|
|
|
|
></el-descriptions-item>
|
|
|
|
|
<div class="view_picture_body">
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlAfterLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
:src="item"
|
|
|
|
|
></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
@ -1251,7 +1256,7 @@
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label="维修前故障图片"
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LSP"
|
|
|
|
|
:label-style="LS_VIEW_IMG"
|
|
|
|
|
>
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlBeforeLists"
|
|
|
|
@ -1264,7 +1269,7 @@
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label="维修后故障图片"
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LSP"
|
|
|
|
|
:label-style="LS_VIEW_IMG"
|
|
|
|
|
>
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlAfterLists"
|
|
|
|
@ -1571,15 +1576,15 @@ export default {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "250px",
|
|
|
|
|
},
|
|
|
|
|
//图片表格样式
|
|
|
|
|
LSP: {
|
|
|
|
|
//图片表格样式 查看功能
|
|
|
|
|
LS_VIEW_IMG: {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "225px",
|
|
|
|
|
},
|
|
|
|
|
//图片表格样式
|
|
|
|
|
LSP1: {
|
|
|
|
|
//图片格式样式 填写功能
|
|
|
|
|
LS_WRITE_IMG: {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "250px",
|
|
|
|
|
width: "235px",
|
|
|
|
|
},
|
|
|
|
|
//故障描述
|
|
|
|
|
workFaultDescOption : [],
|
|
|
|
@ -1875,6 +1880,8 @@ export default {
|
|
|
|
|
// 表单重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
beforeRepairFiles: null,
|
|
|
|
|
afterRepairFiles: null,
|
|
|
|
|
workId: null,
|
|
|
|
|
orderId: null,
|
|
|
|
|
orderCode: null,
|
|
|
|
@ -1944,10 +1951,12 @@ export default {
|
|
|
|
|
const workId = row.workId || this.ids;
|
|
|
|
|
getRepairOrder(workId).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
|
|
//转成list
|
|
|
|
|
if (response.data.faultType != null) {
|
|
|
|
|
this.form.faultType = response.data.faultType.split(",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//遍历response.data.beforeRepairFiles
|
|
|
|
|
if (response.data.beforeRepairFiles != null) {
|
|
|
|
|
var beforeNewFiles = [];
|
|
|
|
@ -1965,8 +1974,11 @@ export default {
|
|
|
|
|
urlBeforeLists.push(item.url);
|
|
|
|
|
});
|
|
|
|
|
this.urlBeforeLists = urlBeforeLists;
|
|
|
|
|
}else{
|
|
|
|
|
this.urlBeforeLists = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//遍历response.data.afterRepairFiles
|
|
|
|
|
if (response.data.afterRepairFiles != null) {
|
|
|
|
|
var afterNewFiles = [];
|
|
|
|
@ -1983,6 +1995,8 @@ export default {
|
|
|
|
|
urlAfterLists.push(item.url);
|
|
|
|
|
});
|
|
|
|
|
this.urlAfterLists = urlAfterLists;
|
|
|
|
|
}else{
|
|
|
|
|
this.urlAfterLists = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//重置
|
|
|
|
@ -2040,7 +2054,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.detailList = standards;
|
|
|
|
|
console.log("111111111111", this.detailList);
|
|
|
|
|
}
|
|
|
|
|
if (this.form.workStatus == "1") {
|
|
|
|
|
this.queryWrite = true;
|
|
|
|
@ -2279,6 +2292,11 @@ export default {
|
|
|
|
|
height: 400px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.view_picture_body {
|
|
|
|
|
height: 300px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|