| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <template v-if="record.registerStatus=='PENDING_SUBMIT'"> |
| | | <template v-if="record.registerStatus==='PENDING_SUBMIT'"> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | <a-divider type="vertical"/> |
| | | <a-popconfirm title="确定提交吗?" @confirm="() => handleSubmit(record.id)"> |
| | |
| | | |
| | | <!-- 表单区域 --> |
| | | <eamReportAccidentsRegister-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <!--审批窗口--> |
| | | <report-accidents-register-approval-modal ref="reportAccidentsRegisterApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import EamReportAccidentsRegisterModal from './modules/EamReportAccidentsRegisterModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | import { getAction } from '@/api/manage' |
| | | import ReportAccidentsRegisterApprovalModal |
| | | from '../../flowable/workflow/repairOrder/ReportAccidentsRegisterApprovalModal' |
| | | |
| | | export default { |
| | | name: 'EamReportAccidentsRegisterList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | ReportAccidentsRegisterApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | EamReportAccidentsRegisterModal |
| | | }, |
| | | props: { |
| | | isDisplayOperation: { |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | propsQueryParam: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '设备事故登记表管理页面', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | align: 'center', |
| | | dataIndex: 'registerStatus_dictText', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '废品件号', |
| | | align: 'center', |
| | | dataIndex: 'scrapPartNumber' |
| | | }, |
| | | { |
| | | title: '废品件数', |
| | | align: 'center', |
| | | dataIndex: 'scrapPartQuantity' |
| | | }, |
| | | { |
| | | title: '废品价值', |
| | | align: 'center', |
| | | dataIndex: 'scrapPartValue' |
| | | }, |
| | | { |
| | | title: '是否有设备操作证', |
| | |
| | | { |
| | | title: '操作工', |
| | | align: 'center', |
| | | dataIndex: 'confirmer' |
| | | dataIndex: 'confirmer_dictText' |
| | | }, |
| | | { |
| | | title: '操作工确认时间', |
| | |
| | | { |
| | | title: '区长', |
| | | align: 'center', |
| | | dataIndex: 'district' |
| | | dataIndex: 'district_dictText' |
| | | }, |
| | | { |
| | | title: '区长确认时间', |
| | |
| | | { |
| | | title: '中心主任', |
| | | align: 'center', |
| | | dataIndex: 'centerDirector' |
| | | dataIndex: 'centerDirector_dictText' |
| | | }, |
| | | { |
| | | title: '中心主任确认时间', |
| | |
| | | { |
| | | title: '设备状态', |
| | | align: 'center', |
| | | dataIndex: 'equipmentStatus' |
| | | dataIndex: 'equipmentStatus_dictText' |
| | | }, |
| | | { |
| | | title: '原因分析', |
| | |
| | | { |
| | | title: '检查结果', |
| | | align: 'center', |
| | | dataIndex: 'inspectionResults' |
| | | dataIndex: 'inspectionResults_dictText' |
| | | }, |
| | | { |
| | | title: '采取措施', |
| | |
| | | { |
| | | title: '维修确认', |
| | | align: 'center', |
| | | dataIndex: 'repairConfirm' |
| | | dataIndex: 'repairConfirm_dictText' |
| | | }, |
| | | { |
| | | title: '维修确认时间', |
| | |
| | | { |
| | | title: '维修组长确认', |
| | | align: 'center', |
| | | dataIndex: 'repairGroupLeader' |
| | | dataIndex: 'repairGroupLeader_dictText' |
| | | }, |
| | | { |
| | | title: '维修组长确认时间', |
| | |
| | | { |
| | | title: '维修组长确认', |
| | | align: 'center', |
| | | dataIndex: 'repairDistrict' |
| | | dataIndex: 'repairDistrict_dictText' |
| | | }, |
| | | { |
| | | title: '维修组长确认时间', |
| | |
| | | dataIndex: 'repairDistrictTime' |
| | | }, |
| | | { |
| | | title: '原因分析核对;同意、不同意', |
| | | title: '原因分析核对', |
| | | align: 'center', |
| | | dataIndex: 'checkAgree', |
| | | scopedSlots: { customRender: 'checkAgree' } |
| | |
| | | { |
| | | title: '技术负责人', |
| | | align: 'center', |
| | | dataIndex: 'technicalDirector' |
| | | dataIndex: 'technicalDirector_dictText' |
| | | }, |
| | | { |
| | | title: '技术负责人确认时间', |
| | |
| | | { |
| | | title: '技术主管室级领导', |
| | | align: 'center', |
| | | dataIndex: 'technicalDirectorLeader' |
| | | dataIndex: 'technicalDirectorLeader_dictText' |
| | | }, |
| | | { |
| | | title: '技术主管室级领导确认时间', |
| | |
| | | { |
| | | title: '主管部级领导', |
| | | align: 'center', |
| | | dataIndex: 'technicalDirectorPart' |
| | | dataIndex: 'technicalDirectorPart_dictText' |
| | | }, |
| | | { |
| | | title: '主管部级领导确认时间', |
| | | align: 'center', |
| | | dataIndex: 'technicalDirectorPartTime' |
| | | } |
| | | ], |
| | | selectedRowData: {}, |
| | | url: { |
| | | list: '/eam/eamReportAccidentsRegister/list', |
| | | delete: '/eam/eamReportAccidentsRegister/delete', |
| | | deleteBatch: '/eam/eamReportAccidentsRegister/deleteBatch', |
| | | exportXlsUrl: 'eam/eamReportAccidentsRegister/exportXls', |
| | | importExcelUrl: 'eam/eamReportAccidentsRegister/importExcel' |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | if (!this.isDisplayOperation) this.queryParam = Object.assign({}, this.propsQueryParam) |
| | | else { |
| | | const operationColumn = { |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | ], |
| | | selectedRowData: {}, |
| | | url: { |
| | | list: '/eam/eamReportAccidentsRegister/list', |
| | | submit: '/eam/eamReportAccidentsRegister/submit', |
| | | delete: '/eam/eamReportAccidentsRegister/delete' |
| | | } |
| | | this.loadData(1) |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * 点击填报时触发 |
| | | * 点击提交时触发 |
| | | * @param id |
| | | */ |
| | | handleSubmit(id) { |
| | | this.loading = true |
| | | getAction(this.url.submit, { id }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | this.loadData() |
| | | } else { |
| | | this.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * 点击详情时触发时触发 |
| | | * @param record |
| | | */ |
| | | handleFillIn(record) { |
| | | this.$refs.modalForm.title = '填报' |
| | | this.$refs.modalForm.handleFillIn(record) |
| | | handleDetail(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.reportAccidentsRegisterApprovalModal.title = '详情' |
| | | this.$refs.reportAccidentsRegisterApprovalModal.disableSubmit = true |
| | | this.$refs.reportAccidentsRegisterApprovalModal.visible = true |
| | | this.$refs.reportAccidentsRegisterApprovalModal.handleDetail(record) |
| | | } |
| | | } |
| | | } |