| | |
| | | </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"> |
| | |
| | | <!--审批窗口--> |
| | | <report-accidents-register-approval-modal ref="reportAccidentsRegisterApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <!--批量打印窗口--> |
| | | <eam-accidents-register-batch-print-modal ref="batchPrintModal"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | 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 |
| | |
| | | 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: '操作工', |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 批量打印 |
| | | handleBatchPrint() { |
| | | this.$refs.batchPrintModal.handlePreview(this.selectedRowKeys.join()) |
| | | }, |
| | | |
| | | /** |
| | | * 点击详情时触发时触发 |
| | | * @param record |