|
@@ -13,28 +13,28 @@
|
|
|
<!-- 基础信息详情 -->
|
|
|
<div class="base-info-container">
|
|
|
<a-descriptions title="" layout="vertical" bordered size="middle" :column="2" class="equiment-info">
|
|
|
- <a-descriptions-item label="设备编号" :span="2">
|
|
|
+ <a-descriptions-item label="设备编号">
|
|
|
{{detailData.equipmentcode}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="设备名称" :span="2">
|
|
|
+ <a-descriptions-item label="设备名称">
|
|
|
{{detailData.equipmentname}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="设备分类" :span="2">
|
|
|
+ <a-descriptions-item label="设备分类">
|
|
|
{{detailData.equipmenttreeid_dictText}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="规格型号" :span="2">
|
|
|
+ <a-descriptions-item label="规格型号">
|
|
|
{{detailData.spec}}
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="安装地点" :span="2">
|
|
|
{{detailData.address}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="区域" :span="2">
|
|
|
+ <a-descriptions-item label="区域">
|
|
|
{{detailData.spaceid_dictText}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="周期" :span="2">
|
|
|
+ <a-descriptions-item label="周期">
|
|
|
{{detailData.equipmentCycle}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="周期单位" :span="2">
|
|
|
+ <a-descriptions-item label="周期单位">
|
|
|
{{detailData.cycleUnit_dictText}}
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="出厂编号">
|
|
@@ -61,31 +61,21 @@
|
|
|
</a-descriptions>
|
|
|
</div>
|
|
|
<!-- 巡检详情 -->
|
|
|
- <a-tabs default-active-key="1" @change="callback" class="equipment-cmms-tabs">
|
|
|
- <a-tab-pane key="1" tab="Tab 1">
|
|
|
- <a-table
|
|
|
- ref="table"
|
|
|
- size="middle"
|
|
|
- :scroll="{x:true}"
|
|
|
- bordered
|
|
|
- rowKey="id"
|
|
|
- :columns="columns"
|
|
|
- :dataSource="logData"
|
|
|
- class="equipment-cmms-table">
|
|
|
-
|
|
|
- <span slot="status" slot-scope="text, record">
|
|
|
- <a-tag v-if="record.status === '0'" color="orange">{{ text }}</a-tag>
|
|
|
- <a-tag v-if="record.status === '1' || record.priority === '2'" color="blue">{{ text }}</a-tag>
|
|
|
- <a-tag v-if="record.status === '3'">{{ text }}</a-tag>
|
|
|
- </span>
|
|
|
-
|
|
|
- </a-table>
|
|
|
+ <a-tabs default-active-key="submission" @change="callback" class="equipment-cmms-tabs">
|
|
|
+ <!-- <a-tab-pane key="repair" tab="维修记录">
|
|
|
+ <eq-cmms-repair-log></eq-cmms-repair-log>
|
|
|
+ </a-tab-pane> -->
|
|
|
+ <a-tab-pane key="submission" tab="送检记录">
|
|
|
+ <eq-cmms-submission-log :id="detailData.id"></eq-cmms-submission-log>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="2" tab="Tab 2" force-render>
|
|
|
- Content of Tab Pane 2
|
|
|
+ <!-- <a-tab-pane key="spotcheck" tab="点检记录" force-render>
|
|
|
+ <eq-cmms-spotcheck-log></eq-cmms-spotcheck-log>
|
|
|
+ </a-tab-pane> -->
|
|
|
+ <a-tab-pane key="inspect" tab="巡检记录">
|
|
|
+ <eq-cmms-inspect-log :id="detailData.id"></eq-cmms-inspect-log>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="3" tab="Tab 3">
|
|
|
- Content of Tab Pane 3
|
|
|
+ <a-tab-pane key="upkeep" tab="保养记录">
|
|
|
+ <eq-cmms-upkeep-log :id="detailData.id"></eq-cmms-upkeep-log>
|
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
|
|
|
@@ -97,7 +87,19 @@
|
|
|
|
|
|
<script>
|
|
|
import { httpAction, getAction } from '@/api/manage'
|
|
|
+ import EqCmmsInspectLog from './EqCmmsInspectLog.vue'
|
|
|
+ import EqCmmsRepairLog from './EqCmmsRepairLog.vue'
|
|
|
+ import EqCmmsSubmissionLog from './EqCmmsSubmissionLog.vue'
|
|
|
+ import EqCmmsSpotcheckLog from './EqCmmsSpotcheckLog.vue'
|
|
|
+ import EqCmmsUpkeepLog from './EqCmmsUpkeepLog.vue'
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ EqCmmsInspectLog,
|
|
|
+ EqCmmsRepairLog,
|
|
|
+ EqCmmsSubmissionLog,
|
|
|
+ EqCmmsSpotcheckLog,
|
|
|
+ EqCmmsUpkeepLog
|
|
|
+ },
|
|
|
name: 'RepairManageDetail',
|
|
|
data () {
|
|
|
return {
|
|
@@ -142,6 +144,8 @@
|
|
|
],
|
|
|
}
|
|
|
},
|
|
|
+ created(){
|
|
|
+ },
|
|
|
methods: {
|
|
|
detail (record) {
|
|
|
console.log(record)
|
|
@@ -197,16 +201,16 @@
|
|
|
}
|
|
|
}
|
|
|
.equipment-cmms-tabs{
|
|
|
-
|
|
|
- }
|
|
|
- .equipment-cmms-table{
|
|
|
width: calc(50% - 6px);
|
|
|
height: calc(100vh - 55px - 40px);
|
|
|
- overflow: auto;
|
|
|
background-color: #fff;
|
|
|
padding: 12px;
|
|
|
border-radius: 4px;
|
|
|
margin-left: 6px;
|
|
|
+
|
|
|
+ }
|
|
|
+ .equipment-cmms-table{
|
|
|
+ overflow: auto;
|
|
|
}
|
|
|
}
|
|
|
</style>
|