Browse Source

单据编号特殊字符处理

zhuth 7 years ago
parent
commit
dd7c68f2a4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      frontend/saas-web/app/view/core/form/FormPanel.js

+ 6 - 0
frontend/saas-web/app/view/core/form/FormPanel.js

@@ -165,8 +165,14 @@ Ext.define('saas.view.core.form.FormPanel', {
                 value: '{' + me._codeField + '}',
                 hidden: '{!base.codeEditable}'
             },
+            enableKeyEvents: true,
             listeners: {
                 blur: 'codeEditorBlur',
+                keydown: function(th, e, eOpts) {
+                    if(e.keyCode == 13) {
+                        th.fireEvent('blur');
+                    }
+                },
                 show: function (field, eOpts) {
                     field.focus();
                 }