Bläddra i källkod

其他收支单mainFieldConfig配置预设

zhuth 7 år sedan
förälder
incheckning
f9371a6940

+ 1 - 1
frontend/saas-web/app/view/document/customer/FormPanel.js

@@ -56,7 +56,7 @@ Ext.define('saas.view.document.customer.FormPanel', {
     },
 
     initComponent: function () {
-        Ext.applyIf(this, {
+        Ext.apply(this, {
             defaultItems: [{
                 xtype: 'hidden',
                 name: 'id',

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

@@ -72,9 +72,13 @@ Ext.define('saas.view.money.othreceipts.FormPanel', {
                 }, {
                     from: 'cr_rate', to: 'or_rate'
                 }],
-                defaultValue: {
-                    or_currency: 'RMB',
-                    or_rate: 1
+                // defaultValue: {
+                //     or_currency: 'RMB',
+                //     or_rate: 1
+                // },
+                mainFieldConfig: {
+                    readOnly: false,
+                    defaultReadOnly: false,
                 },
                 supFieldConfig: {
                     xtype: 'numberfield',

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

@@ -66,9 +66,13 @@ Ext.define('saas.view.money.othspendings.FormPanel', {
                 }, {
                     from: 'cr_rate', to: 'os_rate'
                 }],
-                defaultValue: {
-                    os_currency: 'RMB',
-                    os_rate: 1
+                // defaultValue: {
+                //     os_currency: 'RMB',
+                //     os_rate: 1
+                // },
+                mainFieldConfig: {
+                    readOnly: false,
+                    defaultReadOnly: false,
                 },
                 supFieldConfig: {
                     xtype: 'numberfield',