|
|
|
@ -204,6 +204,19 @@
|
|
|
|
|
}}</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<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"
|
|
|
|
@ -308,25 +321,8 @@
|
|
|
|
|
align="center"
|
|
|
|
|
prop="workCostTime"
|
|
|
|
|
width="180"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.workCostTime) }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
></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>
|
|
|
|
|
|
|
|
|
@ -397,15 +393,17 @@
|
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label="维修前故障图片"
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LS"
|
|
|
|
|
:contentStyle="CS_IMG"
|
|
|
|
|
:label-style="LS_BEFORE_IMG"
|
|
|
|
|
>
|
|
|
|
|
<div class="view_picture_body">
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlBeforeLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
:src="item"
|
|
|
|
|
></el-image
|
|
|
|
|
></el-descriptions-item>
|
|
|
|
|
></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
@ -482,16 +480,18 @@
|
|
|
|
|
<el-descriptions
|
|
|
|
|
:column="1"
|
|
|
|
|
border
|
|
|
|
|
:contentStyle="CS"
|
|
|
|
|
:label-style="LS"
|
|
|
|
|
:contentStyle="CS_IMG"
|
|
|
|
|
:label-style="LS_AFTER_IMG"
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item label="维修后图片">
|
|
|
|
|
<div class="view_picture_body">
|
|
|
|
|
<el-image
|
|
|
|
|
v-for="(item, index) in urlAfterLists"
|
|
|
|
|
:key="index"
|
|
|
|
|
:src="item"
|
|
|
|
|
></el-image
|
|
|
|
|
></el-descriptions-item>
|
|
|
|
|
></el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
@ -613,6 +613,18 @@ export default {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "200px",
|
|
|
|
|
},
|
|
|
|
|
//表格样式
|
|
|
|
|
CS_IMG: {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
},
|
|
|
|
|
LS_BEFORE_IMG: {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "190px",
|
|
|
|
|
},
|
|
|
|
|
LS_AFTER_IMG: {
|
|
|
|
|
"text-align": "center",
|
|
|
|
|
width: "280px",
|
|
|
|
|
},
|
|
|
|
|
//检查项表格数据
|
|
|
|
|
detailList: [],
|
|
|
|
|
//维修前照片
|
|
|
|
@ -828,6 +840,8 @@ export default {
|
|
|
|
|
urlBeforeLists.push(item.url);
|
|
|
|
|
});
|
|
|
|
|
this.urlBeforeLists = urlBeforeLists;
|
|
|
|
|
}else{
|
|
|
|
|
this.urlBeforeLists = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//遍历response.data.afterRepairFiles
|
|
|
|
@ -846,6 +860,8 @@ export default {
|
|
|
|
|
urlAfterLists.push(item.url);
|
|
|
|
|
});
|
|
|
|
|
this.urlAfterLists = urlAfterLists;
|
|
|
|
|
}else{
|
|
|
|
|
this.urlAfterList = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//重置
|
|
|
|
@ -891,7 +907,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.detailList = standards;
|
|
|
|
|
console.log("111111111111", this.detailList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//展示
|
|
|
|
@ -972,5 +987,10 @@ export default {
|
|
|
|
|
height: 400px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.view_picture_body {
|
|
|
|
|
height: 300px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|