Просмотр исходного кода

【多币别】【收付款单、其它收入支出、资金转存多币别优化】

rainco 7 лет назад
Родитель
Сommit
4ded73cf9b

+ 18 - 6
frontend/saas-web/app/model/money/FundTransfer.js

@@ -4,16 +4,28 @@ Ext.define('saas.model.money.FundTransfer', {
         { name: 'ftd_id', type: 'int' },
         { name: 'ftd_ftid', type: 'int' },
         { name: 'ftd_detno', type: 'int' },
-        { name: 'ftd_ym', type: 'int' },
+        { name: 'ftd_ym', type: 'int' }, //期间
         { name: 'ftd_bankid', type: 'int' },
         { name: 'ftd_bankcode', type: 'string' },
-        { name: 'ftd_bankname', type: 'string' },
+        { name: 'ftd_bankname', type: 'string' },//转出账户
+        { name: 'ftd_currency', type: 'string' },//转出币别
+        { name: 'ftd_nowbalance', type: 'float' },//转出金额
         { name: 'ftd_inbankid', type: 'int' },
         { name: 'ftd_inbankcode', type: 'string' },
-        { name: 'ftd_inbankname', type: 'string' },
-        { name: 'ftd_nowbalance', type: 'float' },
-        { name: 'ftd_paymethod', type: 'string' },
-        { name: 'ftd_paycode', type: 'string' },
+        { name: 'ftd_inbankname', type: 'string' },//转入账户
+        { name: 'ftd_incurrency', type: 'string' },//转入币别
+        { name: 'ftd_innowbalance', type: 'float' },//转入金额
+        { name: 'ftd_rate', type: 'float', //转存汇率 = 转出金额/转入金额
+            convert: function(v, rec) {
+                if(rec.get('ftd_innowbalance')&&rec.get('ftd_nowbalance')){
+                    var t = rec.get('ftd_nowbalance') /  rec.get('ftd_innowbalance');
+                    return Number(saas.util.BaseUtil.numberFormat(t, 6, false)); 
+                }
+            },
+            depends: ['ftd_innowbalance', 'ftd_nowbalance'] 
+        },
+        { name: 'ftd_paymethod', type: 'string' },//结算方式
+        { name: 'ftd_paycode', type: 'string' },//结算号
         { name: 'ftd_remark', type: 'string' },
         { name: 'ftd_text1', type: 'string' },
         { name: 'ftd_text2', type: 'string' },

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

@@ -86,9 +86,26 @@ Ext.define('saas.view.money.fundtransfer.FormPanel', {
                         valueField: "value"
                     }
                 }, {
-                    text: "转出账户币别",
+                    text: "转出币别",
                     dataIndex: "ftd_currency",
-                    ignore: true
+                    align:'center'
+                }, {
+                    text: "转出金额(元)",
+                    xtype: 'numbercolumn',
+                    dataIndex: "ftd_nowbalance",
+                    allowBlank: false,
+                    width: 150.0,
+                    editor: {
+                        xtype: "numberfield",
+                        decimalPrecision: 2
+                    },
+                    renderer: function(v, m, r) {
+                        return saas.util.BaseUtil.numberFormat(v, 2, true);
+                    },
+                    summaryType: 'sum',
+                    summaryRenderer: function(v, d, f, m) {
+                        return saas.util.BaseUtil.numberFormat(v, 2, true);
+                    }
                 }, {
                     text: "转入账户ID",
                     dataIndex: "ftd_inbankid",
@@ -118,16 +135,15 @@ Ext.define('saas.view.money.fundtransfer.FormPanel', {
                         xtype: "bandinfoDbfindTrigger"
                     }
                 }, {
-                    text: "转入账户币别",
+                    text: "转入币别",
                     dataIndex: "ftd_incurrency",
-                    ignore: true,
-                    width: 150.0
+                    align:'center'
                 }, {
-                    text: "本次转出金额(元)",
+                    text: "转入金额(元)",
                     xtype: 'numbercolumn',
-                    dataIndex: "ftd_nowbalance",
-                    width: 150.0,
+                    dataIndex: "ftd_innowbalance",
                     allowBlank: false,
+                    width: 150.0,
                     editor: {
                         xtype: "numberfield",
                         decimalPrecision: 2
@@ -140,11 +156,10 @@ Ext.define('saas.view.money.fundtransfer.FormPanel', {
                         return saas.util.BaseUtil.numberFormat(v, 2, true);
                     }
                 }, {
-                        text: "转存汇率",
-                        dataIndex: "ftd_rate",
-                        ignore: true,
-                        width: 150.0
-                    }, {
+                    text: "转存汇率",
+                    dataIndex: "ftd_rate",
+                    width: 150.0
+                }, {
                     text: "结算方式",
                     width: 110.0,
                     dataIndex: "ftd_paymethod",

+ 4 - 0
frontend/saas-web/app/view/money/fundtransfer/FormPanelController.js

@@ -16,6 +16,8 @@ Ext.define('saas.view.money.fundtransfer.FormPanelController', {
                             from:'id',to:'ftd_bankid',ignore:true
                         },{
                             from:'bk_thisamount',to:'bk_outthisamount'
+                        },{
+                            from:'bk_currency',to:'ftd_currency'
                         }],
                     }) ;
                 }
@@ -33,6 +35,8 @@ Ext.define('saas.view.money.fundtransfer.FormPanelController', {
                             from:'id',to:'ftd_inbankid',ignore:true
                         },{
                             from:'bk_thisamount',to:'bk_inthisamount'
+                        },{
+                            from:'bk_currency',to:'ftd_incurrency'
                         }],
                     }) ;   
 

+ 13 - 10
frontend/saas-web/app/view/money/payBalance/FormPanel.js

@@ -50,16 +50,10 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
                 name: "pb_vendname",
                 fieldLabel: "供应商名称",
                 allowBlank: false,
+                columnWidth: 0.5,
                 listeners: {
                     change: 'clearDetails'
                 }
-            }, {
-                xtype: "numberfield",
-                name: "ve_leftamount",
-                fieldLabel: "总欠款(元)",
-                thousandSeparator: ',',
-                ignore: true,
-                readOnly: true
             }, {
                 xtype: "datefield",
                 name: "pb_date",
@@ -76,6 +70,9 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
                 }, {
                     from: 'cr_rate', to: 'pb_rate'
                 }],
+                listeners: {
+                    change: 'clearDetails'
+                },
                 supFieldConfig: {
                     xtype: 'numberfield',
                     readOnly: false,
@@ -83,12 +80,18 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
                     decimalPrecision: 6,
                     vtype: 'positiveNumber'
                 }
-            },
-                {
+            }, {
                 xtype: 'textfield',
                 name: 'pb_manname',
                 fieldLabel: '付款人',
                 defaultValue: saas.util.BaseUtil.getCurrentUser().realname
+            }, {
+                xtype: "numberfield",
+                name: "ve_leftamount",
+                fieldLabel: "总欠款(元)",
+                thousandSeparator: ',',
+                ignore: true,
+                readOnly: true
             }, {
                 xtype: 'hidden',
                 name: 'pb_pdamount',
@@ -106,7 +109,7 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
                 thousandSeparator: ',',
                 readOnly: true
             }, {
-                xtype: 'numberfield',
+                xtype: 'hidden',
                 name: 'pb_discounts',
                 fieldLabel: '整单折扣(元)',
                 hidden: true

+ 47 - 9
frontend/saas-web/app/view/money/payBalance/FormPanelController.js

@@ -62,26 +62,46 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
                             to:'pbd_nowbalance'
                         }],
                         defaultCondition: "sl_vendid<>0 and ((sl_kind in ('采购验收单','采购验退单')) or (sl_kind='期初余额' and sl_ym="+
-                                  "'(select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid))) and sl_namount<>0'"
+                                  "(select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid))) and sl_namount<>0"
                     });
                 },
                 beforequery: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    pb_vendname = viewModel.get('pb_vendname');
+                    pb_vendname = viewModel.get('pb_vendname'),
+                    pb_currency = viewModel.get('pb_currency'),
+                    pb_vendid = viewModel.get('pb_vendid');
                     if(!pb_vendname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">供应商名称</span>】');
                         return false;
                     }
+                    if(!pb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "sl_vendid = "+pb_vendid+" and sl_currency ='"+rb_currency+"' AND sl_custid <> 0 AND (  sl_kind IN ( '出货单', '销售退货单' ) OR ( sl_kind = '期初余额' AND sl_ym = (select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid) ) "+
+                        ") and sl_namount<>0 "
+                    });
                 },
                 beforetriggerclick: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    pb_vendname = viewModel.get('pb_vendname');
+                    pb_vendname = viewModel.get('pb_vendname'),
+                    pb_currency = viewModel.get('pb_currency'),
+                    pb_vendid = viewModel.get('pb_vendid');
                     if(!pb_vendname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">供应商名称</span>】');
                         return false;
                     }
+                    if(!pb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "sl_vendid = "+pb_vendid+" and sl_currency ='"+rb_currency+"' AND sl_custid <> 0 AND (  sl_kind IN ( '出货单', '销售退货单' ) OR ( sl_kind = '期初余额' AND sl_ym = (select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid) ) "+
+                        ") and sl_namount<>0 "
+                    });
                 }
             },
 
@@ -100,25 +120,40 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
                             to: 'pd_bankname'
                         }],
                     });
-
                 },
                 beforequery: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    rb_custname = viewModel.get('pb_vendname');
+                    rb_custname = viewModel.get('pb_vendname'),
+                    pb_currency = viewModel.get('pb_currency');
                     if(!rb_custname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">供应商名称</span>】');
                         return false;
                     }
+                    if(!pb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "bk_currency ='"+rb_currency+"'"
+                    });
                 },
                 beforetriggerclick: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    rb_custname = viewModel.get('pb_vendname');
+                    rb_custname = viewModel.get('pb_vendname'),
+                    pb_currency = viewModel.get('pb_currency');
                     if(!rb_custname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">供应商名称</span>】');
                         return false;
                     }
+                    if(!pb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "bk_currency ='"+rb_currency+"'"
+                    });
                 }
             }
         });
@@ -207,14 +242,17 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
     },
     vendnamechange:function(dbfindtrigger){
         var me = this,
-            viewModel = me.getViewModel();
-
-        var c = viewModel.get('pb_vendname_change');
+            viewModel = me.getViewModel(),
+            c = viewModel.get('pb_vendname_change'),
+            pb_currency = viewModel.get('pb_currency');
         if(c!=null&&c!=''){
             c = ' and sl_vendid='+c;
         }else{
             c ='';
         }
+        if(pb_currency!=null&&pb_currency!='') {
+            c = ' and sl_currency='+pb_currency+"'";
+        }
         dbfindtrigger.defaultCondition="((sl_kind in ('采购验收单','采购验退单')) or (sl_kind='期初余额' and sl_ym="+
         "(select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid))) and sl_namount<>0" + c
     },

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

@@ -49,26 +49,10 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
                 name: "rb_custname",
                 fieldLabel: "客户名称",
                 allowBlank: false,
+                columnWidth: 0.5,
                 listeners: {
                     change: 'clearDetails'
                 }
-            }, {
-                xtype: "numberfield",
-                name: "cu_leftamount",
-                fieldLabel: "总欠款",
-                thousandSeparator: ',',
-                ignore: true,
-                readOnly: true
-            }, {
-                xtype: 'hidden',
-                name: 'rb_rbdamount',
-                fieldLabel: '本次核销金额(元)',
-                thousandSeparator: ','
-            }, {
-                xtype: 'hidden',
-                name: 'rb_rdamount',
-                fieldLabel: '本次付款金额(元)',
-                thousandSeparator: ','
             }, {
                 xtype: "datefield",
                 name: "rb_date",
@@ -85,10 +69,9 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
                 }, {
                     from: 'cr_rate', to: 'rb_rate'
                 }],
-                // defaultValue: {
-                //     rb_currency: 'RMB',
-                //     rb_rate: 1
-                // },
+                listeners: {
+                    change: 'clearDetails'
+                },
                 supFieldConfig: {
                     xtype: 'numberfield',
                     readOnly: false,
@@ -96,11 +79,30 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
                     decimalPrecision: 6,
                     vtype: 'positiveNumber'
                 }
-                }, {
+            }, {
                 xtype: "textfield",
                 name: "rb_manname",
                 fieldLabel: "收款人",
                 defaultValue: saas.util.BaseUtil.getCurrentUser().realname
+            }, {
+                xtype: "numberfield",
+                name: "cu_leftamount",
+                fieldLabel: "总欠款(元)",
+                thousandSeparator: ',',
+                ignore: true,
+                readOnly: true
+            }, {
+                xtype: 'hidden',
+                name: 'rb_rbdamount',
+                fieldLabel: '本次核销金额(元)',
+                thousandSeparator: ',',
+                hidden: true
+            }, {
+                xtype: 'hidden',
+                name: 'rb_rdamount',
+                fieldLabel: '本次付款金额(元)',
+                thousandSeparator: ',',
+                hidden: true
             }, {
                 xtype: "numberfield",
                 name: "rb_discounts",
@@ -109,12 +111,14 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
             }, {
                 xtype: 'numberfield',
                 name: 'rb_preamount',
-                fieldLabel: '本次预收款',
+                fieldLabel: '本次预收(元)',
+                thousandSeparator: ',',
                 readOnly: true
             }, {
-                xtype: 'hidden',
+                xtype: 'numberfield',
                 name: 'rb_havebalance',
-                fieldLabel: '已核销金额(元)'
+                fieldLabel: '已核销金额(元)',
+                hidden: true
             }, {
                 xtype: "detailGridField",
                 name: 'detail1',

+ 47 - 12
frontend/saas-web/app/view/money/recBalance/FormPanelController.js

@@ -22,8 +22,7 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                             from:'cu_currency',to:'rb_currency'
                         },{
                             from:'cr_rate',to:'rb_rate'
-                        }
-                        ],
+                        }],
                     }) ;   
                 }
             },
@@ -46,20 +45,36 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                 beforequery: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    rb_custname = viewModel.get('rb_custname');
+                    rb_custname = viewModel.get('rb_custname'),
+                    rb_currency = viewModel.get('rb_currency');
                     if(!rb_custname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">客户名称</span>】');
                         return false;
                     }
+                    if(!rb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "bk_currency ='"+rb_currency+"'"
+                    });
                 },
                 beforetriggerclick: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    rb_custname = viewModel.get('rb_custname');
+                    rb_custname = viewModel.get('rb_custname'),
+                    rb_currency = viewModel.get('rb_currency');
                     if(!rb_custname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">客户名称</span>】');
                         return false;
                     }
+                    if(!rb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "bk_currency ='"+rb_currency+"'"
+                    });
                 }
             },
 
@@ -92,32 +107,49 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                             from: 'sl_namount',
                             to: 'rbd_nowbalance'
                         }],
-                        defaultCondition: "sl_custid<>0 and ((sl_kind in ('出货单','销售退货单')) or (sl_kind='期初余额' and sl_ym="+
-                        "'(select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid))) and sl_namount<>0'"
                     });
                 },
                 beforequery: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    rb_custname = viewModel.get('rb_custname');
+                    rb_custname = viewModel.get('rb_custname'),
+                    rb_currency = viewModel.get('rb_currency'),
+                    rb_custid = viewModel.get('rb_custid');
                     if(!rb_custname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">客户名称</span>】');
                         return false;
                     }
+                    if(!rb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "sl_custid = "+rb_custid+" and sl_currency ='"+rb_currency+"' AND sl_custid <> 0 AND (  sl_kind IN ( '出货单', '销售退货单' ) OR ( sl_kind = '期初余额' AND sl_ym = (select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid) ) "+
+                        ") and sl_namount<>0 "
+                    });
                 },
                 beforetriggerclick: function(f) {
                     var me = this,
                     viewModel = me.getViewModel(),
-                    rb_custname = viewModel.get('rb_custname');
+                    rb_custname = viewModel.get('rb_custname'),
+                    rb_currency = viewModel.get('rb_currency'),
+                    rb_custid = viewModel.get('rb_custid');
                     if(!rb_custname) {
                         saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">客户名称</span>】');
                         return false;
                     }
+                    if(!rb_currency) {
+                        saas.util.BaseUtil.showErrorToast('请先选择【' + '<span style="color: red;">币别</span>】');
+                        return false;
+                    }
+                    Ext.apply(f, {
+                        defaultCondition: "sl_custid = "+rb_custid+" and sl_currency ='"+rb_currency+"' AND sl_custid <> 0 AND (  sl_kind IN ( '出货单', '销售退货单' ) OR ( sl_kind = '期初余额' AND sl_ym = (select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid) ) "+
+                        ") and sl_namount<>0 "
+                    });
                 }
             },
         });
     },
-
     turnIn: function() {
         var me = this,
         form = me.getView(),
@@ -178,14 +210,17 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
     },
     custnamechange:function(dbfindtrigger){
         var me = this,
-            viewModel = me.getViewModel();
-
-        var c = viewModel.get('rb_custname_change');
+            viewModel = me.getViewModel(),
+            c = viewModel.get('rb_custname_change'),
+            rb_currency = viewModel.get('rb_currency');
         if(c!=null&&c!=''){
             c = ' and sl_custid='+c;
         }else{
             c ='';
         }
+        if(rb_currency!=null&&rb_currency!='') {
+            c = ' and sl_currency='+rb_currency+"'";
+        }
         dbfindtrigger.defaultCondition="((sl_kind in ('出货单','销售退货单')) or (sl_kind='期初余额' and sl_ym="+
         "(select min(pd_detno) from periodsdetail  where pd_status=0 and periodsdetail.companyid=subledger.companyid))) and sl_namount<>0 " + c
 

+ 0 - 244
frontend/saas-web/app/view/money/verification/FormPanelController.js

@@ -9,72 +9,6 @@ Ext.define('saas.view.money.verification.FormPanelController', {
             'dbfindtrigger[name=vc_custname]':{
                 beforerender:function(f){
                     Ext.apply(f,{
-                        dbColumns: [{
-                            conditionCode: 'id',
-                            text: "客户ID",
-                            dataIndex: "id",
-                            hidden:true,
-                            xtype: "",
-                        }, {
-                            conditionCode: 'cu_code',
-                            text: "客户编号",
-                            dataIndex: "cu_code",
-                            width: 150,
-                            xtype: "",
-                        }, {
-                            conditionCode: 'cu_name',
-                            text: "客户名称",
-                            dataIndex: "cu_name",
-                            width: 200,
-                            xtype: "",
-                        }, {
-                            conditionCode: 'cu_type',
-                            text: "客户类型",
-                            dataIndex: "cu_type",
-                            width: 110,
-                            xtype: "",
-                        }, {
-                            text: "业务员编号",
-                            dataIndex: "cu_sellercode",
-                            width:110
-                        }, {
-                            text: "业务员",
-                            dataIndex: "cu_sellername",
-                            width:110
-                        }, {
-                            text: "税率(%)",
-                            dataIndex: "cu_taxrate",
-                            xtype: 'numbercolumn',
-                            width:80,
-                            renderer: function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, false);
-                            }
-                        },{
-                            text: "应收款余额",
-                            dataIndex: "cu_leftamount",
-                            width:110,
-                            xtype: 'numbercolumn',
-                            renderer : function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, true);
-                            }
-                        }, {
-                            text: "结算天数",
-                            dataIndex: "cu_promisedays",
-                            width:110,
-                            xtype: 'numbercolumn',
-                            renderer: function(v, m, r) {
-                                return Ext.util.Format.number(v, '0');
-                            }
-                        }, {
-                            text: "额度",
-                            dataIndex: "cu_credit",
-                            width:110,
-                            xtype: 'numbercolumn',
-                        }, {
-                            text: "客户地址",
-                            dataIndex: "ca_address",
-                            width: 250
-                        }],
                         //赋值 
                         dbfinds:[{
                             from: 'id', to: 'vc_custid',ignore:true
@@ -96,72 +30,6 @@ Ext.define('saas.view.money.verification.FormPanelController', {
             'dbfindtrigger[name=vc_turncustname]':{
                 beforerender:function(f){
                     Ext.apply(f,{
-                        dbColumns: [{
-                            conditionCode: 'id',
-                            text: "客户ID",
-                            dataIndex: "id",
-                            hidden:true,
-                            xtype: "",
-                        }, {
-                            conditionCode: 'cu_code',
-                            text: "客户编号",
-                            dataIndex: "cu_code",
-                            width: 150,
-                            xtype: "",
-                        }, {
-                            conditionCode: 'cu_name',
-                            text: "客户名称",
-                            dataIndex: "cu_name",
-                            width: 200,
-                            xtype: "",
-                        }, {
-                            conditionCode: 'cu_type',
-                            text: "客户类型",
-                            dataIndex: "cu_type",
-                            width: 110,
-                            xtype: "",
-                        }, {
-                            text: "业务员编号",
-                            dataIndex: "cu_sellercode",
-                            width:110
-                        }, {
-                            text: "业务员",
-                            dataIndex: "cu_sellername",
-                            width:110
-                        }, {
-                            text: "税率(%)",
-                            dataIndex: "cu_taxrate",
-                            xtype: 'numbercolumn',
-                            width:80,
-                            renderer: function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, false);
-                            }
-                        },{
-                            text: "应收款余额",
-                            dataIndex: "cu_leftamount",
-                            width:110,
-                            xtype: 'numbercolumn',
-                            renderer : function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, true);
-                            }
-                        }, {
-                            text: "结算天数",
-                            dataIndex: "cu_promisedays",
-                            width:110,
-                            xtype: 'numbercolumn',
-                            renderer: function(v, m, r) {
-                                return Ext.util.Format.number(v, '0');
-                            }
-                        }, {
-                            text: "额度",
-                            dataIndex: "cu_credit",
-                            width:110,
-                            xtype: 'numbercolumn',
-                        }, {
-                            text: "客户地址",
-                            dataIndex: "ca_address",
-                            width: 250
-                        }],
                         //赋值 
                         dbfinds:[{
                             from: 'id', to: 'vc_turncustid',ignore:true
@@ -178,62 +46,6 @@ Ext.define('saas.view.money.verification.FormPanelController', {
             'dbfindtrigger[name=vc_vendname]':{
                 beforerender: function (f) {
                     Ext.apply(f, {
-                        dbColumns:[{
-                            text: "供应商ID",
-                            hidden: true,
-                            dataIndex: "id",
-                            xtype: "numbercolumn"
-                        },{
-                            text: "供应商编号",
-                            dataIndex: "ve_code",
-                            width: 150
-                        }, {
-                            text: "供应商名称",
-                            dataIndex: "ve_name",
-                            width: 200
-                        }, {
-                            text: "供应商类型",
-                            dataIndex: "ve_type",
-                            width: 110,
-                        }, {
-                            text: "税率(%)",
-                            dataIndex: "ve_taxrate",
-                            width: 80,
-                            xtype: 'numbercolumn',
-                            align:'end',
-                            renderer : function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, false);
-                            }
-                        }, {
-                            text: "应付款余额",
-                            dataIndex: "ve_leftamount",
-                            width:110,
-                            xtype: 'numbercolumn',
-                            renderer : function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, true);
-                            }
-                        },{
-                            text: "结算天数",
-                            dataIndex: "ve_promisedays",
-                            width: 110,
-                            xtype: 'numbercolumn',
-                            align: 'end',
-                            renderer : function(v, m, r) {
-                                return Ext.util.Format.number(v, '0');
-                            }
-                        }, {
-                            text: "纳税人识别号",
-                            dataIndex: "ve_nsrzh",
-                            width: 150
-                        }, {
-                            text: "开户银行",
-                            dataIndex: "ve_bankcode",
-                            width: 150
-                        }, {
-                            text: "银行账户",
-                            dataIndex: "ve_bankaccount",
-                            width: 200
-                        }],
                         dbfinds: [{
                             from: 'id',
                             to: 'vc_vendid',
@@ -258,62 +70,6 @@ Ext.define('saas.view.money.verification.FormPanelController', {
             'dbfindtrigger[name=vc_turnvendname]':{
                 beforerender: function (f) {
                     Ext.apply(f, {
-                        dbColumns:[{
-                            text: "供应商ID",
-                            hidden: true,
-                            dataIndex: "id",
-                            xtype: "numbercolumn"
-                        },{
-                            text: "供应商编号",
-                            dataIndex: "ve_code",
-                            width: 150
-                        }, {
-                            text: "供应商名称",
-                            dataIndex: "ve_name",
-                            width: 200
-                        }, {
-                            text: "供应商类型",
-                            dataIndex: "ve_type",
-                            width: 110,
-                        }, {
-                            text: "税率(%)",
-                            dataIndex: "ve_taxrate",
-                            width: 80,
-                            xtype: 'numbercolumn',
-                            align:'end',
-                            renderer : function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, false);
-                            }
-                        }, {
-                            text: "应付款余额",
-                            dataIndex: "ve_leftamount",
-                            width:110,
-                            xtype: 'numbercolumn',
-                            renderer : function(v, m, r) {
-                                return saas.util.BaseUtil.numberFormat(v, 2, true);
-                            }
-                        },{
-                            text: "结算天数",
-                            dataIndex: "ve_promisedays",
-                            width: 110,
-                            xtype: 'numbercolumn',
-                            align: 'end',
-                            renderer : function(v, m, r) {
-                                return Ext.util.Format.number(v, '0');
-                            }
-                        }, {
-                            text: "纳税人识别号",
-                            dataIndex: "ve_nsrzh",
-                            width: 150
-                        }, {
-                            text: "开户银行",
-                            dataIndex: "ve_bankcode",
-                            width: 150
-                        }, {
-                            text: "银行账户",
-                            dataIndex: "ve_bankaccount",
-                            width: 200
-                        }],
                         dbfinds: [{
                             from: 'id',
                             to: 'vc_turnvendid',