2024-2-29 设备-委外/报修/维修展示列尾部固定

master
A0010407 9 months ago
parent ab3e9491ec
commit 8622d21629

@ -283,6 +283,7 @@
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="180" width="180"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -366,12 +367,14 @@
:contentStyle="CS" :contentStyle="CS"
:label-style="LSP" :label-style="LSP"
> >
<el-image <div class="view_picture_body">
v-for="(item, index) in urlLists" <el-image
:key="index" v-for="(item, index) in urlLists"
:src="item" :key="index"
></el-image :src="item"
></el-descriptions-item> ></el-image>
</div>
</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">
@ -714,12 +717,14 @@
:label-style="LSP" :label-style="LSP"
> >
<el-descriptions-item label="故障图片"> <el-descriptions-item label="故障图片">
<el-image <div class="view_picture_body">
v-for="(item, index) in urlLists" <el-image
:key="index" v-for="(item, index) in urlLists"
:src="item" :key="index"
></el-image :src="item"
></el-descriptions-item> ></el-image>
</div>
</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">
@ -865,6 +870,8 @@
<el-descriptions <el-descriptions
:column="2" :column="2"
border border
:contentStyle="CS"
:label-style="LS"
v-if="form.repairDestination == '委外维修'" v-if="form.repairDestination == '委外维修'"
> >
<el-descriptions-item label="委外原因">{{ <el-descriptions-item label="委外原因">{{

@ -168,6 +168,12 @@
width="180" width="180"
fixed fixed
/> />
<el-table-column label="委外状态" align="center" prop="workStatus" width="100">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.workStatus == 1"></el-tag>
<el-tag type="danger" v-else-if="scope.row.workStatus == 0">未完成</el-tag>
</template>
</el-table-column>
<el-table-column <el-table-column
label="报修单号" label="报修单号"
align="center" align="center"
@ -185,12 +191,6 @@
{{ scope.row.workType == 1 ? "保养委外" : "维修委外" }} {{ scope.row.workType == 1 ? "保养委外" : "维修委外" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="委外状态" align="center" prop="workStatus" width="100">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.workStatus == 1"></el-tag>
<el-tag type="danger" v-else-if="scope.row.workStatus == 0">未完成</el-tag>
</template>
</el-table-column>
<el-table-column label="设备编码" align="center" prop="equipmentCode" width="100"/> <el-table-column label="设备编码" align="center" prop="equipmentCode" width="100"/>
<el-table-column label="设备名称" align="center" prop="equipmentName" width="100"/> <el-table-column label="设备名称" align="center" prop="equipmentName" width="100"/>
<el-table-column <el-table-column
@ -208,7 +208,8 @@
label="委外单位" label="委外单位"
align="center" align="center"
prop="workOutsourcingUnit" prop="workOutsourcingUnit"
width="200" width="250"
:show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="联系方式" label="联系方式"
@ -220,7 +221,8 @@
label="委外原因" label="委外原因"
align="center" align="center"
prop="workReason" prop="workReason"
width="150" width="250"
:show-overflow-tooltip="true"
/> />
<el-table-column label="委外费用" align="center" prop="workCost" /> <el-table-column label="委外费用" align="center" prop="workCost" />
<el-table-column label="委外用时" align="center" prop="workCostTime" /> <el-table-column label="委外用时" align="center" prop="workCostTime" />
@ -262,6 +264,7 @@
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="150" width="150"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

@ -396,6 +396,7 @@
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="180" width="180"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -1953,7 +1954,6 @@ export default {
} }
//response.data.beforeRepairFiles //response.data.beforeRepairFiles
this.urlBeforeLists = null;
if (response.data.beforeRepairFiles != null) { if (response.data.beforeRepairFiles != null) {
var beforeNewFiles = []; var beforeNewFiles = [];
response.data.beforeRepairFiles.forEach((item) => { response.data.beforeRepairFiles.forEach((item) => {
@ -1970,11 +1970,12 @@ export default {
urlBeforeLists.push(item.url); urlBeforeLists.push(item.url);
}); });
this.urlBeforeLists = urlBeforeLists; this.urlBeforeLists = urlBeforeLists;
}else{
this.urlBeforeLists = null;
} }
//response.data.afterRepairFiles //response.data.afterRepairFiles
this.urlAfterLists = null;
if (response.data.afterRepairFiles != null) { if (response.data.afterRepairFiles != null) {
var afterNewFiles = []; var afterNewFiles = [];
response.data.afterRepairFiles.forEach((item) => { response.data.afterRepairFiles.forEach((item) => {
@ -1990,6 +1991,8 @@ export default {
urlAfterLists.push(item.url); urlAfterLists.push(item.url);
}); });
this.urlAfterLists = urlAfterLists; this.urlAfterLists = urlAfterLists;
}else{
this.urlAfterLists = null;
} }
// //

Loading…
Cancel
Save