From da02cde61cb9d5b48e84b5fc531657d3f6043776 Mon Sep 17 00:00:00 2001
From: yxt_djz <313618925@qq.com>
Date: Mon, 20 Jun 2022 11:35:17 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=A4=96=E9=87=87=E6=B5=81?=
=?UTF-8?q?=E7=A8=8B=E5=8A=9E=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../baseoutsourcingapplicationAdd.vue | 54 +++++++++----------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
index 3e5dee2048..faccbd8fe3 100644
--- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
@@ -163,17 +163,20 @@
-
+
当前环节
+
{{firstNode.name}}->{{ nextNode.name }}
-
选择动作
-
+
{{ item.name }}
@@ -219,14 +224,17 @@ export default {
},
data() {
return {
+ //第一个环节
firstNode:{},
+ //下一个环节
nextNode:{},
+ //角色sid
roleSid:'',
- userSid:'',
+ //可选择的下一环节的用户集合
users:[],
- nodeSid:'',
- nodes:'',
+ //点击提交按钮显示弹框
nodeDialogVisible:false,
+ //选择用户弹框
nodeUserDialogVisible:false,
selectedSids: '',
vehicleDialogVisible: false,
@@ -234,18 +242,11 @@ export default {
viewState: '1',
submitdisabled: false,
viewTitle: '',
- agreeList: { //同意办理列表
- businessSid: '',
- comment: '',
- instanceId: '',
- taskId: '',
- taskName: '',
- nextNodeSid:'',
- userSid: window.sessionStorage.getItem('userSid')
- },
formobj: {
+ //下一环节的用户sid
nextUserSid:'',
sid: '',
+ userSid:'',
staffSid: window.sessionStorage.getItem('staffSid'),
applicationCode: '', // 申请编号
createByName: window.sessionStorage.getItem('name'), // 申请人姓名
@@ -412,12 +413,14 @@ export default {
var pageindex=index+1+pagestart;
return pageindex;*/
},
+ //打开选择用户的弹框,并且根据角色查询用户列表
selectUser() {
- this.nodeUserDialogVisible=true
- req.getUsers( this.roleSid).then(res => {
+ this.nodeUserDialogVisible = true;
+ req.getUsers( this.roleSid ).then(res => {
this.users = res.data
})
},
+ //选择下一环节的用户
checkedUser(val) {
const choosetItem = this.users.filter((item) => item.sid == val)
this.userName = choosetItem[0].name
@@ -429,19 +432,23 @@ export default {
this.submitdisabled = true
this.formobj.userSid = window.sessionStorage.getItem('userSid')
this.formobj.orgSid = this.$store.getters.orgSid
+ //查验下一环节要用到,流程定义的id
this.formobj.modelId = 'process_5tqysnjc:2:325008'
req.getNextNodesForSubmit(this.formobj).then(resp=>{
if (resp.success) {
- this.nextNode=resp.data[1];
+ //第一个环节
this.firstNode=resp.data[0];
+ //下一环节
+ this.nextNode=resp.data[1];
+ //环节上配置的角色
var candidateGroups=this.nextNode.candidateGroups;
this.roleSid=candidateGroups[0];
- console.log(resp.data);
this.nodeDialogVisible = true
}
this.submitdisabled = false
});
},
+ //选择用户后点击确定/同意时向后台传递数据,启动流程,并从第一个环节流转到下一个环节
agree() {
req
.doSubmit(this.formobj)
@@ -451,13 +458,6 @@ export default {
// 加提交后的逻辑
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
- /* window.parent.postMessage({
- cmd: 'returnHeight',
- params: {
- code: 1,
- data: document.body.scrollHeight + 'px'
- }
- }, '*')*/
} else {
// 根据resp.code进行异常情况处理
}