| | |
| | | <a-tab-pane tab="点检工单" :key="2"> |
| | | <eam-inspection-order-list ref="tabPaneTableListRef2" :isDisplayOperation="false"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="周报工单" :key="3">周报工单</a-tab-pane> |
| | | <a-tab-pane tab="周保工单" :key="3"> |
| | | <eam-week-maintenance-order-list ref="tabPaneTableListRef3" :isDisplayOperation="false" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="维修工单" :key="4"> |
| | | <eam-repair-order-list ref="tabPaneTableListRef4" :isDisplayOperation="false"/> |
| | | </a-tab-pane> |
| | |
| | | import EamRepairOrderList from '../repair/EamRepairOrderList' |
| | | import EamInspectionOrderList from '../maintenance/EamInspectionOrderList' |
| | | import EamEquipmentAttachmentList from '@views/eam/equipment/EamEquipmentAttachmentList.vue' |
| | | import EamWeekMaintenanceOrderList from '@views/eam/maintenance/EamWeekMaintenanceOrderList.vue' |
| | | |
| | | export default { |
| | | name: 'EamEquipmentList', |
| | |
| | | ResumeDrawer, |
| | | NameplateModal, |
| | | EamEquipmentModal, |
| | | EamEquipmentAttachmentList |
| | | EamEquipmentAttachmentList, |
| | | EamWeekMaintenanceOrderList |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | <a-card :bordered="false"> |
| | | |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | | <div class="table-page-search-wrapper" v-if="isDisplayOperation"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | |
| | | </div> |
| | | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator"> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | |
| | | <a-icon type="delete" /> |
| | | 作废 |
| | | </a-menu-item> |
| | | <a-menu-item key="1" @click="handlerBatchCollect"> |
| | | <a-icon type="delete" /> |
| | | <a-menu-item key="2" @click="handlerBatchCollect"> |
| | | <a-icon type="form" /> |
| | | 领取 |
| | | </a-menu-item> |
| | | </a-menu> |
| | |
| | | |
| | | <!-- table区域-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;" v-if="isDisplayOperation"> |
| | | <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> |
| | |
| | | EamWeekMaintenanceOrderModal, |
| | | WeekMaintenanceApprovalModal |
| | | }, |
| | | props: { |
| | | isDisplayOperation: { |
| | | type: Boolean, |
| | | default: true |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '周保工单管理页面', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | dataIndex: 'remark', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 100, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | // { |
| | | // title: '操作', |
| | | // dataIndex: 'action', |
| | | // align: 'center', |
| | | // fixed: 'right', |
| | | // width: 100, |
| | | // scopedSlots: { customRender: 'action' } |
| | | // } |
| | | ], |
| | | url: { |
| | | list: '/eam/weekMaintenanceOrder/list', |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | if (!this.isDisplayOperation) { |
| | | return |
| | | } |
| | | const operationColumn = { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | this.loadData(1) |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | onMaintenanceDateChange: function(value, dateString) { |