|
|
@ -71,6 +71,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!--审批正常流程-->
|
|
|
|
<!--审批正常流程-->
|
|
|
|
<el-dialog :title="completeTitle" :visible.sync="completeOpen" width="60%" append-to-body>
|
|
|
|
<el-dialog :title="completeTitle" :visible.sync="completeOpen" width="60%" append-to-body>
|
|
|
|
|
|
|
|
<div v-if="checkSendUser">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<!--部门数据-->
|
|
|
|
<!--部门数据-->
|
|
|
|
<el-col :span="4" :xs="24">
|
|
|
|
<el-col :span="4" :xs="24">
|
|
|
@ -121,6 +122,7 @@
|
|
|
|
</el-tag>
|
|
|
|
</el-tag>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
<el-input style="width: 50%;margin-right: 34%" type="textarea" v-model="taskForm.comment" placeholder="请输入处理意见"/>
|
|
|
|
<el-input style="width: 50%;margin-right: 34%" type="textarea" v-model="taskForm.comment" placeholder="请输入处理意见"/>
|
|
|
|
<el-button @click="completeOpen = false">取 消</el-button>
|
|
|
|
<el-button @click="completeOpen = false">取 消</el-button>
|
|
|
@ -241,6 +243,7 @@ export default {
|
|
|
|
rejectOpen: false,
|
|
|
|
rejectOpen: false,
|
|
|
|
rejectTitle: null,
|
|
|
|
rejectTitle: null,
|
|
|
|
userData:[],
|
|
|
|
userData:[],
|
|
|
|
|
|
|
|
checkSendUser: false // 是否展示选择人员模块
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -396,23 +399,25 @@ export default {
|
|
|
|
getNextFlowNode(params).then(res => {
|
|
|
|
getNextFlowNode(params).then(res => {
|
|
|
|
const data = res.data;
|
|
|
|
const data = res.data;
|
|
|
|
if (data) {
|
|
|
|
if (data) {
|
|
|
|
if (data.type === 'assignee') {
|
|
|
|
this.checkSendUser = true
|
|
|
|
|
|
|
|
if (data.type === 'assignee') { // 指定人员
|
|
|
|
this.userDataList = res.data.userList;
|
|
|
|
this.userDataList = res.data.userList;
|
|
|
|
} else if (data.type === 'candidateUsers') {
|
|
|
|
} else if (data.type === 'candidateUsers') { // 指定人员(多个)
|
|
|
|
this.userDataList = res.data.userList;
|
|
|
|
this.userDataList = res.data.userList;
|
|
|
|
this.taskForm.multiple = true;
|
|
|
|
this.taskForm.multiple = true;
|
|
|
|
} else if (data.type === 'candidateGroups') {
|
|
|
|
} else if (data.type === 'candidateGroups') { // 指定组(所属角色接收任务)
|
|
|
|
res.data.roleList.forEach(role => {
|
|
|
|
res.data.roleList.forEach(role => {
|
|
|
|
role.userId = role.roleId;
|
|
|
|
role.userId = role.roleId;
|
|
|
|
role.nickName = role.roleName;
|
|
|
|
role.nickName = role.roleName;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.userDataList = res.data.roleList;
|
|
|
|
this.userDataList = res.data.roleList;
|
|
|
|
this.taskForm.multiple = false;
|
|
|
|
this.taskForm.multiple = false;
|
|
|
|
} else if (data.type === 'multiInstance') {
|
|
|
|
} else if (data.type === 'multiInstance') { // 会签?
|
|
|
|
this.userDataList = res.data.userList;
|
|
|
|
this.userDataList = res.data.userList;
|
|
|
|
this.taskForm.multiple = true;
|
|
|
|
this.taskForm.multiple = true;
|
|
|
|
|
|
|
|
}else if (data.type === 'fixed') { // 已经固定人员接收下一任务
|
|
|
|
|
|
|
|
this.checkSendUser = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.taskForm.sendUserShow = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|