|
|
@ -204,7 +204,7 @@ export default { |
|
|
|
params: { |
|
|
|
// 告诉父级页面,子页面的弹框高度。 |
|
|
|
code: 2, |
|
|
|
data: document.body.scrollHeight + 120 + 'px' |
|
|
|
data: document.body.scrollHeight + 220 + 'px' |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
}, |
|
|
@ -273,6 +273,7 @@ export default { |
|
|
|
// 点击同意 |
|
|
|
openAgree(val) { |
|
|
|
this.operation = val |
|
|
|
this.dialogList.comment = '同意' |
|
|
|
this.currentLink = true // 控制当前环节一行的显示隐藏 |
|
|
|
// const formVariables = { |
|
|
|
// businessSid: this.agreeList.businessSid |
|
|
@ -289,6 +290,7 @@ export default { |
|
|
|
// 点击驳回 |
|
|
|
openReject(val) { |
|
|
|
this.operation = val |
|
|
|
this.dialogList.comment = '' |
|
|
|
this.currentLink = true // 控制当前环节一行的显示隐藏 |
|
|
|
// const formVariables = { |
|
|
|
// businessSid: this.regectList.businessSid |
|
|
@ -305,6 +307,7 @@ export default { |
|
|
|
// 点击终止 |
|
|
|
openStop(val) { |
|
|
|
this.operation = val |
|
|
|
this.dialogList.comment = '' |
|
|
|
this.currentLink = false // 控制当前环节一行的显示隐藏 |
|
|
|
this.nodeDialogVisible = true |
|
|
|
}, |
|
|
@ -321,6 +324,14 @@ export default { |
|
|
|
/** 同意任务 */ |
|
|
|
handleAgree() { |
|
|
|
this.agreeList.comment = this.dialogList.comment |
|
|
|
if (this.agreeList.comment == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '请填写同意意见!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
req.agreeTaskCallInOrCallOut(this.agreeList).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.$message({ |
|
|
@ -343,6 +354,14 @@ export default { |
|
|
|
/** 驳回任务 */ |
|
|
|
handleReject() { |
|
|
|
this.regectList.comment = this.dialogList.comment |
|
|
|
if (this.regectList.comment == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '请填写驳回意见!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
req.rejectTask(this.regectList).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.$message({ |
|
|
@ -365,6 +384,14 @@ export default { |
|
|
|
/** 终止任务 */ |
|
|
|
handleStop() { |
|
|
|
this.stopList.comment = this.dialogList.comment |
|
|
|
if (this.stopList.comment == '') { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '请填写终止意见!', |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
req.breakTask(this.stopList).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.$message({ |
|
|
|