Browse Source

单据编号编辑按钮隐藏逻辑

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

+ 1 - 16
frontend/saas-web/app/view/core/form/FormPanel.js

@@ -69,22 +69,7 @@ Ext.define('saas.view.core.form.FormPanel', {
                     listeners: {
                         blur: 'codeEditorBlur',
                         show: function (field, eOpts) {
-                            // field.animate({
-                            //     duration: 500,
-                            //     to: {
-                            //         width: 200
-                            //     }
-                            // });
-
                             field.focus();
-                        },
-                        hide: function(field) {
-                            // field.animate({
-                            //     duration: 500,
-                            //     to: {
-                            //         width: 150
-                            //     }
-                            // });
                         }
                     }
                 }, {
@@ -100,7 +85,7 @@ Ext.define('saas.view.core.form.FormPanel', {
                     cls: 'x-codeeditor-btn',
                     bind: {
                         iconCls: 'fa {base.codeEditable ? "fa-check-circle" : "fa-edit"}',
-                        hidden: '{!base.editable}'
+                        hidden: '{(' + me._statusCodeField + ' == "AUDITED")}'
                     },
                     handler: 'codeEditorClick'
                 }, '->'].concat(me.toolBtns.map(function (btn) {