| | |
| | | </a-col> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="保养状态"> |
| | | <j-dict-select-tag placeholder="请选择保养状态" dict-code="maintenance_status" v-model="queryParam.maintenanceStatus" /> |
| | | <j-dict-select-tag placeholder="请选择保养状态" dict-code="week_maintenance_status" v-model="queryParam.maintenanceStatus" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="4" :lg="7" :md="8" :sm="24"> |
| | |
| | | <a-menu-item key="1" @click="handlerBatchAbolish"> |
| | | <a-icon type="delete" /> |
| | | 作废 |
| | | </a-menu-item> |
| | | <a-menu-item key="1" @click="handlerBatchCollect"> |
| | | <a-icon type="delete" /> |
| | | 领取 |
| | | </a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> 批量操作 |
| | |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE'"> |
| | | <a-popconfirm title="确定领取吗?" @confirm="() => handlerCollect(record.id)"> |
| | | <a>领取</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | <a-menu-item v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE'"> |
| | | <a-popconfirm title="确定作废吗?" @confirm="() => handlerAbolish(record.id)"> |
| | | <a>作废</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | <a-menu-item > |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | |
| | | import EamWeekMaintenanceOrderModal from './modules/EamWeekMaintenanceOrderModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue' |
| | | import { deleteAction } from '@api/manage' |
| | | import { deleteAction, getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'EamWeekMaintenanceOrderList', |
| | |
| | | url: { |
| | | list: '/eam/weekMaintenanceOrder/list', |
| | | abolish: '/eam/weekMaintenanceOrder/abolish', |
| | | abolishBatch: '/eam/weekMaintenanceOrder/abolishBatch' |
| | | abolishBatch: '/eam/weekMaintenanceOrder/abolishBatch', |
| | | collect: '/eam/weekMaintenanceOrder/collect', |
| | | } |
| | | } |
| | | }, |
| | |
| | | }); |
| | | } |
| | | }, |
| | | //单个领取 |
| | | handlerCollect(id) { |
| | | if(!this.url.collect){ |
| | | this.$message.error("请设置url.collect属性!") |
| | | return |
| | | } |
| | | var that = this; |
| | | getAction(that.url.collect, {id: id}).then((res) => { |
| | | if (res.success) { |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(1) |
| | | // that.$message.success(res.message); |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | that.loadData(); |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | //批量领取 |
| | | handlerBatchCollect(){ |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |