Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedForm.js =================================================================== diff -u -r16022 -r16100 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedForm.js (.../invoicePlanExtractedForm.js) (revision 16022) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedForm.js (.../invoicePlanExtractedForm.js) (revision 16100) @@ -738,7 +738,12 @@ * @param depart 科室名称 * @param invoicePlanId 发货计划id */ +var invoicePlanFormOpened = false; function addAndEditInvoicePlan(orgUnitCoding,depart,invoicePlanId) { + if(invoicePlanFormOpened){ + return; + } + invoicePlanFormOpened = true; lastLoadWarehouseId = null; defaultFocusedFieldOnInvoiceForm = getStrValueFromJs('sstsConfig.defaultFocusedFieldOnInvoiceForm',defaultFocusedFieldOnInvoiceForm); // 发货物品 @@ -1515,6 +1520,7 @@ window.on('close',function(w){ //切记注意:按取消关闭window后,一定要把已选择的申请单号变量清空 selectedInvoicePlanId = ""; + invoicePlanFormOpened = false; top.getCurrentTab().focus(); }); 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); }