|
|
@ -4,6 +4,7 @@ |
|
|
|
<div class="tab-header webtop"> |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" @click="openTurnDo('转办')">转 办</el-button> |
|
|
|
<el-button type="primary" size="small" @click="openCountersign('加签')">加 签</el-button> |
|
|
|
<el-button type="primary" size="small" @click="openAgree('同意')">同 意</el-button> |
|
|
|
<el-button type="danger" size="small" @click="openReject('驳回')">驳 回</el-button> |
|
|
@ -190,7 +191,12 @@ |
|
|
|
<el-form class="formadd" > |
|
|
|
<el-row v-show="countersignLink" style="border-top: 1px solid #e0e3eb"> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>加签人员:</span> |
|
|
|
<span v-show="operation == '加签'"> |
|
|
|
<span class="icon">*</span>加签人员: |
|
|
|
</span> |
|
|
|
<span v-show="operation == '转办'"> |
|
|
|
<span class="icon">*</span>转办人员: |
|
|
|
</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="20"> |
|
|
|
<el-form-item> |
|
|
@ -359,6 +365,21 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 转办 |
|
|
|
openTurnDo(val) { |
|
|
|
this.operation = val |
|
|
|
this.currentLink = true |
|
|
|
this.countersignLink = true |
|
|
|
this.dialogList.comment = '' |
|
|
|
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
var arr = resp.data |
|
|
|
this.nextNode = arr[0] |
|
|
|
this.nodeDialogVisible = true |
|
|
|
} |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 加签 |
|
|
|
openCountersign(val) { |
|
|
|
this.operation = val |
|
|
@ -429,7 +450,40 @@ export default { |
|
|
|
} |
|
|
|
} else if (this.operation === '加签') { |
|
|
|
this.handleCountersign() |
|
|
|
} else if (this.operation === '转办') { |
|
|
|
this.handleAssignTask() |
|
|
|
} |
|
|
|
}, |
|
|
|
// 转办 |
|
|
|
handleAssignTask() { |
|
|
|
if (this.countersign.assignee === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择转办人员' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.dialogList.comment === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.countersign.views = this.dialogList.comment |
|
|
|
req.assignTask(this.countersign).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '执行成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
this.nodeDialogVisible = false |
|
|
|
// 子页面向父级页面传递值 |
|
|
|
window.parent.postMessage({ |
|
|
|
cmd: 'returnHeight', |
|
|
|
params: { |
|
|
|
// 操作成功,告诉父级页面关闭弹框 |
|
|
|
code: 1 |
|
|
|
} |
|
|
|
}, '*') |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** 加签 */ |
|
|
|
handleCountersign() { |
|
|
|