diff --git a/anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flowtask/FlowTaskService.java b/anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flowtask/FlowTaskService.java index 91de4fec38..ef50dfdd9f 100644 --- a/anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flowtask/FlowTaskService.java +++ b/anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flowtask/FlowTaskService.java @@ -695,7 +695,7 @@ public class FlowTaskService extends MybatisBaseService {{ item.name }} + @change="checkedUser(item.sid)">{{ item.name }} @@ -313,7 +313,6 @@ export default { // this.$refs['chexingxuanze'].showChexing() }, selectChexing(info) { - console.log('车型info', info) this.viewState = '1' this.formobj.modelSid = info.modelSid // 车型sid this.formobj.modelName = info.modelName // 车型名称 @@ -423,6 +422,8 @@ export default { //选择下一环节的用户 checkedUser(val) { const choosetItem = this.users.filter((item) => item.sid == val) + console.log(this.users); + console.log(choosetItem); this.userName = choosetItem[0].name this.formobj.nextUserSid = choosetItem[0].sid this.nodeUserDialogVisible = false diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/relation/vehiclelibraryconfiguration.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/relation/vehiclelibraryconfiguration.vue index 09df1b6235..6d26410bdb 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/relation/vehiclelibraryconfiguration.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/relation/vehiclelibraryconfiguration.vue @@ -407,7 +407,7 @@ export default { return pageindex }, showData(row) { - this.listQuery.params.modelSid = row.sid + this.listQuery.params.modelSid = row.modelSid this.modelSid = row.sid this.modelName = row.modelName this.guidedPrice = row.guidedPrice diff --git a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue index 75fa9f1113..f0019c8769 100644 --- a/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue +++ b/anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue @@ -78,6 +78,7 @@ + @@ -104,6 +105,7 @@ + @@ -130,18 +132,23 @@ export default { }, data() { return { + //选择待办人弹框 nodeDialogVisible:false, + //选择用户弹框 nodeUserDialogVisible:false, // 模型xml数据 xmlData: "", - nodeSid: "", - // nextNodeSid:'', - nodes: [], + //根据角色查询的用户数组 users:[], + //选择的用户的姓名 userName:'', + //选择的用户sid userSid:'', taskList: [], + //获取环节时默认是最后一个环节 endTask:true, + //下一环节 + nextNode:{}, formobj: { sid: '', comment:'', @@ -165,7 +172,6 @@ export default { orgSid: '', // 部门sid baseOutsourcingApplicationVehicleDtos:[] }, - nextNode:{}, agreeList: { //同意办理列表 businessSid: '', comment: '', @@ -206,7 +212,7 @@ export default { const data = decodeURI(window.location.href.slice(one, two)) // url解码unescape()已从web中移除,尽量不使用 var tar = data.substr(data.indexOf('=') + 1) const obj = JSON.parse(tar) - // 同意列表 + // 同意列表 父级页面传递过来的流程的相关的属性参数 this.agreeList.businessSid = sid this.agreeList.instanceId = obj.instanceId this.agreeList.taskId = obj.taskId @@ -220,46 +226,45 @@ export default { this.stopList.businessSid = sid this.stopList.instanceId = obj.instanceId this.stopList.taskId = obj.taskId + //加载流程图相关的数据 this.getModelDetail(obj.deployId) this.getFlowViewer(obj.instanceId) - this.getNextNodes(obj.taskId) window.parent.postMessage({ cmd: 'returnHeight', params: { + //告诉父级页面,子页面的弹框高度。 code: 2, data: 1500 + 'px' } }, '*') }, methods: { + //关闭弹出框 选择待办人弹框 closeNodeDialog(){ this.nodeDialogVisible = false }, + //根据环节上配置的角色查询用户 selectUser() { this.nodeUserDialogVisible=true req.getUsers(this.nextNode.candidateGroups[0]).then(res => { this.users = res.data }) }, + //选中下一环节的用户 checkedUser(val) { const choosetItem = this.users.filter((item) => item.sid == val) this.userName = choosetItem[0].name + this.userSid = choosetItem[0].sid this.nodeUserDialogVisible = false }, /** xml 文件 */ - getNextNodes(taskid) { - // 发送请求,获取xml - req.getNextNodes(taskid).then(res => { - this.nodes = res.data - }) - }, - /** xml 文件 */ getModelDetail(deployId) { // 发送请求,获取xml req.readXml(deployId).then(res =>{ this.xmlData = res.data }) }, + //已办环节的节点 getFlowViewer(procInsId){ req.getFlowViewer(procInsId).then(res =>{ this.taskList = res.data @@ -301,30 +306,32 @@ export default { }, // 同意 openAgree() { + //查验下一环节要用到,流程定义的id this.formobj.modelId = 'process_5tqysnjc:2:325008' req.getNextNodesForSubmit(this.formobj).then(resp=>{ if (resp.success) { var arr= resp.data; + //循环获取当前环节的下一个环节信息 for(var i=0;i { if (response.code === '200') { this.nodeDialogVisible=false; + //子页面向父级页面传递值 window.parent.postMessage({ cmd: 'returnHeight', params: { - code: 1, - data: document.body.scrollHeight + 'px' + //操作成功,告诉父级页面关闭弹框 + code: 1 } }, '*') } else {