Browse Source

资金模块-资金账户下拉调整

huangx 7 years ago
parent
commit
708a38eda3

+ 25 - 23
frontend/saas-web/app/view/money/payBalance/FormPanel.js

@@ -115,30 +115,32 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
             text: '资金账户',
             dataIndex: 'pd_bankname',
             editable:false,
-            xtype : "remotecombo",
-            storeUrl:'/api/document/bankinformation/getCombo',
-            name : "bk_bankname",
-            fieldLabel : "资金账户",
-            allowBlank : false, //不能为空
-            columnWidth : 0.25,//布局
-            hiddenBtn:false,//true 则会关闭新增按钮功能
-            addHandler:function(b){
-                var document = Ext.create('saas.view.document.kind.Kind',{});
-                var form = this.ownerCmp.ownerCt;
-                this.dialog = form.getController().getView().add({
-                    xtype: 'document-kind-childwin',
-                    bind: {
-                        title: '新增资金账户'
-                    },
-                    dataKind:'bankinformation',
-                    belong:document.etc['bankinformation'],
-                    _parent:form,
-                    _combo:this.ownerCmp,
-                    record:null,
-                    session: true
-                });
-                this.dialog.show();
+            editor:{
+                xtype : "remotecombo",
+                storeUrl:'/api/document/bankinformation/getCombo',
+                name : "bk_bankname",
+                allowBlank : false, //不能为空
+                columnWidth : 0.25,//布局
+                hiddenBtn:false,//true 则会关闭新增按钮功能
+                addHandler:function(b){
+                    var document = Ext.create('saas.view.document.kind.Kind',{});
+                    var form = this.ownerCmp.ownerCt;
+                    this.dialog = form.getController().getView().add({
+                        xtype: 'document-kind-childwin',
+                        bind: {
+                            title: '新增资金账户'
+                        },
+                        dataKind:'bankinformation',
+                        belong:document.etc['bankinformation'],
+                        _parent:form,
+                        _combo:this.ownerCmp,
+                        record:null,
+                        session: true
+                    });
+                    this.dialog.show();
+                }
             }
+
         }, {
             text: "付款金额",
             dataIndex: "pd_amount",

+ 24 - 23
frontend/saas-web/app/view/money/recBalance/FormPanel.js

@@ -113,29 +113,30 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
             text: '资金账户',
             dataIndex: 'pd_bankname',
             editable:false,
-            xtype : "remotecombo",
-            storeUrl:'/api/document/bankinformation/getCombo',
-            name : "bk_bankname",
-            fieldLabel : "资金账户",
-            allowBlank : false, //不能为空
-            columnWidth : 0.25,//布局
-            hiddenBtn:false,//true 则会关闭新增按钮功能
-            addHandler:function(b){
-                var document = Ext.create('saas.view.document.kind.Kind',{});
-                var form = this.ownerCmp.ownerCt;
-                this.dialog = form.getController().getView().add({
-                    xtype: 'document-kind-childwin',
-                    bind: {
-                        title: '新增资金账户'
-                    },
-                    dataKind:'bankinformation',
-                    belong:document.etc['bankinformation'],
-                    _parent:form,
-                    _combo:this.ownerCmp,
-                    record:null,
-                    session: true
-                });
-                this.dialog.show();
+            editor:{
+                xtype : "remotecombo",
+                storeUrl:'/api/document/bankinformation/getCombo',
+                name : "bk_bankname",
+                allowBlank : false, //不能为空
+                columnWidth : 0.25,//布局
+                hiddenBtn:false,//true 则会关闭新增按钮功能
+                addHandler:function(b){
+                    var document = Ext.create('saas.view.document.kind.Kind',{});
+                    var form = this.ownerCmp.ownerCt;
+                    this.dialog = form.getController().getView().add({
+                        xtype: 'document-kind-childwin',
+                        bind: {
+                            title: '新增资金账户'
+                        },
+                        dataKind:'bankinformation',
+                        belong:document.etc['bankinformation'],
+                        _parent:form,
+                        _combo:this.ownerCmp,
+                        record:null,
+                        session: true
+                    });
+                    this.dialog.show();
+                }
             }
         }, {
             text: "收款金额",