|
|
@ -79,7 +79,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24" :class="{'rowClass':!currentLink}"> |
|
|
|
<div class="span-sty spanTwoWidth"><span>意见:</span></div> |
|
|
|
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw addinputTwo" clearable ></el-input></el-form-item> |
|
|
|
</el-col> |
|
|
@ -170,7 +170,7 @@ export default { |
|
|
|
openAgree(val) { |
|
|
|
this.operation = val |
|
|
|
this.currentLink = true |
|
|
|
this.dialogList.comment = '' |
|
|
|
this.dialogList.comment = '同意' |
|
|
|
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
var arr = resp.data |
|
|
@ -205,10 +205,18 @@ export default { |
|
|
|
if (this.operation === '同意') { |
|
|
|
this.handleAgree() |
|
|
|
} else if (this.operation === '驳回') { |
|
|
|
if (this.dialogList.comment === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' }) |
|
|
|
} else { |
|
|
|
this.handleReject() |
|
|
|
} |
|
|
|
} else if (this.operation === '终止') { |
|
|
|
if (this.dialogList.comment === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' }) |
|
|
|
} else { |
|
|
|
this.handleStop() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
/** 同意任务 */ |
|
|
|
handleAgree() { |
|
|
@ -307,5 +315,8 @@ export default { |
|
|
|
border-right: 0px !important; |
|
|
|
border-bottom: 0px !important; |
|
|
|
} |
|
|
|
.rowClass{ |
|
|
|
border-top: 1px solid #E0E3EB; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|