From a892616db370b2185bc546a11c873df1137cc7e0 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 01 九月 2025 09:44:01 +0800 Subject: [PATCH] 1、设备事故登记表以及三不放过原则分析报表导出及批量打印功能 2、调整首页看板及图表样式 --- src/views/eam/repair/EamReportAccidentsRegisterList.vue | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/views/eam/repair/EamReportAccidentsRegisterList.vue b/src/views/eam/repair/EamReportAccidentsRegisterList.vue index 9677555..a01df26 100644 --- a/src/views/eam/repair/EamReportAccidentsRegisterList.vue +++ b/src/views/eam/repair/EamReportAccidentsRegisterList.vue @@ -26,9 +26,22 @@ </a-form> </div> + <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> + <div class="table-operator"> + <a-button @click="handleBatchPrint" type="primary" icon="monitor" :disabled="selectedRowKeys.length===0">鎵归噺棰勮 + </a-button> + </div> + + <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> + <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ + selectedRowKeys.length }}</a>椤� + <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a> + </div> + <!-- table鍖哄煙-begin --> <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource" - :pagination="ipagination" :loading="loading" :scroll="{x:'max-content'}" @change="handleTableChange"> + :pagination="ipagination" :loading="loading" :scroll="{x:'max-content'}" @change="handleTableChange" + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"> <!--鏄惁鏈夎澶囨搷浣滆瘉--> <template slot="operationCertificate" slot-scope="text"> @@ -89,6 +102,9 @@ <!--瀹℃壒绐楀彛--> <report-accidents-register-approval-modal ref="reportAccidentsRegisterApprovalModal" :selectShenpiData="selectedRowData"/> + + <!--鎵归噺鎵撳嵃绐楀彛--> + <eam-accidents-register-batch-print-modal ref="batchPrintModal"/> </a-card> </template> @@ -99,11 +115,13 @@ import { getAction } from '@/api/manage' import ReportAccidentsRegisterApprovalModal from '../../flowable/workflow/repairOrder/ReportAccidentsRegisterApprovalModal' + import EamAccidentsRegisterBatchPrintModal from './modules/EamAccidentsRegisterBatchPrintModal' export default { name: 'EamReportAccidentsRegisterList', mixins: [JeecgListMixin], components: { + EamAccidentsRegisterBatchPrintModal, ReportAccidentsRegisterApprovalModal, LxSearchEquipmentSelect, EamReportAccidentsRegisterModal @@ -202,19 +220,19 @@ title: '浜嬫晠鐜拌薄', align: 'center', dataIndex: 'accidentPhenomenon', - scopedSlots: {customRender: 'accidentPhenomenon'}, + scopedSlots: { customRender: 'accidentPhenomenon' } }, { title: '閲囧彇鎺柦', align: 'center', dataIndex: 'measure', - scopedSlots: {customRender: 'measure'}, + scopedSlots: { customRender: 'measure' } }, { title: '閫犳垚缁撴灉', align: 'center', dataIndex: 'causingResults', - scopedSlots: {customRender: 'causingResults'}, + scopedSlots: { customRender: 'causingResults' } }, { title: '鎿嶄綔宸�', @@ -409,6 +427,11 @@ }) }, + // 鎵归噺鎵撳嵃 + handleBatchPrint() { + this.$refs.batchPrintModal.handlePreview(this.selectedRowKeys.join()) + }, + /** * 鐐瑰嚮璇︽儏鏃惰Е鍙戞椂瑙﹀彂 * @param record -- Gitblit v1.9.3