Index: ssts-web/src/main/webapp/disinfectsystem/packing/packageForm.js =================================================================== diff -u -r34113 -r34114 --- ssts-web/src/main/webapp/disinfectsystem/packing/packageForm.js (.../packageForm.js) (revision 34113) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packageForm.js (.../packageForm.js) (revision 34114) @@ -52,6 +52,7 @@ params: { tousseBarcode: tousseBarcode, packer: packer, packerBarcode: packerBarcode }, success: function (response, options) { var result = Ext4.decode(response.responseText); + top.Ext4.getCmp('barcode').setValue(''); if (result.success) { var barcode = result.data.barcode; var tousseName = result.data.tousseName; @@ -63,7 +64,6 @@ sterileStartDate: sterileStartDate }]; store2.add(data); - top.Ext4.getCmp('barcode').setValue(''); //统计信息 if (store1Map.has(tousseName)) { var amount = store1Map.get(tousseName); @@ -84,11 +84,11 @@ listStore.loadPage(1); } else { showResult(result.msg); - top.Ext4.getCmp('barcode').setValue(''); } }, failure: function (response, options) { showResult('保存失败!'); + top.Ext4.getCmp('barcode').setValue(''); } }); } @@ -124,6 +124,7 @@ if (e.getKey() == 13) { var packerBarcode = top.Ext4.getCmp('packerBarcodeBox').getValue(); UserTableManager.getUserByBarcode(packerBarcode, function (responseText) { + top.Ext4.getCmp('packerBarcodeBox').setValue(''); if (responseText != null && responseText != "") { var result = Ext4.decode(responseText); if (!result.success) { @@ -132,11 +133,9 @@ } top.Ext4.getCmp('packer').setValue(result.fullName); top.Ext4.getCmp('packerBarcode').setValue(packerBarcode); - top.Ext4.getCmp('packerBarcodeBox').setValue(''); focusExtJSField(top.Ext4.getCmp('barcode')); } else { showResult('找不到该条码所对应的人员信息'); - top.Ext4.getCmp('packerBarcodeBox').setValue(''); } }); } @@ -170,6 +169,7 @@ var barcode = top.Ext4.getCmp('barcode').getValue(); if (packer == '') { showResult('请先扫描包装人条码'); + top.Ext4.getCmp('barcode').setValue(''); return; } saveConfig(barcode, packer, packerBarcode);