Index: ssts-web/src/main/webapp/disinfectsystem/common/terminateInvoicePlan.js =================================================================== diff -u -r28759 -r28761 --- ssts-web/src/main/webapp/disinfectsystem/common/terminateInvoicePlan.js (.../terminateInvoicePlan.js) (revision 28759) +++ ssts-web/src/main/webapp/disinfectsystem/common/terminateInvoicePlan.js (.../terminateInvoicePlan.js) (revision 28761) @@ -72,8 +72,9 @@ if(returnValue == ''){ return; } - - Ext.Ajax.request({ + var mask = new Ext.LoadMask(Ext.getBody(), { msg: '正在终止选中的申请单,请稍候...'}); + mask.show(); + Ext.Ajax.request({ url: WWWROOT + url, params: { recyclingAppId : id ,endCause:returnValue}, success: function(response, options){ @@ -87,6 +88,9 @@ showResult(result.errMsg); } } + if(loadMask){ + loadMask.hide(); + } if(refreshCallback){ refreshCallback(); }else{ @@ -95,6 +99,9 @@ }, failure: function(response, options) { showResult("终止失败,请联系管理员!"); + if(loadMask){ + loadMask.hide(); + } } }); } @@ -149,6 +156,8 @@ endCause:returnValue } } + var mask = new Ext.LoadMask(Ext.getBody(), { msg: '正在终止选中的物品,请稍候...'}); + mask.show(); Ext.Ajax.request({ url: WWWROOT + url, params: params, @@ -163,6 +172,9 @@ showResult(result.msg); } } + if(loadMask){ + loadMask.hide(); + } if(refreshCallback){ refreshCallback(); }else{ @@ -171,6 +183,9 @@ }, failure: function(response, options) { showResult("终止失败,请联系管理员!"); + if(loadMask){ + loadMask.hide(); + } } }); }