Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js =================================================================== diff -u -r16060 -r16100 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js (.../invoicePlanExtractedView.js) (revision 16060) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js (.../invoicePlanExtractedView.js) (revision 16100) @@ -65,12 +65,17 @@ * 通过扫描条码打开发货计划单。条码可以是科室条码(不是科室编码),也可以是单号 */ var openMode = INVOICE_FORM_OPEN_MODE_CLICKITEM; - +var invoicePlanOpening = false; function openInvoicePlanByBarcode(barcode){ if(isUndefinedOrNullOrEmpty(barcode)){ showResult("请扫描科室条码或申请单条码"); return; } + if(invoicePlanOpening){ + showResult("申请单正在打开,请勿扫描太快!"); + return; + } + invoicePlanOpening = true; var store = grid.getStore(); var departCode = store.baseParams['departCode']; var applyDate = store.baseParams['applyDate']; @@ -79,6 +84,7 @@ url : WWWROOT + '/disinfectSystem/invoicePlanAction!getScanResult.do', params : {barcode : barcode,departCode:departCode,applyDate:applyDate,tousseType:tousseType}, success : function(response, options) { + invoicePlanOpening = false; var result = Ext.decode(response.responseText); if(result){ if(result.success){ @@ -91,6 +97,7 @@ } }, failure : function(form, action) { + invoicePlanOpening = false; if(action.result && action.result.message){ showResult(action.result.message); }