Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedForm.js =================================================================== diff -u -r15961 -r16019 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedForm.js (.../invoicePlanExtractedForm.js) (revision 15961) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedForm.js (.../invoicePlanExtractedForm.js) (revision 16019) @@ -441,10 +441,16 @@ // 首先处理错误信息 if(!isUndefinedOrNullOrEmpty(result.errMsg)){ showResult(result.errMsg); + top.Ext.getCmp('scanText').setValue(""); + top.Ext.getCmp('scanTextEnd').setValue(""); + top.Ext.getCmp('scanText').focus(); return; } if(result.data.length == 0){ showResult("找不到该条码对应的信息。"); + top.Ext.getCmp('scanText').setValue(""); + top.Ext.getCmp('scanTextEnd').setValue(""); + top.Ext.getCmp('scanText').focus(); return; } // 验证灭菌筐内的物品是否符合发货条件,扫描的器械包数量是否大于申请数量 @@ -575,6 +581,9 @@ failure : function(response, options) { top.Ext.getCmp("sendOutGoods").getEl().unmask(); showResult('获取条码信息失败'); + top.Ext.getCmp('scanText').setValue(""); + top.Ext.getCmp('scanTextEnd').setValue(""); + top.Ext.getCmp('scanText').focus(); } }); @@ -1277,6 +1286,10 @@ select : function(combo, record, index){ //alert(record.get("scanModeCode")); currentScanMode = record.get("scanModeCode"); + //首尾条码全部清空,且让首条码得到焦点 + Ext.getCmp('scanText').setValue(""); + Ext.getCmp('scanTextEnd').setValue(""); + Ext.getCmp('scanText').focus(); } }, anchor : '100%' Index: ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationLoadingForm.js =================================================================== diff -u -r16011 -r16019 --- ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationLoadingForm.js (.../sterilizationLoadingForm.js) (revision 16011) +++ ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/sterilizationLoadingForm.js (.../sterilizationLoadingForm.js) (revision 16019) @@ -925,6 +925,10 @@ select : function(combo, record, index){ //alert(record.get("scanModeCode")); currentScanMode = record.get("scanModeCode"); + //首尾条码全部清空,且让首条码得到焦点 + Ext.getCmp('barcode').setValue(""); + Ext.getCmp('barcodeEnd').setValue(""); + Ext.getCmp('barcode').focus(); } }//,anchor : '90%' }