|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="device">
|
|
<div class="device">
|
|
- <template v-if="!addOrUpdateVisible && !detailVisible && !historyVisible && !damageVisible && !checkVisible">
|
|
|
|
|
|
+ <template v-if="!addOrUpdateVisible && !detailVisible && !historyVisible && !damageVisible && !checkVisible && !inspectionVisible">
|
|
<!-- 查询、新增操作 -->
|
|
<!-- 查询、新增操作 -->
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
|
|
<el-form-item label="名称/编号">
|
|
<el-form-item label="名称/编号">
|
|
@@ -242,7 +242,7 @@
|
|
fixed="right"
|
|
fixed="right"
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
- width="190"
|
|
|
|
|
|
+ width="230"
|
|
label="操作">
|
|
label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<!-- <el-button v-if="isAuth('prod:equipment:info')" type="text" size="small" @click="detailHandle(scope.row.id)">查看</el-button>-->
|
|
<!-- <el-button v-if="isAuth('prod:equipment:info')" type="text" size="small" @click="detailHandle(scope.row.id)">查看</el-button>-->
|
|
@@ -250,6 +250,7 @@
|
|
<el-button v-if="isAuth('prod:equipment:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">编辑</el-button>
|
|
<el-button v-if="isAuth('prod:equipment:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">编辑</el-button>
|
|
<el-button v-if="isAuth('prod:updateVerification:update')" type="text" size="small" @click="checkHandle(scope.row)">检定</el-button>
|
|
<el-button v-if="isAuth('prod:updateVerification:update')" type="text" size="small" @click="checkHandle(scope.row)">检定</el-button>
|
|
<el-button v-if="isAuth('prod:updateBreakage:update')" type="text" size="small" @click="damageHandle(scope.row)">报损</el-button>
|
|
<el-button v-if="isAuth('prod:updateBreakage:update')" type="text" size="small" @click="damageHandle(scope.row)">报损</el-button>
|
|
|
|
+ <el-button v-if="isAuth('prod:equipmentCheckRecord:updateCheck')" type="text" size="small" @click="inspectionHandle(scope.row)">点检</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -270,6 +271,7 @@
|
|
<preview-component v-if="previewVisible" ref="preview" @onChose="onChose"></preview-component>
|
|
<preview-component v-if="previewVisible" ref="preview" @onChose="onChose"></preview-component>
|
|
<device-damage v-if="damageVisible" ref="damage" @onChose="onChose" @refreshDataList="getDataList"></device-damage>
|
|
<device-damage v-if="damageVisible" ref="damage" @onChose="onChose" @refreshDataList="getDataList"></device-damage>
|
|
<device-check v-if="checkVisible" ref="check" @onChose="onChose" @refreshDataList="getDataList"></device-check>
|
|
<device-check v-if="checkVisible" ref="check" @onChose="onChose" @refreshDataList="getDataList"></device-check>
|
|
|
|
+ <device-inspection v-if="inspectionVisible" ref="inspection" @onChose="onChose" @refreshDataList="getDataList"></device-inspection>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -285,9 +287,11 @@ import PreviewComponent from '@/views/modules/common/preview-component.vue'
|
|
import DeviceHistory from '@/views/modules/device/device-history.vue'
|
|
import DeviceHistory from '@/views/modules/device/device-history.vue'
|
|
import DeviceDamage from '@/views/modules/device/device-damage.vue'
|
|
import DeviceDamage from '@/views/modules/device/device-damage.vue'
|
|
import DeviceCheck from '@/views/modules/device/device-check.vue'
|
|
import DeviceCheck from '@/views/modules/device/device-check.vue'
|
|
|
|
+import DeviceInspection from '@/views/modules/device/device-inspection.vue'
|
|
export default {
|
|
export default {
|
|
name: 'device-list',
|
|
name: 'device-list',
|
|
components: {
|
|
components: {
|
|
|
|
+ DeviceInspection,
|
|
DeviceCheck,
|
|
DeviceCheck,
|
|
DeviceDamage,
|
|
DeviceDamage,
|
|
DeviceHistory,
|
|
DeviceHistory,
|
|
@@ -306,6 +310,7 @@ export default {
|
|
previewVisible: false,
|
|
previewVisible: false,
|
|
damageVisible: false,
|
|
damageVisible: false,
|
|
checkVisible: false,
|
|
checkVisible: false,
|
|
|
|
+ inspectionVisible: false,
|
|
dataForm: {},
|
|
dataForm: {},
|
|
dataList: [],
|
|
dataList: [],
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
@@ -327,6 +332,7 @@ export default {
|
|
this.historyVisible = false
|
|
this.historyVisible = false
|
|
this.damageVisible = false
|
|
this.damageVisible = false
|
|
this.checkVisible = false
|
|
this.checkVisible = false
|
|
|
|
+ this.inspectionVisible = false
|
|
},
|
|
},
|
|
// 查询
|
|
// 查询
|
|
search () {
|
|
search () {
|
|
@@ -413,6 +419,13 @@ export default {
|
|
this.$refs.check.init(row)
|
|
this.$refs.check.init(row)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 点检
|
|
|
|
+ inspectionHandle (row) {
|
|
|
|
+ this.inspectionVisible = true
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.inspection.init(row)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 删除
|
|
// 删除
|
|
deleteHandle (id) {
|
|
deleteHandle (id) {
|
|
if (!id) return
|
|
if (!id) return
|