Index: ssts-web/src/main/webapp/disinfectsystem/packing/packageForm.js =================================================================== diff -u -r33988 -r34112 --- ssts-web/src/main/webapp/disinfectsystem/packing/packageForm.js (.../packageForm.js) (revision 33988) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packageForm.js (.../packageForm.js) (revision 34112) @@ -84,6 +84,7 @@ listStore.loadPage(1); } else { showResult(result.msg); + top.Ext4.getCmp('barcode').setValue(''); } }, failure: function (response, options) { @@ -121,15 +122,16 @@ listeners: { specialkey: function (thiz, e) { if (e.getKey() == 13) { - UserTableManager.getUserByBarcode(thiz.value, function (responseText) { + var packerBarcode = top.Ext4.getCmp('packerBarcodeBox').getValue(); + UserTableManager.getUserByBarcode(packerBarcode, function (responseText) { if (responseText != null && responseText != "") { var result = Ext4.decode(responseText); if (!result.success) { showResult("输入的条码有误!"); return; } top.Ext4.getCmp('packer').setValue(result.fullName); - top.Ext4.getCmp('packerBarcode').setValue(thiz.value); + top.Ext4.getCmp('packerBarcode').setValue(packerBarcode); top.Ext4.getCmp('packerBarcodeBox').setValue(''); focusExtJSField(top.Ext4.getCmp('barcode')); } else {