| 
														
															@@ -1,6 +1,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <template> 
														 | 
														
														 | 
														
															 <template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   <div class="device"> 
														 | 
														
														 | 
														
															   <div class="device"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    <template v-if="!addOrUpdateVisible && !detailVisible && !historyVisible"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <template v-if="!addOrUpdateVisible && !detailVisible && !historyVisible && !damageVisible && !checkVisible"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <!-- 查询、新增操作 --> 
														 | 
														
														 | 
														
															       <!-- 查询、新增操作 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <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="名称/编号"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -228,8 +228,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <!--            <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>--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <el-button v-if="isAuth('prod:equipment:info')" type="text" size="small" @click="historyHandle(scope.row)">历史数据</el-button> 
														 | 
														
														 | 
														
															             <el-button v-if="isAuth('prod:equipment:info')" type="text" size="small" @click="historyHandle(scope.row)">历史数据</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: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="historyHandle(scope.row)">检定</el-button> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            <el-button v-if="isAuth('prod:updateBreakage:update')" type="text" size="small" @click="historyHandle(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> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           </template> 
														 | 
														
														 | 
														
															           </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </el-table-column> 
														 | 
														
														 | 
														
															         </el-table-column> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       </el-table> 
														 | 
														
														 | 
														
															       </el-table> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -248,6 +248,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <detail v-if="detailVisible" ref="detail" @onChose="onChose"></detail> 
														 | 
														
														 | 
														
															     <detail v-if="detailVisible" ref="detail" @onChose="onChose"></detail> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <device-history v-if="historyVisible" ref="history" @onChose="onChose"></device-history> 
														 | 
														
														 | 
														
															     <device-history v-if="historyVisible" ref="history" @onChose="onChose"></device-history> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <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-check v-if="checkVisible" ref="check" @onChose="onChose" @refreshDataList="getDataList"></device-check> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   </div> 
														 | 
														
														 | 
														
															   </div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </template> 
														 | 
														
														 | 
														
															 </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -261,9 +263,13 @@ import {optionsEquipmentState} from '@/utils/enums' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import {isAuth} from '@/utils' 
														 | 
														
														 | 
														
															 import {isAuth} from '@/utils' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import PreviewComponent from '@/views/modules/common/preview-component.vue' 
														 | 
														
														 | 
														
															 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 DeviceCheck from '@/views/modules/device/device-check.vue' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  name: 'temp', 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  name: 'device-list', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   components: { 
														 | 
														
														 | 
														
															   components: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    DeviceCheck, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    DeviceDamage, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     DeviceHistory, 
														 | 
														
														 | 
														
															     DeviceHistory, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     PreviewComponent, 
														 | 
														
														 | 
														
															     PreviewComponent, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     Detail, 
														 | 
														
														 | 
														
															     Detail, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -278,6 +284,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       detailVisible: false, 
														 | 
														
														 | 
														
															       detailVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       historyVisible: false, 
														 | 
														
														 | 
														
															       historyVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       previewVisible: false, 
														 | 
														
														 | 
														
															       previewVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      damageVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      checkVisible: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       dataForm: {}, 
														 | 
														
														 | 
														
															       dataForm: {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       dataList: [], 
														 | 
														
														 | 
														
															       dataList: [], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       pageIndex: 1, 
														 | 
														
														 | 
														
															       pageIndex: 1, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -297,6 +305,8 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.addOrUpdateVisible = false 
														 | 
														
														 | 
														
															       this.addOrUpdateVisible = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.detailVisible = false 
														 | 
														
														 | 
														
															       this.detailVisible = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.historyVisible = false 
														 | 
														
														 | 
														
															       this.historyVisible = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.damageVisible = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.checkVisible = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // 查询 
														 | 
														
														 | 
														
															     // 查询 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     search () { 
														 | 
														
														 | 
														
															     search () { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -369,6 +379,20 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.$refs.history.init(row.codeNumber) 
														 | 
														
														 | 
														
															         this.$refs.history.init(row.codeNumber) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }) 
														 | 
														
														 | 
														
															       }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // 报损 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    damageHandle (row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.damageVisible = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.$nextTick(() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        this.$refs.damage.init(row) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // 检定 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    checkHandle (row) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.checkVisible = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.$nextTick(() => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        this.$refs.check.init(row) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // 删除 
														 | 
														
														 | 
														
															     // 删除 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     deleteHandle (id) { 
														 | 
														
														 | 
														
															     deleteHandle (id) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (!id) return 
														 | 
														
														 | 
														
															       if (!id) return 
														 |