| | |
| | | props: {}, |
| | | data() { |
| | | return { |
| | | jumpDesc: '', // 跳过说明 |
| | | rejectLoading: false, // 驳回按钮加载 |
| | | submitLoading: false, // 提交按钮加载 |
| | | delegationButLoading: false, // 转办按钮加载 |
| | |
| | | methods: { |
| | | // 跳过任务 |
| | | jumpTask() { |
| | | this.$confirm('确定要跳过此任务吗?', '提示', { |
| | | this.$prompt('备注说明', '确定要跳过此任务吗', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | inputType: 'textarea' |
| | | // inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/, |
| | | // inputErrorMessage: '邮箱格式不正确' |
| | | }).then(({ value }) => { |
| | | let jumpForm = { |
| | | taskId: this.taskId, |
| | | projectId: this.goBackParams.projectId, |
| | | processInsId: this.procInsId |
| | | processInsId: this.procInsId, |
| | | desc: value |
| | | } |
| | | taskJump(jumpForm).then(res => { |
| | | this.$message.success("操作成功") |
| | | this.goBack() |
| | | }) |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消跳过操作' |
| | | }); |
| | | }); |
| | | }, |
| | | removeDept(dept) { |
| | | let index = this.delegationDeptSelect.indexOf(dept); |
| | |
| | | handleClick(tab, event) { |
| | | if (tab.name === '2'){ |
| | | this.imgLoading = true |
| | | flowXmlAndNode({procInsId:this.procInsId,deployId:this.deployId}).then(res => { |
| | | flowXmlAndNode({processInsId:this.procInsId,deployId:this.deployId}).then(res => { |
| | | this.imgLoading = false |
| | | this.flowData = res.data; |
| | | }) |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.submitLoading = true |
| | | let that = this |
| | | if (eval("that.$refs.form" +0)) { |
| | | eval("that.$refs.form" +0)[0].getFormData().then(formData => { |
| | | this.submitLoading = true |
| | | this.formData = formData |
| | | const param = { |
| | | formJson: this.formJson, |
| | |
| | | this.goBack(); |
| | | }) |
| | | } |
| | | |
| | | // let that = this |
| | | // eval("that.$refs.form" +0)[0].getFormData().then(formData => { |
| | | // // 根据当前任务或者流程设计配置的下一步节点 todo 暂时未涉及到考虑网关、表达式和多节点情况 |
| | | // getNextFlowNodeByStart({deploymentId: this.deployId, variables: formData}).then(res => { |
| | | // const data = res.data; |
| | | // if (data) { |
| | | // this.formData = formData; |
| | | // if (data.dataType === 'dynamic') { |
| | | // if (data.type === 'assignee') { // 指定人员 |
| | | // this.checkSendUser = true; |
| | | // this.checkType = "single"; |
| | | // } else if (data.type === 'candidateUsers') { // 候选人员(多个) |
| | | // this.checkSendUser = true; |
| | | // this.checkType = "multiple"; |
| | | // } else if (data.type === 'candidateGroups') { // 指定组(所属角色接收任务) |
| | | // this.checkSendRole = true; |
| | | // } else { // 会签 |
| | | // // 流程设计指定的 elementVariable 作为会签人员列表 |
| | | // this.multiInstanceVars = data.vars; |
| | | // this.checkSendUser = true; |
| | | // this.checkType = "multiple"; |
| | | // } |
| | | // this.taskOpen = true; |
| | | // this.taskTitle = "选择任务接收"; |
| | | // } else { |
| | | // if (this.procDefId) { |
| | | // const param = { |
| | | // formJson: this.formJson, |
| | | // } |
| | | // // 复制对象的属性值给新的对象 |
| | | // Object.assign(param, formData); |
| | | // // 完成任务 |
| | | // completeSubmitFormTask(this.taskId, param).then(res => { |
| | | // this.$modal.msgSuccess(res.msg); |
| | | // this.goBack(); |
| | | // }) |
| | | // } |
| | | // } |
| | | // } |
| | | // }) |
| | | // }) |
| | | }).catch((err) => { |
| | | console.log(err) |
| | | this.$message({ |