| | |
| | | :customRow='clickThenSelect' |
| | | @change="handleTableChange"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a v-if="record.standardStatus === 'WAIT_SUBMIT'" @click.stop="handleEdit(record)">编辑</a> |
| | | |
| | | <template v-if="record.standardStatus === 'START'"> |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click.stop="handleUpgrade(record)">升版</a> |
| | | </template> |
| | | <a v-if="record.standardStatus === 'START'" @click.stop="handleUpgrade(record)">升版</a> |
| | | |
| | | <template v-if="record.standardStatus === 'WAIT_SUBMIT'"> |
| | | <a-divider type="vertical"/> |
| | | <a @click.stop="handleEdit(record)">编辑</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="确定发起流程吗?" @confirm="() => startProcess(record.id)"> |
| | | <a @click.stop="event=>event.stopPropagation()">发起流程</a> |
| | | </a-popconfirm> |
| | | |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
| | | <a @click="event=>event.stopPropagation()">删除</a> |
| | | <a @click.stop="event=>event.stopPropagation()">删除</a> |
| | | </a-popconfirm> |
| | | </template> |
| | | </span> |
| | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane tab='保养标准明细项' key="1"> |
| | | <div class="table-operator" style="margin:-16px"> |
| | | <eam-maintenance-standard-detail-list ref="standardDetailRef" :standardId="standardId"/> |
| | | <eam-maintenance-standard-detail-list ref="standardDetailRef" :standardId="standardId" |
| | | :pageSelectionRow="selectionRows[0]"/> |
| | | </div> |
| | | </a-tab-pane> |
| | | |
| | |
| | | <!-- table区域-end --> |
| | | |
| | | <!-- 表单区域 --> |
| | | <eamMaintenanceStandard-modal ref="modalForm" @ok="modalFormOk"></eamMaintenanceStandard-modal> |
| | | <eamMaintenanceStandard-modal ref="modalForm" @ok="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import EamMaintenanceStandardModal from './modules/EamMaintenanceStandardModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EamMaintenanceStandardDetailList from '@views/eam/base/modules/EamMaintenanceStandardDetailList' |
| | | import { deleteAction, templateXlsDownload } from '@api/manage' |
| | | import { deleteAction, getAction, templateXlsDownload } from '@api/manage' |
| | | import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue' |
| | | |
| | | |
| | |
| | | list: '/eam/maintenanceStandard/list', |
| | | delete: '/eam/maintenanceStandard/delete', |
| | | deleteBatch: '/eam/maintenanceStandard/deleteBatch', |
| | | startProcess: '/eam/maintenanceStandard/saveEamMaintenanceStandardProcess', |
| | | exportXlsUrl: 'eam/maintenanceStandard/exportXls', |
| | | inspectionImportExcel: 'eam/maintenanceStandard/inspectionImportExcel', |
| | | weekMaintenanceImportExcel: 'eam/maintenanceStandard/weekMaintenanceImportExcel', |
| | |
| | | inspectionXlsDownloadUrl: '导入模板/点检标准导入模板_v1.0.xlsx', |
| | | weekMaintenanceXlsDownloadUrl: '导入模板/周保标准导入模板_v1.0.xlsx', |
| | | secondMaintenanceXlsDownloadUrl: '导入模板/二保标准导入模板_v1.0.xlsx', |
| | | thirdMaintenanceXlsDownloadUrl: '导入模板/三保标准导入模板_v1.0.xlsx', |
| | | abolish: '/eam/maintenanceStandard/abolish' |
| | | thirdMaintenanceXlsDownloadUrl: '导入模板/三保标准导入模板_v1.0.xlsx' |
| | | }, |
| | | standardId: '-1' |
| | | } |
| | |
| | | templateXlsDownload(url) |
| | | }, |
| | | |
| | | /** |
| | | * 点击发起流程触发 |
| | | * @param id 列表行记录ID |
| | | */ |
| | | startProcess(id) { |
| | | this.loading = true |
| | | const that = this |
| | | getAction(this.url.startProcess, { id }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.loading = false |
| | | }) |
| | | }, |
| | | |
| | | handleUpgrade(record) { |
| | | //升版 |
| | | this.$refs.modalForm.upgrade(record) |
| | |
| | | this.$refs.modalForm.disableSubmit = false |
| | | }, |
| | | |
| | | batchDel() { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | | ids += this.selectedRowKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认删除', |
| | | content: '是否删除选中数据,只有待提交状态的数据才可删除成功?', |
| | | onOk: function() { |
| | | that.loading = true |
| | | getAction(that.url.deleteBatch, { ids }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | that.onClearSelected() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: '消息', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.loading = false |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | searchReset() { |
| | | this.standardId = '-1' |
| | | this.queryParam = {} |