|
|
|
@ -330,71 +330,107 @@
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<el-drawer
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="保养详情"
|
|
|
|
|
:visible.sync="workDetail"
|
|
|
|
|
size="700px">
|
|
|
|
|
|
|
|
|
|
<div class="my-margin-lr">
|
|
|
|
|
<el-descriptions title="保养信息">
|
|
|
|
|
<el-descriptions-item label="计划编码">{{workVO.order.planCode}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="计划名称">{{workVO.order.planName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="循环周期">{{workVO.order.planLoop}}{{workVO.order.planLoopType}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="工单编码">{{workVO.order.orderCode}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="车间编码">{{workVO.order.planWorkshop}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养执行开始时间">{{workVO.order.planLoopStart}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养执行结束时间">{{workVO.order.planLoopEnd}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="实际开始时间">{{workVO.order.orderStart}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="实际结束时间">{{workVO.order.orderEnd}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养人">{{workVO.order.planPerson}}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-descriptions title="设备信息">
|
|
|
|
|
<el-descriptions-item label="设备编码">{{workVO.equ.equipmentCode}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备名称">{{workVO.equ.equipmentName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备位置">{{workVO.equ.equipmentLocation}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备类型编码">{{workVO.equ.equipmentTypeCode}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备类型名称">{{workVO.equ.equipmentTypeName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="所属工作中心编码">{{workVO.equ.workshopCode}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="所属工作中心名称">{{workVO.equ.workshopName}}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-descriptions v-if="workVO.spareList.length > 0" title="备件信息"/>
|
|
|
|
|
<div v-for="(spare,index) in workVO.spareList" :key="index">
|
|
|
|
|
<el-descriptions title="">
|
|
|
|
|
<el-descriptions-item label="备件编码">{{spare.materialCode}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="备件名称">{{spare.materialDesc}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="申领数量">{{spare.applyNum}}</el-descriptions-item>
|
|
|
|
|
width="900px"
|
|
|
|
|
>
|
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
|
<el-tab-pane label="保养信息">
|
|
|
|
|
<el-descriptions title="" border :column="2">
|
|
|
|
|
<el-descriptions-item label="计划编码">{{ workVO.order.planCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="计划名称">{{ workVO.order.planName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="循环周期">{{ workVO.order.planLoop }}{{ workVO.order.planLoopType }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="工单编码">{{ workVO.order.orderCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="车间编码">{{ workVO.order.planWorkshop }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养执行开始时间">{{ workVO.order.planLoopStart }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养执行结束时间">{{ workVO.order.planLoopEnd }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="实际开始时间">{{ workVO.order.orderStart }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="实际结束时间">{{ workVO.order.orderEnd }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养人">{{ workVO.order.planPerson }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="报修单号">{{ workVO.order.repairCode }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-descriptions v-if="workVO.detailList.length > 0" title="检查项信息"/>
|
|
|
|
|
<div v-for="(detail,index) in workVO.detailList" :key="index">
|
|
|
|
|
<el-divider content-position="right">{{detail.itemName}}</el-divider>
|
|
|
|
|
<div v-for="(standard,index) in detail.standardList" :key="index">
|
|
|
|
|
<el-descriptions title="">
|
|
|
|
|
<el-descriptions-item label="标准名称">{{standard.standardName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="标准类型">{{standard.standardTypeName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="上限">{{standard.detailUpLimit}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="下限">{{standard.detailDownLimit}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="单位">{{standard.detailUnit}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="实际值">{{standard.actualValue}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'qualitative' " label="是否达标">{{standard.detailReach}}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="设备信息">
|
|
|
|
|
<el-descriptions class="my-margin-top" title="" :column="2" border>
|
|
|
|
|
<el-descriptions-item label="设备编码">{{ workVO.equ.equipmentCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备名称">{{ workVO.equ.equipmentName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备位置">{{ workVO.equ.equipmentLocation }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备类型编码">{{ workVO.equ.equipmentTypeCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备类型名称">{{ workVO.equ.equipmentTypeName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="所属工作中心编码">{{ workVO.equ.workshopCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="所属工作中心名称">{{ workVO.equ.workshopName }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="备件信息">
|
|
|
|
|
<el-table
|
|
|
|
|
:data="workVO.spareList"
|
|
|
|
|
border
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="materialCode"
|
|
|
|
|
label="备件编码"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="materialDesc"
|
|
|
|
|
label="备件名称"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="applyNum"
|
|
|
|
|
label="申领数量">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
|
<div v-for="(detail,index) in workVO.detailList" :key="index">
|
|
|
|
|
<el-divider content-position="left">{{ detail.itemName }}</el-divider>
|
|
|
|
|
<el-table
|
|
|
|
|
:data="detail.standardList"
|
|
|
|
|
border
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="standardName"
|
|
|
|
|
label="标准名称"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="standardType"
|
|
|
|
|
label="标准类型"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailReach"
|
|
|
|
|
label="是否达标">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="actualValue"
|
|
|
|
|
label="实际值">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailUpLimit"
|
|
|
|
|
label="上限">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailDownLimit"
|
|
|
|
|
label="下限">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailUnit"
|
|
|
|
|
label="单位">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="workDetail = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="workDetail = false">确 定</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-drawer>
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改保养记录对话框 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
@ -637,7 +673,10 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
.my-margin-lr{
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
margin-right: 20px;
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
}
|
|
|
|
|
.my-margin-top{
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|