Browse Source

核销单Bug修改

hy 6 years ago
parent
commit
ce3bcc5e3d

+ 9 - 1
frontend/saas-web/app/view/core/dbfind/ConDbfindTrigger.js

@@ -81,7 +81,9 @@ Ext.define('saas.view.core.form.field.ConDbfindTrigger', {
             });
             });
             field1.on('blur', function(f) {
             field1.on('blur', function(f) {
                 f.ownerCt.dbValues = f.dbValues;
                 f.ownerCt.dbValues = f.dbValues;
-                me.fireEvent('change', this)
+            });
+            field1.on('dirtychange',function(f,dirty,e){
+                me.dirtyChange(me,f,dirty)
             });
             });
 
 
             field2.on('validChange', function() {
             field2.on('validChange', function() {
@@ -109,5 +111,11 @@ Ext.define('saas.view.core.form.field.ConDbfindTrigger', {
 
 
     isDirty: function() {
     isDirty: function() {
         return this.items.items[0].isDirty() || this.items.items[1].isDirty();
         return this.items.items[0].isDirty() || this.items.items[1].isDirty();
+    },
+
+    dirtyChange:function(me,f,dirty){
+        if(dirty || !f.value || f.value == ''){
+            me.fireEvent('change');
+        }
     }
     }
 });
 });

+ 9 - 9
frontend/saas-web/app/view/money/verification/FormPanel.js

@@ -556,9 +556,9 @@ Ext.define('saas.view.money.verification.FormPanel', {
                             from: 'cr_rate',
                             from: 'cr_rate',
                             to: 'vc_rate'
                             to: 'vc_rate'
                         }],
                         }],
-                        // listeners: {
-                        //     change: 'clearDetails'
-                        // },
+                        listeners: {
+                            change: 'clearDetails'
+                        },
                         supFieldConfig: {
                         supFieldConfig: {
                             xtype: 'numberfield',
                             xtype: 'numberfield',
                             readOnly: false,
                             readOnly: false,
@@ -720,9 +720,9 @@ Ext.define('saas.view.money.verification.FormPanel', {
                             from: 'cr_rate',
                             from: 'cr_rate',
                             to: 'vc_rate'
                             to: 'vc_rate'
                         }],
                         }],
-                        // listeners: {
-                        //     change: 'clearDetails'
-                        // },
+                        listeners: {
+                            change: 'clearDetails'
+                        },
                         supFieldConfig: {
                         supFieldConfig: {
                             xtype: 'numberfield',
                             xtype: 'numberfield',
                             readOnly: false,
                             readOnly: false,
@@ -804,9 +804,9 @@ Ext.define('saas.view.money.verification.FormPanel', {
                             from: 'cr_rate',
                             from: 'cr_rate',
                             to: 'vc_rate'
                             to: 'vc_rate'
                         }],
                         }],
-                        // listeners: {
-                        //     change: 'clearDetails'
-                        // },
+                        listeners: {
+                            change: 'clearDetails'
+                        },
                         supFieldConfig: {
                         supFieldConfig: {
                             xtype: 'numberfield',
                             xtype: 'numberfield',
                             readOnly: false,
                             readOnly: false,