Browse Source

其他收支单币别汇率自动带出

zhuth 7 years ago
parent
commit
50afa1786e

+ 1 - 1
frontend/saas-web/app/view/money/othreceipts/FormPanel.js

@@ -78,7 +78,7 @@ Ext.define('saas.view.money.othreceipts.FormPanel', {
                 // },
                 mainFieldConfig: {
                     readOnly: true,
-                    defaultReadOnly: false,
+                    defaultReadOnly: true,
                 },
                 supFieldConfig: {
                     xtype: 'numberfield',

+ 6 - 0
frontend/saas-web/app/view/money/othreceipts/FormPanelController.js

@@ -83,6 +83,12 @@ Ext.define('saas.view.money.othreceipts.FormPanelController', {
                         }, {
                             from: 'cu_name',
                             to: 'or_custname'
+                        }, {
+                            from: 'cu_currency',
+                            to: 'or_currency'
+                        }, {
+                            from: 'cr_rate',
+                            to: 'or_rate'
                         }],
                     });
 

+ 1 - 1
frontend/saas-web/app/view/money/othspendings/FormPanel.js

@@ -72,7 +72,7 @@ Ext.define('saas.view.money.othspendings.FormPanel', {
                 // },
                 mainFieldConfig: {
                     readOnly: true,
-                    defaultReadOnly: false,
+                    defaultReadOnly: true,
                 },
                 supFieldConfig: {
                     xtype: 'numberfield',

+ 6 - 0
frontend/saas-web/app/view/money/othspendings/FormPanelController.js

@@ -74,6 +74,12 @@ Ext.define('saas.view.money.othspendings.FormPanelController', {
                         }, {
                             from: 've_name',
                             to: 'os_vendname'
+                        }, {
+                            from: 've_currency',
+                            to: 'os_currency'
+                        }, {
+                            from: 'cr_rate',
+                            to: 'os_rate'
                         }],
                     });