|
|
@@ -6,6 +6,10 @@
|
|
6
|
6
|
<el-form-item label="设备名称" prop="equipmentName">
|
|
7
|
7
|
<el-input v-model="queryParams.equipmentName" placeholder="请输入设备名称" clearable style="width: 200px" />
|
|
8
|
8
|
</el-form-item>
|
|
|
9
|
+
|
|
|
10
|
+ <el-form-item label="设备序列号" prop="equipmentSerialNumber">
|
|
|
11
|
+ <el-input v-model="queryParams.equipmentSerialNumber" placeholder="请输入设备序列号" clearable style="width: 200px" />
|
|
|
12
|
+ </el-form-item>
|
|
9
|
13
|
<el-form-item label="使用状态" prop="usageStatus">
|
|
10
|
14
|
<el-select v-model="queryParams.usageStatus" placeholder="请选择使用状态" clearable style="width: 200px">
|
|
11
|
15
|
<el-option v-for="dict in equipment_usage_status" :key="dict.value" :label="dict.label"
|
|
|
@@ -53,11 +57,13 @@
|
|
53
|
57
|
</template>
|
|
54
|
58
|
</el-table-column>
|
|
55
|
59
|
<el-table-column label="设备名称" prop="equipmentName" align="center" min-width="150" show-overflow-tooltip />
|
|
|
60
|
+ <el-table-column label="设备种类" prop="equipmentType" align="center" min-width="120" show-overflow-tooltip />
|
|
56
|
61
|
<el-table-column label="设备序列号" prop="equipmentSerialNumber" align="center" min-width="150"
|
|
57
|
62
|
show-overflow-tooltip />
|
|
58
|
63
|
<el-table-column label="安装位置" prop="installationLocation" align="center" min-width="180" show-overflow-tooltip>
|
|
59
|
64
|
<template #default="scope">
|
|
60
|
|
- <span>{{ scope.row.terminlName }}{{scope.row.terminlName?'/':''}}{{ scope.row.regionalName }}{{scope.row.regionalName?'/':''}}{{ scope.row.channelName }}</span>
|
|
|
65
|
+ <span>{{ scope.row.terminlName }}{{ scope.row.terminlName ? '/' : '' }}{{ scope.row.regionalName
|
|
|
66
|
+ }}{{ scope.row.regionalName ? '/' : '' }}{{ scope.row.channelName }}</span>
|
|
61
|
67
|
</template>
|
|
62
|
68
|
</el-table-column>
|
|
63
|
69
|
<el-table-column label="使用状态" prop="usageStatus" align="center" min-width="100">
|
|
|
@@ -72,8 +78,8 @@
|
|
72
|
78
|
show-overflow-tooltip />
|
|
73
|
79
|
<el-table-column label="定/自检小组组员2" prop="inspectionTeamMember2Name" align="center" min-width="120"
|
|
74
|
80
|
show-overflow-tooltip />
|
|
75
|
|
- <el-table-column label="最近定检/自检日期" prop="inspectionSelfCheckDate" align="center" min-width="120" />
|
|
76
|
|
- <el-table-column label="操作" align="center" width="220" fixed="right">
|
|
|
81
|
+ <el-table-column label="最近定检/自检到期日期" prop="nextInspectionDueDate" align="center" min-width="120" />
|
|
|
82
|
+ <el-table-column label="操作" align="center" width="220" fixed="right" class-name="operation-column">
|
|
77
|
83
|
<template #default="scope">
|
|
78
|
84
|
<el-button link type="primary" icon="View" @click="handleDetail(scope.row)">详情</el-button>
|
|
79
|
85
|
<el-button link type="primary" icon="Edit" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
@@ -87,7 +93,8 @@
|
|
87
|
93
|
v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
88
|
94
|
|
|
89
|
95
|
<!-- 编辑/详情弹窗 -->
|
|
90
|
|
- <el-dialog :title="dialog.title" v-model="dialog.visible" width="1000px" :close-on-click-modal="false">
|
|
|
96
|
+ <el-dialog :title="dialog.title" v-model="dialog.visible" width="1000px" :close-on-click-modal="false"
|
|
|
97
|
+ destroy-on-close>
|
|
91
|
98
|
<el-form :model="form" ref="formRef" :rules="rules" label-width="160px">
|
|
92
|
99
|
<el-row :gutter="20">
|
|
93
|
100
|
<el-col :span="12">
|
|
|
@@ -311,6 +318,8 @@ const queryParams = reactive({
|
|
311
|
318
|
pageNum: 1,
|
|
312
|
319
|
pageSize: 10,
|
|
313
|
320
|
equipmentName: '',
|
|
|
321
|
+
|
|
|
322
|
+ equipmentSerialNumber: '',
|
|
314
|
323
|
usageStatus: '',
|
|
315
|
324
|
inspectionSelfCheckDate: '',
|
|
316
|
325
|
inspectionTeamUserName: ''
|
|
|
@@ -338,9 +347,9 @@ const form = reactive({
|
|
338
|
347
|
inspectionSelfCheckDate: '',
|
|
339
|
348
|
inspectionSelfCheckCycle: 0,
|
|
340
|
349
|
nextInspectionDueDate: '',
|
|
341
|
|
- inspectionTeamLeaderId: '',
|
|
342
|
|
- inspectionTeamMember1Id: '',
|
|
343
|
|
- inspectionTeamMember2Id: '',
|
|
|
350
|
+ inspectionTeamLeaderId: null,
|
|
|
351
|
+ inspectionTeamMember1Id: null,
|
|
|
352
|
+ inspectionTeamMember2Id: null,
|
|
344
|
353
|
initialAcceptanceStatus: '',
|
|
345
|
354
|
baseAttachmentList: [],
|
|
346
|
355
|
equipmentInspectionRecordList: []
|
|
|
@@ -421,9 +430,9 @@ function handleEdit(row) {
|
|
421
|
430
|
regionalCode: response.data.regionalCode,
|
|
422
|
431
|
channelCode: response.data.channelCode
|
|
423
|
432
|
}
|
|
424
|
|
- form.inspectionTeamLeaderId = form.inspectionTeamLeaderId || ''
|
|
425
|
|
- form.inspectionTeamMember1Id = form.inspectionTeamMember1Id || ''
|
|
426
|
|
- form.inspectionTeamMember2Id = form.inspectionTeamMember2Id || ''
|
|
|
433
|
+ form.inspectionTeamLeaderId = form.inspectionTeamLeaderId || null
|
|
|
434
|
+ form.inspectionTeamMember1Id = form.inspectionTeamMember1Id || null;
|
|
|
435
|
+ form.inspectionTeamMember2Id = form.inspectionTeamMember2Id || null;
|
|
427
|
436
|
formDisabled.value = false
|
|
428
|
437
|
dialog.title = '编辑设备'
|
|
429
|
438
|
dialog.visible = true
|
|
|
@@ -449,9 +458,9 @@ function handleDetail(row) {
|
|
449
|
458
|
regionalCode: response.data.regionalCode,
|
|
450
|
459
|
channelCode: response.data.channelCode
|
|
451
|
460
|
}
|
|
452
|
|
- form.inspectionTeamLeaderId = form.inspectionTeamLeaderId || ''
|
|
453
|
|
- form.inspectionTeamMember1Id = form.inspectionTeamMember1Id || ''
|
|
454
|
|
- form.inspectionTeamMember2Id = form.inspectionTeamMember2Id || ''
|
|
|
461
|
+ form.inspectionTeamLeaderId = form.inspectionTeamLeaderId || null
|
|
|
462
|
+ form.inspectionTeamMember1Id = form.inspectionTeamMember1Id || null;
|
|
|
463
|
+ form.inspectionTeamMember2Id = form.inspectionTeamMember2Id || null;
|
|
455
|
464
|
formDisabled.value = true
|
|
456
|
465
|
dialog.title = '设备详情'
|
|
457
|
466
|
dialog.visible = true
|
|
|
@@ -523,9 +532,9 @@ function resetForm() {
|
|
523
|
532
|
inspectionSelfCheckDate: '',
|
|
524
|
533
|
inspectionSelfCheckCycle: 0,
|
|
525
|
534
|
nextInspectionDueDate: '',
|
|
526
|
|
- inspectionTeamLeaderId: '',
|
|
527
|
|
- inspectionTeamMember1Id: '',
|
|
528
|
|
- inspectionTeamMember2Id: '',
|
|
|
535
|
+ inspectionTeamLeaderId: null,
|
|
|
536
|
+ inspectionTeamMember1Id: null,
|
|
|
537
|
+ inspectionTeamMember2Id: null,
|
|
529
|
538
|
initialAcceptanceStatus: '',
|
|
530
|
539
|
baseAttachmentList: [],
|
|
531
|
540
|
equipmentInspectionRecordList: []
|
|
|
@@ -669,4 +678,9 @@ onMounted(() => {
|
|
669
|
678
|
:deep(.row-yellow) {
|
|
670
|
679
|
background-color: rgba(255, 206, 86, 0.3) !important;
|
|
671
|
680
|
}
|
|
|
681
|
+
|
|
|
682
|
+:deep(.operation-column) {
|
|
|
683
|
+ background-color: transparent !important;
|
|
|
684
|
+
|
|
|
685
|
+}
|
|
672
|
686
|
</style>
|