| | |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | :scroll="{x:'max-content'}" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <template v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE' && isShowAuth('eam:secondMaintenance:edit')"> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | <template v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE'"> |
| | | <a @click="handleEdit(record)" v-if="isShowAuth('eam:thirdMaintenance:edit')">编辑</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:thirdMaintenance:edit')" /> |
| | | |
| | | <a-popconfirm title="确定领取吗?" @confirm="() => handlerCollect(record.id)"> |
| | | <a-popconfirm title="确定领取吗?" @confirm="() => handlerCollect(record.id)" v-if="isShowAuth('eam:thirdMaintenance:collect')"> |
| | | <a>领取</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:thirdMaintenance:collect')" /> |
| | | |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a-menu-item v-if="isShowAuth('eam:thirdMaintenance:abolish')"> |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handlerAbolish(record.id)"> |
| | | <a>作废</a> |
| | | </a-popconfirm> |
| | |
| | | |
| | | <!-- 表单区域 --> |
| | | <eamThirdMaintenanceOrder-modal ref="modalForm" @ok="modalFormOk"></eamThirdMaintenanceOrder-modal> |
| | | |
| | | <third-maintenance-approval-modal ref="thirdMaintenanceApprovalModal" :selectShenpiData="selectThirdMaintenanceData" /> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue' |
| | | import { deleteAction, getAction } from '@api/manage' |
| | | import ThirdMaintenanceApprovalModal from '@views/flowable/workflow/thirdMaintenance/ThirdMaintenanceApprovalModal.vue' |
| | | |
| | | export default { |
| | | name: 'EamThirdMaintenanceOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | LxSearchEquipmentSelect, |
| | | EamThirdMaintenanceOrderModal |
| | | EamThirdMaintenanceOrderModal, |
| | | ThirdMaintenanceApprovalModal |
| | | }, |
| | | props: { |
| | | isDisplayOperation: { |
| | |
| | | data() { |
| | | return { |
| | | description: '设备三级保养管理页面', |
| | | disableMixinCreated: true, |
| | | selectThirdMaintenanceData: {}, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | dataIndex: 'operator_dictText' |
| | | }, |
| | | { |
| | | title: '精度检验人', |
| | | align: 'center', |
| | | dataIndex: 'precisionChecker_dictText' |
| | | }, |
| | | { |
| | | title: '精度检验时间', |
| | | align: 'center', |
| | | dataIndex: 'precisionCheckTime' |
| | | }, |
| | | { |
| | | title: '保养状态', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceStatus_dictText' |
| | |
| | | title: '创建方式', |
| | | align: 'center', |
| | | dataIndex: 'creationMethod_dictText' |
| | | }, |
| | | { |
| | | title: '机动办确认', |
| | | align: 'center', |
| | | dataIndex: 'confirmUser_dictText', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: '机动办确认时间', |
| | | align: 'center', |
| | | dataIndex: 'confirmTime', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: '机动办意见', |
| | | align: 'center', |
| | | dataIndex: 'confirmComment', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: '确认领导', |
| | | align: 'center', |
| | | dataIndex: 'confirmLeader_dictText', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: '领导确认时间', |
| | | align: 'center', |
| | | dataIndex: 'leaderConfirmTime', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: '领导意见', |
| | | align: 'center', |
| | | dataIndex: 'leaderConfirmComment', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: '备注', |
| | |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | handleDetail(record) { |
| | | this.selectThirdMaintenanceData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceApprovalModal.recordDetail(record) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = '详情' |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = true |
| | | } |
| | | } |
| | | } |