|
|
@ -83,6 +83,26 @@ |
|
|
|
<!--End 添加修改部分--> |
|
|
|
<span class="el-icon-picture-outline">流程图</span> |
|
|
|
<flow :xmlData="xmlData" :taskData="taskList"></flow> |
|
|
|
<el-dialog title="选择待办人" :visible.sync="nodeDialogVisible" width="80%"> |
|
|
|
<el-form label-position="right" class="formadd" > |
|
|
|
<el-row v-show="currentLink"> |
|
|
|
<el-col :span="4" class="tleftb">当前环节</el-col> |
|
|
|
<el-col :span="20" class="trightb"> |
|
|
|
<el-form-item prop="purchasingUnitName"><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb">意见</el-col> |
|
|
|
<el-col :span="20" class="trightb"> |
|
|
|
<el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" clearable ></el-input> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div style="text-align:center;margin-top: 20px;"> |
|
|
|
<el-button type="primary" size="mini" @click="reject">确 定</el-button> |
|
|
|
<el-button type="info " size="mini" @click="nodeDialogVisible = false">取 消</el-button> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -113,6 +133,7 @@ export default { |
|
|
|
}, |
|
|
|
nextNode: {}, // 下一环节 |
|
|
|
nodeDialogVisible: false, |
|
|
|
currentLink: true, |
|
|
|
// 表单数据 |
|
|
|
formobj: {}, |
|
|
|
// 环节所需参数 |
|
|
@ -206,14 +227,8 @@ export default { |
|
|
|
// 终止 |
|
|
|
openStop(val) { |
|
|
|
this.operation = val |
|
|
|
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
var arr = resp.data |
|
|
|
this.nextNode = arr[0] |
|
|
|
this.nodeDialogVisible = true |
|
|
|
} |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|
this.currentLink = false |
|
|
|
this.nodeDialogVisible = true |
|
|
|
}, |
|
|
|
reject() { |
|
|
|
if (this.operation === '同意') { |
|
|
|