| | |
| | | |
| | | <!-- 表单区域 --> |
| | | <eamWeekMaintenanceOrder-modal ref="modalForm" @ok="modalFormOk"></eamWeekMaintenanceOrder-modal> |
| | | <week-maintenance-approval-modal ref="weekMaintenanceApprovalModal"></week-maintenance-approval-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue' |
| | | import { deleteAction, getAction } from '@api/manage' |
| | | import WeekMaintenanceApprovalModal from '@views/flowable/workflow/weekMaintenance/WeekMaintenanceApprovalModal' |
| | | |
| | | export default { |
| | | name: 'EamWeekMaintenanceOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | LxSearchEquipmentSelect, |
| | | EamWeekMaintenanceOrderModal |
| | | EamWeekMaintenanceOrderModal, |
| | | WeekMaintenanceApprovalModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | fixed: 'left', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | |
| | | { |
| | | title: '工单号', |
| | | align: 'center', |
| | | dataIndex: 'orderNum' |
| | | dataIndex: 'orderNum', |
| | | fixed: 'left', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '设备编号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode' |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName' |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '标准名称', |
| | | align: 'center', |
| | | dataIndex: 'standardId_dictText' |
| | | dataIndex: 'standardId_dictText', |
| | | width: 100, |
| | | }, |
| | | { |
| | | title: '计划保养日期', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceDate' |
| | | dataIndex: 'maintenanceDate', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '实际开始时间', |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime' |
| | | dataIndex: 'actualStartTime', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '实际结束时间', |
| | | align: 'center', |
| | | dataIndex: 'actualEndTime' |
| | | dataIndex: 'actualEndTime', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '保养人', |
| | | align: 'center', |
| | | dataIndex: 'operator_dictText' |
| | | dataIndex: 'operator_dictText', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '保养状态', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceStatus_dictText' |
| | | dataIndex: 'maintenanceStatus_dictText', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '创建方式', |
| | | align: 'center', |
| | | dataIndex: 'creationMethod_dictText' |
| | | dataIndex: 'creationMethod_dictText', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '确认人', |
| | | align: 'center', |
| | | dataIndex: 'confirmUser_dictText' |
| | | dataIndex: 'confirmUser_dictText', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '确认时间', |
| | | align: 'center', |
| | | dataIndex: 'confirmTime' |
| | | dataIndex: 'confirmTime', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '保养图片', |
| | | title: '确认意见', |
| | | align: 'center', |
| | | dataIndex: 'imageFiles' |
| | | dataIndex: 'confirmComment', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '初验收人', |
| | | align: 'center', |
| | | dataIndex: 'initialAcceptanceUser_dictText', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '初验收时间', |
| | | align: 'center', |
| | | dataIndex: 'initialAcceptanceTime', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '初验收意见', |
| | | align: 'center', |
| | | dataIndex: 'initialAcceptanceComment', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '终验收人', |
| | | align: 'center', |
| | | dataIndex: 'finalAcceptanceUser_dictText', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '终验收时间', |
| | | align: 'center', |
| | | dataIndex: 'finalAcceptanceTime', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '终验收意见', |
| | | align: 'center', |
| | | dataIndex: 'finalAcceptanceComment', |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '备注', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | editable: true, |
| | | width: 60, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 100, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | |
| | | this.$message.error("请设置url.collect属性!") |
| | | return |
| | | } |
| | | var that = this; |
| | | let that = this; |
| | | getAction(that.url.collect, {id: id}).then((res) => { |
| | | if (res.success) { |
| | | //重新计算分页问题 |
| | |
| | | //批量领取 |
| | | handlerBatchCollect(){ |
| | | |
| | | }, |
| | | handleDetail(record) { |
| | | this.$refs.weekMaintenanceApprovalModal.recordDetail(record) |
| | | this.$refs.weekMaintenanceApprovalModal.title = '详情'; |
| | | this.$refs.weekMaintenanceApprovalModal.disableSubmit = true |
| | | } |
| | | } |
| | | } |