| | |
| | | label: '机床', |
| | | width: 100, |
| | | prop: '', |
| | | |
| | | formatter: (val, value, label) => { |
| | | return `${val?.variables?.machineCode}`; |
| | | }, |
| | |
| | | label: '文件', |
| | | width: 200, |
| | | prop: 'file', |
| | | showOverflowTooltip:true, |
| | | }, |
| | | { |
| | | label: '到达时间', |
| | | width: 120, |
| | | prop: 'createTime', |
| | | showOverflowTooltip:true, |
| | | |
| | | |
| | | }, |
| | | { |
| | | label: '到达描述', |
| | |
| | | this.optionApprove.column[1].disabled = true; |
| | | |
| | | if (["approveTask", 'seniorApproveTask','replaceApprove','unlockApproveTask','appendApproveTask'].includes(row.taskDefinitionKey)) { |
| | | //审批节点,不通过给编制:编制是责任人,不给校对了 |
| | | this.formApprove.assignee = row.variables.programmer; |
| | | //审批节点,不通过给编制:编制是责任人,给实际编程员 |
| | | //this.formApprove.assignee = row.variables.programmer; |
| | | this.formApprove.assignee = row.variables.actProgrammer;//给实际编程员 |
| | | } else if(["check", 'cureCheckTask','repalceCheckTask','appendCheckTask'].includes(row.taskDefinitionKey)){ |
| | | //校对节点,上一步是编程 |
| | | this.formApprove.assignee = row.variables.programmer; |
| | | //this.formApprove.assignee = row.variables.programmer; |
| | | this.formApprove.assignee = row.variables.actProgrammer;//给实际编程员 |
| | | }else if (["programmingTask"].includes(row.taskDefinitionKey)) { |
| | | // 试切编制节点,上一步是组长 |
| | | this.formApprove.assignee = row.variables.teamLeader; |
| | |
| | | this.transferTaskSelection = list; |
| | | }, |
| | | reassign(val) {// 重新指派 |
| | | |
| | | //var 0:批量转派;1:手动派工;2:自动派工;3:批量审批 |
| | | this.reassignType = val; |
| | | if (this.transferTaskSelection.length === 0) { |
| | | this.$message.warning('请选择需要操作的任务'); |
| | |
| | | // this.$message.info('已取消操作'); |
| | | }); |
| | | } else { |
| | | //0重新指派 3批量审批 ,1手动派工 |
| | | this.reassignBox = true; |
| | | |
| | | if(val === 3) {//批量审批时 显示通过驳回 |
| | |
| | | this.reassignOption.column[1].disabled = true; |
| | | this.reassignOption.column[1].display = true; |
| | | } else { |
| | | //0 |
| | | this.reassignOption.column[0].display = false; |
| | | this.reassignForm.approve = ''; |
| | | |
| | | if(val === 0 || val === 1) {//0重新指派 1手动派工 ,需要显示处理人 |
| | | this.reassignOption.column[1].disabled = false; |
| | | this.reassignOption.column[1].display = true; |
| | | } |
| | | } |
| | | if(val ===1) { |
| | | this.reassignForm.newAssigneeId = this.transferTaskSelection[0].variables.programmer; |