| | |
| | | <a v-has="'standard:upgrade'" v-if="record.standardStatus === 'START'" |
| | | @click.stop="handleUpgrade(record)">升版</a> |
| | | |
| | | <a-divider v-has="'standard:add:upgrade'" v-if="record.standardStatus === 'START'" type="vertical"/> |
| | | |
| | | <a v-has="'standard:add:upgrade'" v-if="record.standardStatus === 'START'" @click="handleAddUpgrade(record.id)" >升版导入</a> |
| | | |
| | | <template v-if="record.standardStatus === 'WAIT_SUBMIT'"> |
| | | <a v-has="'standard:edit'" @click.stop="handleEdit(record)">编辑</a> |
| | | |
| | |
| | | </a-popconfirm> |
| | | </template> |
| | | |
| | | <template v-if="record.standardStatus !== 'WAIT_SUBMIT'&&record.standardStatus!=='ABOLISH'&&record.standardStatus!=='START'"> |
| | | <template> |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click.stop="handleDetail(record)">详情</a> |
| | |
| | | |
| | | <!--审批窗口--> |
| | | <maintenance-standard-approval-modal ref="maintenanceStandardApprovalModal" :selectShenpiData="selectedRowData"/> |
| | | |
| | | <!--导入文件--> |
| | | <MaintenanceStandardImportModule ref="fileImportModule" @ok="getTreeDataByApi" /> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue' |
| | | import MaintenanceStandardApprovalModal |
| | | from '../../flowable/workflow/MaintenanceStandard/MaintenanceStandardApprovalModal' |
| | | import MaintenanceStandardImportModule from "@views/base/modules/file/MaintenanceStandardImportModule.vue"; |
| | | |
| | | |
| | | export default { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | MaintenanceStandardImportModule, |
| | | MaintenanceStandardApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | EamMaintenanceStandardModal, |
| | |
| | | { |
| | | title: '统一编码', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode' |
| | | dataIndex: 'equipmentCode', |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName' |
| | | dataIndex: 'equipmentName', |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel' |
| | | dataIndex: 'equipmentModel', |
| | | }, |
| | | { |
| | | title: '规范状态', |
| | | align: 'center', |
| | | dataIndex: 'standardStatus_dictText', |
| | | }, |
| | | { |
| | | title: '保养分类', |
| | |
| | | title: '保养周期', |
| | | align: 'center', |
| | | dataIndex: 'maintenancePeriod', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '保养周期单位', |
| | | align: 'center', |
| | | dataIndex: 'periodUnit', |
| | | width: 120 |
| | | }, |
| | | { |
| | | title: '初始日期', |
| | | align: 'center', |
| | | dataIndex: 'initialDate', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '规范状态', |
| | | align: 'center', |
| | | dataIndex: 'standardStatus_dictText' |
| | | }, |
| | | { |
| | | title: '规范版本', |
| | | align: 'center', |
| | | dataIndex: 'standardVersion', |
| | | width: 100 |
| | | } |
| | | ], |
| | | url: { |
| | |
| | | this.$refs.maintenanceStandardApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | /** |
| | | * 点击升版导入时触发时触发 |
| | | * @param record |
| | | */ |
| | | handleAddUpgrade(id){ |
| | | this.$refs.fileImportModule.upload(id); |
| | | this.$refs.fileImportModule.title="升版导入" |
| | | }, |
| | | |
| | | |
| | | getTreeDataByApi(){ |
| | | this.loadData(); |
| | | }, |
| | | |
| | | batchDel() { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |