Browse Source

资金模块-调整资金模块单据界面

huangx 7 years ago
parent
commit
93253e0a44

+ 2 - 2
frontend/saas-web/app/view/money/fundtransfer/FormPanel.js

@@ -9,7 +9,7 @@ Ext.define('saas.view.money.fundtransfer.FormPanel', {
     caller:'FundTransfer',
     
      //字段属性
-     _title:'其它收入单',
+     _title:'资金转账',
      _idField: 'id',
      _codeField: 'ft_code',
      _statusField: 'ft_status',
@@ -51,7 +51,7 @@ Ext.define('saas.view.money.fundtransfer.FormPanel', {
                     xtype : "numberfield"
                 },
                 width : 120.0, 
-                xtype : "numbercolumn", 
+                xtype : "hidden",
                 items : null
             }, {
                 text : "转出账户ID", 

+ 1 - 2
frontend/saas-web/app/view/money/fundtransfer/FormPanelController.js

@@ -68,8 +68,7 @@ Ext.define('saas.view.money.fundtransfer.FormPanelController', {
                             "width": 120,
                             "xtype": "datecolumn"
                         }]
-                    }) ;   
-
+                    }) ;
                 }
             },
             'dbfindtrigger[name=ftd_inbankname]':{

+ 1 - 1
frontend/saas-web/app/view/money/fundtransfer/QueryPanel.js

@@ -24,7 +24,7 @@ Ext.define('saas.view.money.fundtransfer.QueryPanel', {
             text: 'id',
             dataIndex: 'id',
             width: 0,
-            xtype: 'numbercolumn'
+            xtype: 'hidden'
         }, {
             text: '单据编号',
             dataIndex: 'ft_code',

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

@@ -75,12 +75,11 @@ Ext.define('saas.view.money.othreceipts.FormPanel', {
             }, {
                 text : "收入类别", 
                 width : 200.0, 
-                dataIndex : "ord_type", 
-                xtype : "", 
+                dataIndex : "ord_type",
                 items : null,
                 editor : {
                     xtype : "remotecombo", 
-                    storeUrl:'/api/document/inoutkind/getCombo',
+                    storeUrl:'/api/document/fundinouttype/getCombo',
                     addHandler:function(b){
                         var document = Ext.create('saas.view.document.kind.Kind',{});
                         var form =this.ownerCmp.ownerCt.ownerCmp.ownerCt;
@@ -89,8 +88,8 @@ Ext.define('saas.view.money.othreceipts.FormPanel', {
                             bind: {
                                 title: '新增收入类别类型'
                             },
-                            dataKind:'inoutkind',
-                            belong:document.etc['inoutkind'],
+                            dataKind:'fundinouttype',
+                            belong:document.etc['fundinouttype'],
                             _parent:form,
                             _combo:this.ownerCmp,
                             record:null,

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

@@ -49,7 +49,7 @@ Ext.define('saas.view.money.othreceipts.QueryPanel', {
         baseColumn: [{
             text: 'id',
             dataIndex: 'id',
-            width: 100,
+            width: 0,
             xtype: 'numbercolumn'
         }, {
             text: '单据编号',

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

@@ -35,7 +35,7 @@ Ext.define('saas.view.money.othspendings.FormPanel', {
          name : 'os_vendcode', 
          fieldLabel : '供应商编号'
      }, {
-         xtype : "dbfindtrigger", 
+         xtype : "dbfindtrigger",
          name : "os_vendname", 
          fieldLabel : "供应商名称"
      }, {
@@ -47,10 +47,18 @@ Ext.define('saas.view.money.othspendings.FormPanel', {
          name : 'os_bankcode', 
          fieldLabel : '结算账户编号'
      }, {
-         xtype : "dbfindtrigger", 
+         xtype : "dbfindtrigger",
          name : "os_bankname", 
          fieldLabel : "结算账户名称"
      }, {
+        xtype:'datefield',
+        name : 'os_date',
+        fieldLabel : '单据日期'
+    },{
+        xtype : 'numberfield',
+        name : 'os_amount',
+        fieldLabel : '付款金额'
+    },{
         name : "detailGridField", 
         xtype : "detailGridField", 
         storeModel:'saas.model.money.Othspendings',
@@ -70,17 +78,16 @@ Ext.define('saas.view.money.othspendings.FormPanel', {
                     xtype : "numberfield"
                 },
                 width : 120.0, 
-                xtype : "numbercolumn", 
+                xtype : "hidden",
                 items : null
             }, {
                 text : "支出类别", 
                 width : 200.0, 
-                dataIndex : "osd_type", 
-                xtype : "", 
+                dataIndex : "osd_type",
                 items : null,
                 editor : {
                     xtype : "remotecombo", 
-                    storeUrl:'/api/document/inoutkind/getCombo',
+                    storeUrl:'/api/document/fundinouttype/getCombo',
                     addHandler:function(b){
                         var document = Ext.create('saas.view.document.kind.Kind',{});
                         var form =this.ownerCmp.ownerCt.ownerCmp.ownerCt;
@@ -89,8 +96,8 @@ Ext.define('saas.view.money.othspendings.FormPanel', {
                             bind: {
                                 title: '新增收入类别类型'
                             },
-                            dataKind:'inoutkind',
-                            belong:document.etc['inoutkind'],
+                            dataKind:'fundinouttype',
+                            belong:document.etc['fundinouttype'],
                             _parent:form,
                             _combo:this.ownerCmp,
                             record:null,
@@ -151,6 +158,5 @@ Ext.define('saas.view.money.othspendings.FormPanel', {
         fieldLabel : "录入日期",
         readOnly:true
     }
-
     ]
 });

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

@@ -49,7 +49,7 @@ Ext.define('saas.view.money.othspendings.QueryPanel', {
         baseColumn: [{
             text: 'id',
             dataIndex: 'id',
-            width: 100,
+            width: 0,
             xtype: 'numbercolumn'
         }, {
             text: '单据编号',

+ 66 - 24
frontend/saas-web/app/view/money/payBalance/FormPanel.js

@@ -61,10 +61,6 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         xtype: "datefield",
         name: "pb_date",
         fieldLabel: "日期"
-    },{
-      xtype:"textfield",
-      name:"pb_code",
-      fieldLabel:"单号"
     },{
         xtype: 'hidden',
         name: 'pb_manname',
@@ -110,15 +106,38 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         }, {
             text: '结算账户ID',
             dataIndex: 'pd_bankid',
-            editor:{
-                xtype:'hidden'
-            }
+            xtype:'hidden'
         }, {
         //     text: '结算账户编号',
         //     dataIndex: 'paybalancedet'
         // }, {
             text: '资金账户',
-            dataIndex: 'pd_bankname'
+            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();
+            // }
         }, {
             text: "付款金额",
             dataIndex: "pd_amount",
@@ -141,10 +160,27 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
             }
         }, {
             text: "结算方式",
-            dataIndex: "pd_paymethod"
+            dataIndex: "pd_paymethod",
+            editor : {
+                xtype:'combo',
+                queryMode: 'local',
+                displayField: 'display',
+                valueField: 'value',
+                store:Ext.create('Ext.data.Store', {
+                    fields: ['value', 'display'],
+                    data : [{value:"信用卡", display:"信用卡"},
+                        {value:"支票", display:"支票"},
+                        {value:"汇票", display:"汇票"},
+                        {value:"现金", display:"现金"},
+                        {value:"银行转账", display:"银行转账"}]
+                })
+            }
         }, {
             text: "结算号",
-            dataIndex: "pd_paycode"
+            dataIndex: "pd_paycode",
+            editor:{
+                xtype:'textfield'
+            }
         }, {
             text: "备注",
             dataIndex: "pd_remark",
@@ -154,36 +190,44 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
             }
         }]
     }, {
+        xtype:'button',
+        text:'选择源单',
+        width:100
+
+    },{
         xtype: "detailGridField",
         storeModel: 'saas.model.money.PayBalance2',
         detnoColumn: 'pbd_detno',
         deleteDetailUrl: '/api/money/paybalance/deleteDetail2/',
-        ltar: {
-          xtype:'button',
-          text:'选择源单',
-          name:'chooseSource'
-        },columns: [{
+        columns: [{
             text: 'ID',
             dataIndex: 'id',
             hidden: true
         }, {
             text: '期间',
             dataIndex: 'pbd_ym',
-            editor:{
-                xtype:'hidden'
-            }
+            xtype:'hidden'
         }, {
             text: '来源ID',
             dataIndex: 'pbd_slid',
-            editor:{
-                xtype:'hidden'
-            }
+            xtype:'hidden'
         }, {
             text: '来源单号',
             dataIndex: 'pbd_slcode'
         }, {
             text: "业务类型",
             dataIndex: "pbd_slkind",
+            editor : {
+                xtype:'combo',
+                queryMode: 'local',
+                displayField: 'display',
+                valueField: 'value',
+                store:Ext.create('Ext.data.Store', {
+                    fields: ['value', 'display'],
+                    data : [{value:"应付", display:"应付"},
+                        {value:"应收", display:"应收"}]
+                })
+            }
         }, {
             text: "单据日期",
             dataIndex: "pbd_sldate",
@@ -273,9 +317,7 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
             text: '备注',
             dataIndex: 'pbd_remark',
             width: 250,
-            editor:{
-                xtype: 'hidden'
-            }
+            xtype: 'hidden'
         }]
     }, {
         xtype: 'hidden',

+ 4 - 1
frontend/saas-web/app/view/money/payBalance/FormPanelController.js

@@ -9,7 +9,7 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
             'dbfindtrigger[name=pb_vendname]':{
                 beforerender: function (f) {
                     Ext.apply(f, {
-                        dataUrl: 'api/document/vendor/list',
+                        dataUrl: '/api/document/vendor/list',
                         addXtype: 'document-vendor-formpanel',
                         addTitle: '供应商资料',
                         dbfinds: [{
@@ -18,6 +18,9 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
                         }, {
                             from: 've_name',
                             to: 'pb_vendname'
+                        },{
+                            from: 've_leftamount',
+                            to: 've_leftamount'
                         }],
                         dbtpls: [{
                             field: 've_code',

+ 3 - 3
frontend/saas-web/app/view/money/payBalance/QueryPanel.js

@@ -18,9 +18,9 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
         codeField: 'pb_code',
         addTitle: '付款单',
         addXtype: 'money-paybalance-formpanel',
-        defaultCondition:'',
+        defaultCondition:'1=1',
         baseVastUrl: '/api/money/paybalance/',
-        // baseVastUrl: 'http://192.168.253.129:8940/money/paybalance/',
+        // baseVastUrl: 'http://127.0.0.1:8880/paybalance/',
         baseColumn: [{
             text: 'id',
             dataIndex: 'id',
@@ -38,7 +38,7 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
         }, {
             text: '日期',
             dataIndex: 'pb_date',
-            width: 120
+            width: 160
         }, {
             text: '供应商编号',
             dataIndex: 'pb_vendcode',

+ 25 - 36
frontend/saas-web/app/view/money/recBalance/FormPanel.js

@@ -32,7 +32,7 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         name: 'rb_custid',
         fieldLabel: '客户ID'
     }, {
-        xtype: 'hidden',
+        xtype: 'textfield',
         name: 'rb_kind',
         fieldLabel: '单据类型',
         defaultValue: '收款单'
@@ -89,9 +89,9 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         }, {
             text: '期间',
             dataIndex: 'rd_ym',
-            editor: {
-                xtype: 'numberfield'
-            },
+            // editor: {
+            //     xtype: 'numberfield'
+            // },
             hidden: true
         }, {
             text: '资金账户ID',
@@ -139,8 +139,19 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         }, {
             text: "结算方式",
             dataIndex: "rd_paymethod",
-            editor: {
-                xtype: 'textfield'
+            editor : {
+                xtype:'combo',
+                queryMode: 'local',
+                displayField: 'display',
+                valueField: 'value',
+                store:Ext.create('Ext.data.Store', {
+                    fields: ['value', 'display'],
+                    data : [{value:"信用卡", display:"信用卡"},
+                        {value:"支票", display:"支票"},
+                        {value:"汇票", display:"汇票"},
+                        {value:"现金", display:"现金"},
+                        {value:"银行转账", display:"银行转账"}]
+                })
             }
         }, {
             text: "结算号",
@@ -157,6 +168,11 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
             }
         }]
     }, {
+        xtype:'button',
+        text:'选择源单',
+        width:100
+
+    },{
         xtype: "detailGridField",
         storeModel: 'saas.model.money.RecBalance2',
         detnoColumn: 'rbd_detno',
@@ -181,29 +197,16 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
             hidden: true
         }, {
             text: '来源单号',
-            dataIndex: 'rbd_slcode',
-            editor: {
-                xtype: 'textfield'
-            }
+            dataIndex: 'rbd_slcode'
         }, {
             text: "业务类型",
-            dataIndex: "rbd_slkind",
-            editor: {
-                xtype: 'textfield'
-            }
+            dataIndex: "rbd_slkind"
         }, {
             text: "单据日期",
-            dataIndex: "rbd_sldate",
-            editor: {
-                xtype: 'datefield'
-            }
+            dataIndex: "rbd_sldate"
         }, {
             text: "单据金额",
             dataIndex: "rbd_amount",
-            // editor : {
-            //     xtype : "numberfield",
-            //     decimalPrecision: 2
-            // },
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length)).fill('0');
@@ -220,10 +223,6 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         }, {
             text: "已核销金额",
             dataIndex: "rbd_nowbalance",
-            // editor : {
-            //     xtype : "numberfield",
-            //     decimalPrecision: 2
-            // },
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length)).fill('0');
@@ -240,10 +239,6 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         }, {
             text: "未核销金额",
             dataIndex: "pbd_nowbalance",
-            // editor : {
-            //     xtype : "numberfield",
-            //     decimalPrecision: 2
-            // },
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length)).fill('0');
@@ -277,12 +272,6 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
                 var format = '0,000.' + xr.join();
                 return Ext.util.Format.number(v, format);
             }
-        // }, {
-        //     text: '备注',
-        //     dataIndex: 'rbd_remark',
-        //     editor: {
-        //         xtype: 'textfield'
-        //     }
         }]
     }, {
         xtype: 'numberfield',

+ 8 - 0
frontend/saas-web/app/view/money/recBalance/FormPanelController.js

@@ -19,12 +19,16 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                             from:'cu_code', to:'rb_custcode'
                         },{
                             from:'cu_name', to:'rb_custname'
+                        },{
+                            from:'cu_leftamount', to:'rb_rdamount'
                         }],
                         //联想设置
                         dbtpls:[{
                             field:'cu_code',width:100
                         },{
                             field:'cu_name',width:100
+                        },{
+                            field:'cu_leftamount',width:100
                         }],
                         defaultCondition: 'cu_statuscode="OPEN"',
                         dbSearchFields:[{
@@ -58,6 +62,10 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                             "text": "业务员",
                             "dataIndex": "cu_sellername",
                             "width": 100
+                        },{
+                            "text": "应收款余额",
+                            "dataIndex": "cu_leftamount",
+                            "width": 100
                         },{
                             "text": "税率",
                             "dataIndex": "cu_taxrate",