From d7ede169aa2d2c89924ebbea9a9ba80f96a288bd Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期一, 19 五月 2025 14:26:00 +0800
Subject: [PATCH] art: 设备管理-设备点检-流程修改为设备管理员确认
---
src/views/eam/repair/EamReportRepairList.vue | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/src/views/eam/repair/EamReportRepairList.vue b/src/views/eam/repair/EamReportRepairList.vue
index 8e41d23..54655ba 100644
--- a/src/views/eam/repair/EamReportRepairList.vue
+++ b/src/views/eam/repair/EamReportRepairList.vue
@@ -61,8 +61,8 @@
<a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
<!--<a-button type="primary" icon="download" @click="handleExportXls('鏁呴殰鎶ヤ慨')">瀵煎嚭</a-button>-->
<!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"-->
- <!--@change="handleImportExcel">-->
- <!--<a-button type="primary" icon="import">瀵煎叆</a-button>-->
+ <!--@change="handleImportExcel">-->
+ <!--<a-button type="primary" icon="import">瀵煎叆</a-button>-->
<!--</a-upload>-->
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
@@ -107,6 +107,10 @@
<a-divider type="vertical"/>
+ <a @click="handleAssign(record)">鎸囨淳</a>
+
+ <a-divider type="vertical"/>
+
<a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleDelete(record.id)">
<a>浣滃簾</a>
</a-popconfirm>
@@ -121,6 +125,8 @@
@ok="modalFormOk"/>
<!-- 鍥剧墖棰勮寮圭獥 -->
<images-preview-modal ref="imagesPreviewModalRef" :imageListUrl="currentImageListUrl"/>
+ <!--鎸囨淳鎶ヤ慨寮圭獥-->
+ <assign-repair-report-modal ref="assignRepairReportModalRef" @ok="modalFormOk"/>
</a-card>
</template>
@@ -132,12 +138,14 @@
import { ajaxGetDictItems, getDictItemsFromCache } from '@/api/api'
import ImagesPreviewModal from '@views/eam/repair/modules/ImagesPreviewModal.vue'
import { getAction } from '@/api/manage'
+ import AssignRepairReportModal from './modules/EamReportRepairList/AssignRepairReportModal'
export default {
name: 'EamReportRepairList',
mixins: [JeecgListMixin],
components: {
+ AssignRepairReportModal,
ImagesPreviewModal,
LxSearchEquipmentSelect,
EamReportRepairModal
@@ -252,7 +260,7 @@
dataIndex: 'action',
align: 'center',
scopedSlots: { customRender: 'action' },
- width: 150
+ width: 200
}
this.columns = [...this.columns, operationColumn]
this.getFaultReasonListByApi()
@@ -307,6 +315,15 @@
this.$refs.imagesPreviewModalRef.visible = true
},
+ /**
+ * 鎸囨淳鎶ヤ慨鍗�
+ * @param record 琛ㄦ牸琛屼俊鎭�
+ */
+ handleAssign(record) {
+ this.$refs.assignRepairReportModalRef.visible = true
+ this.$refs.assignRepairReportModalRef.model = Object.assign({}, { id: record.id })
+ },
+
getCheckboxProps(record) {
return {
props: {
--
Gitblit v1.9.3