Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePrintModule.js =================================================================== diff -u -r28899 -r28902 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePrintModule.js (.../invoicePrintModule.js) (revision 28899) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePrintModule.js (.../invoicePrintModule.js) (revision 28902) @@ -29,6 +29,7 @@ } this.batchPrintInvoiceWithType = function(ids,type){ getMask(); + var mask; mask.msg = '正在处理打印请求,请稍候...'; mask.show(); @@ -56,11 +57,11 @@ for(var i = 0; i < result.batches.length;++i){ thiz.batchPrintInvoices_result(result.batches[i], 0); } - refresh(); + // refresh(); } //updatePrintStatus(ids); - } + } mask.hide(); // mask.destroy(); }, @@ -114,9 +115,7 @@ var loop = setInterval(function() { if(selectResult.hidden) { clearInterval(loop); - var returnValue = selectResult.returnValue || ''; - if(returnValue == ''){ return ''; } @@ -125,21 +124,18 @@ if(id == '' || id == null){ showResult('请选择对应的班次!'); return; - } - // var mask = new Ext.LoadMask(Ext.getBody(), { - // msg : '正在处理批量打印请求,请稍候...' - // }); - getMask(); - mask.msg='正在处理批量打印请求,请稍候...'; + } + var mask = new Ext.LoadMask(Ext.getBody(), { + msg : '正在处理批量打印请求,请稍候...' + }); mask.show(); - Ext.Ajax.timeout=300*000; Ext.Ajax.request({ - timeout: 300*000, url : WWWROOT + '/disinfectSystem/invoiceAction!mergeLoadPrintDataByConfig.do', params : {id : id}, success : function(response){ var result = Ext.decode(response.responseText); + mask.hide(); if(!result.success){ if(result.message){ showResult(result.message); @@ -156,7 +152,6 @@ //updatePrintStatus(ids); } - mask.hide(); }, failure: function(response){ showResult("打印失败!");