提交 06573ea9 编写于 作者: NoSubject's avatar NoSubject

fix reroute bug in process.Application

上级 24ff65ed
此差异已折叠。
<div style="padding: 0px 30px; font-size:14px;">
<div style="height: 50px; margin-bottom:10px;overflow-y:auto;">
<div style="height: 120px; margin-bottom:10px;overflow-y:auto;">
<div style="line-height: 30px; margin-bottom:10px; overflow: hidden">
<div style="float: left; width: 70px">调度到:</div>
<div style="margin-left: 70px">
......@@ -7,6 +7,11 @@
<!--<div id="resetWork_selPeopleButton" style="font-size:12px; border-radius: 5px; height: 22px; line-height:22px; float:right; margin-top:4px; border:1px solid #666; color: #FFF; background-color: #666; box-shadow: 1px 1px 3px #999; cursor: pointer; padding: 0px 10px;">选择人员</div>
<div id="resetWork_selPeopleArea" style="margin-right: 70px; height: 30px"></div>-->
</div>
<div style="float: left; width: 70px; margin-top: 10px">调度给:</div>
<div style="margin-left: 70px; margin-top: 10px">
<div class="rerouteWork_selPeopleButton" style="font-size:12px; margin-right: 20px; border-radius: 5px; height: 22px; line-height:22px; float:right; margin-top:4px; border:1px solid #666; color: #FFF; background-color: #666; box-shadow: 1px 1px 3px #999; cursor: pointer; padding: 0px 10px;">选择人员</div>
<div class="rerouteWork_selPeopleArea" style="margin-right: 70px; height: 30px"></div>
</div>
</div>
<div style="height: 30px; line-height: 30px; margin-bottom:10px; display:none">
<div style="float: left; width: 70px; height: 50px; line-height: 50px;">调度意见:</div>
......
......@@ -889,10 +889,9 @@ MWF.xApplication.process.Application.WorkExplorer.Work = new Class({
this.readyReroute = true;
MWF.require("MWF.xDesktop.Dialog", function(){
var width = 480;
var width = 560;
var height = 260;
var p = MWF.getCenterPosition(this.explorer.app.content, width, height);
var _self = this;
var _self = this;
var dlg = new MWF.xDesktop.Dialog({
......@@ -1082,7 +1081,13 @@ MWF.xApplication.process.Application.WorkExplorer.Work = new Class({
}.bind(this));
},
rerouteWorkToActivity: function(activity, type, opinion, nameArr, success, failure){
o2.Actions.load("x_processplatform_assemble_surface").WorkAction.V2Reroute(this.data.id, activity, type, {"manualForceTaskIdentityList": nameArr}, function(){
var body = {
"activity": activity,
"activityType": type,
"mergeWork": false,
"manualForceTaskIdentityList": nameArr
};
o2.Actions.load("x_processplatform_assemble_surface").WorkAction.V2Reroute(this.data.id, body, function(){
if (success) success();
}.bind(this), function (xhr, text, error) {
if (failure) failure(xhr, text, error);
......
......@@ -3091,7 +3091,6 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
}.bind(this));
},
rerouteWorkToActivity: function (activity, type, opinion, nameArr, success, failure) {
debugger;
var body = {
"activity": activity,
"activityType": type,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册