Browse Source

收付款单界面配置

zhuth 7 years ago
parent
commit
4bf423378e

+ 80 - 39
frontend/saas-web/app/view/money/payBalance/FormPanel.js

@@ -30,14 +30,19 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         name: 'id',
         fieldLabel: 'id'
     }, {
-        xtype: "textfield",
-        name: "pb_code",
-        fieldLabel: "付款单号"
+        xtype: 'hidden',
+        name: 'pb_kind',
+        fieldLabel: '单据类型',
+        defaultValue: '付款单'
     }, {
-        xtype: "hidden",
-        name: "pb_vendid",
-        bind: "{pb_vendid}",
-        fieldLabel: "供应商ID"
+        format: 'Y-m-d h:i:s',
+        xtype: "datefield",
+        name: "pb_date",
+        fieldLabel: "日期"
+    }, {
+        xtype: 'hidden',
+        name: 'pb_vendid',
+        fieldLabel: '供应商ID'
     }, {
         xtype: "hidden",
         name: "pb_vendcode",
@@ -46,30 +51,39 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         xtype: "dbfindtrigger",
         name: "pb_vendname",
         fieldLabel: "供应商名称"
+    }, {
+        xtype: 'textfield',
+        name: 'pb_manname',
+        fieldLabel: '收款人'
     }, {
         xtype: 'numberfield',
         name: 'pb_pdamount',
-        fieldLabel: '总欠款'
+        fieldLabel: '付款金额'
     }, {
-        xtype: "datefield",
-        name: "pb_date",
-        fieldLabel: "日期"
+        xtype: 'numberfield',
+        name: 'pb_pdamount',
+        fieldLabel: '付款金额'
+    }, {
+        xtype: "numberfield",
+        name: "pb_pbdamount",
+        fieldLabel: "本次核销金额"
+    }, {
+        xtype: "numberfield",
+        name: "pb_preamount",
+        fieldLabel: "本次预付款"
+    }, {
+        xtype: 'numberfield',
+        name: 'pb_discounts',
+        fieldLabel: '整单折扣'
+    }, {
+        xtype: 'numberfield',
+        name: 'pb_havebalance',
+        fieldLabel: '已核销金额'
     }, {
         xtype: "detailGridField",
         storeModel: 'saas.model.purchase.purchasedetail',
-        _detnoColumn: 'pd_detno',
+        detnoColumn: 'pd_detno',
         columns: [{
-            text: "序号",
-            dataIndex: "pd_detno",
-            width: 100,
-            xtype: "numbercolumn",
-            align: 'center',
-            format: '0',
-            summaryType: 'count',
-            summaryRenderer: function (value, summaryData, dataIndex) {
-                return Ext.String.format('合计: {0}条', value);
-            },
-        }, {
             text: '资金账户',
             dataIndex: 'pd_bankname'
         }, {
@@ -88,19 +102,8 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
     }, {
         xtype: "detailGridField",
         storeModel: 'saas.model.purchase.purchasedetail',
-        _detnoColumn: 'pbd_detno',
+        detnoColumn: 'pbd_detno',
         columns: [{
-            text: "序号",
-            dataIndex: "pbd_detno",
-            width: 100,
-            xtype: "numbercolumn",
-            align: 'center',
-            format: '0',
-            summaryType: 'count',
-            summaryRenderer: function (value, summaryData, dataIndex) {
-                return Ext.String.format('合计: {0}条', value);
-            },
-        }, {
             text: '来源单号',
             dataIndex: 'pbd_slcode'
         }, {
@@ -123,19 +126,37 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
             dataIndex: "pbd_nowbalance"
         }]
     }, {
-        format: "Y-m-d",
+        xtype: 'textareafield',
+        name: 'pb_remark',
+        columnWidth: 1,
+        fieldLabel: '备注'
+    }, {
+        xtype: 'textfield',
+        name: 'companyid',
+        fieldLabel: '公司ID'
+    }, {
+        xtype: 'numberfield',
+        name: 'pb_recorderid',
+        fieldLabel: '创建人ID'
+    }, {
+        xtype: 'textfield',
+        name: 'pb_recorder',
+        fieldLabel: '创建人'
+    }, {
+        format: "Y-m-d h:i:s",
         xtype: "datefield",
-        name: "createTime",
+        name: "pb_recorddate",
         fieldLabel: "创建时间"
     }, {
+        format: 'Y-m-d h:i:s',
         xtype: "datefield",
-        name: "updateTime",
+        name: "updatedate",
         fieldLabel: "更新时间"
     }, {
         xtype: "textfield",
         readOnly: true,
         editable: false,
-        name: "pd_status",
+        name: "pb_status",
         fieldLabel: "单据状态"
     }, {
         xtype: "hidden",
@@ -143,5 +164,25 @@ Ext.define('saas.view.money.payBalance.FormPanel', {
         editable: false,
         name: "pd_statuscode",
         fieldLabel: "单据状态码"
+    }, {
+        xtype: 'textfield',
+        name: 'pb_text1',
+        fieldLabel: '自定义字段1'
+    }, {
+        xtype: 'textfield',
+        name: 'pb_text2',
+        fieldLabel: '自定义字段2'
+    }, {
+        xtype: 'textfield',
+        name: 'pb_text3',
+        fieldLabel: '自定义字段3'
+    }, {
+        xtype: 'textfield',
+        name: 'pb_text4',
+        fieldLabel: '自定义字段4'
+    }, {
+        xtype: 'textfield',
+        name: 'pb_text5',
+        fieldLabel: '自定义字段5'
     }]
 });

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

@@ -144,8 +144,7 @@ Ext.define('saas.view.money.payBalance.FormPanelController', {
             url: form._turnInUrl+id.value,
             method: 'GET',
         })
-        .then(function(res) {
-            var localJson = new Ext.decode(res.responseText);
+        .then(function(localJson) {
             if(localJson.success){
                 Ext.Msg.alert('提示','转单成功');
               

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

@@ -103,10 +103,6 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
         defaultCondition:'',
         baseVastUrl: basePath + 'purchase/',
         baseColumn: [{
-            text: '序号',
-            width: 80,
-            xtype: 'rownumberer'
-        }, {
             text: 'id',
             dataIndex: 'pu_id',
             width: 100,
@@ -141,10 +137,6 @@ Ext.define('saas.view.money.paybalance.QueryPanel', {
             flex: 1
         }],
         relativeColumn: [{
-            text: '序号',
-            width: 80,
-            xtype: 'rownumberer'
-        }, {
             text: 'id',
             dataIndex: 'pu_id',
             width: 100,

+ 138 - 80
frontend/saas-web/app/view/money/recBalance/FormPanel.js

@@ -12,16 +12,16 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
     //字段属性
     _title: '收款单',
     _idField: 'id',
-    _codeField: 'pd_code',
-    _statusField: 'pd_status',
-    _statusCodeField: 'pd_statuscode',
+    _codeField: 'rb_code',
+    _statusField: 'rb_status',
+    _statusCodeField: 'rb_statuscode',
     
-    _readUrl: 'http://192.168.253.129:8920/api/money/recbalance/read',
-    _saveUrl: 'http://192.168.253.129:8920/money/recbalance/save',
-    _auditUrl: 'http://192.168.0.181:8560/api/purchase/purchase/audit',
-    _deleteUrl: 'http://192.168.0.181:8560/api/purchase/purchase/delete/',
-    _deleteDetailUrl: 'http://192.168.0.181:8560/api/purchase/purchase/deleteItem/',
-    _turnInUrl: 'http://192.168.253.228:8800/purchase/turnProdin/',
+    _readUrl: 'money/recbalance/read/',
+    _saveUrl: 'money/recbalance/save/',
+    _auditUrl: 'money/recbalance/audit/',
+    _unAuditUrl: 'money/recbalance/unAudit/',
+    _deleteUrl: 'money/recbalance/delete/',
+    _deleteDetailUrl: 'money/recbalance/deleteItem/',
     initId: 0,
 
     defaultItems: [{
@@ -32,6 +32,11 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         xtype: 'hidden',
         name: 'rb_custid',
         fieldLabel: '客户ID'
+    }, {
+        xtype: 'hidden',
+        name: 'rb_kind',
+        fieldLabel: '单据类型',
+        defaultValue: '收款单'
     }, {
         xtype: 'hidden',
         name: 'rb_custcode',
@@ -40,13 +45,14 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         xtype: "dbfindtrigger",
         name: "rb_custname",
         fieldLabel: "客户名称",
-        dataUrl: '',
     }, {
         xtype: "numberfield",
-        name: "rb_rbdamount",
-        readOnly: true,
-        editable: false,
+        name: "rb_rdamount",
         fieldLabel: "总欠款"
+    }, {
+        xtype: 'numberfield',
+        name: 'rb_rbdamount',
+        fieldLabel: '本次核销金额'
     }, {
         xtype: "datefield",
         name: "rb_date",
@@ -68,113 +74,165 @@ Ext.define('saas.view.money.recBalance.FormPanel', {
         xtype: 'numberfield',
         name: 'rb_preamount',
         fieldLabel : '本次预收款'
+    }, {
+        xtype: 'numberfield',
+        name: 'rb_havebalance',
+        fieldLabel: '已核销金额'
     }, {
         xtype: "detailGridField",
         storeModel: 'saas.model.money.RecBalance1',
-        _detnoColumn: 'rd_detno',
+        detnoColumn: 'rd_detno',
+        _deleteDetailUrl: 'http://192.168.253.129:8940/money/recbalance/audit/',
         columns: [{
-            text: "序号",
-            dataIndex: "rd_detno",
-            width: 100,
-            xtype: "numbercolumn",
-            align: 'center',
-            format: '0',
-            summaryType: 'count',
-            summaryRenderer: function (value, summaryData, dataIndex) {
-                return Ext.String.format('合计: {0}条', value);
-            },
+            text: 'ID',
+            dataIndex: 'id',
+            hidden: true
+        }, {
+            text: '期间',
+            dataIndex: 'rd_ym',
+            editor: {
+                xtype: 'numberfield'
+            }
+        }, {
+            text: '资金账户ID',
+            dataIndex: 'rd_bankid',
+            width : 100.0, 
+            editor: {
+                xtype: 'numberfield'
+            }
+        }, {
+            text: '资金账户编号',
+            dataIndex: 'rd_bankcode',
+            width : 100.0, 
+            editor: {
+                xtype: 'textfield'
+            }
         }, {
             text: '资金账户',
             dataIndex: 'rd_bankname',
             width : 200.0, 
-            editor : {
-                displayField : "display", 
-                editable : true, 
-                format : "", 
-                hideTrigger : false, 
-                maxLength : 100.0, 
-                minValue : null, 
-                positiveNum : false, 
-                queryMode : "local", 
-                store : null, 
-                valueField : "value", 
-                xtype : "dbfindtrigger"
+            editor: {
+                xtype: 'textfield'
             }
         }, {
             text: "收款金额",
             dataIndex: "rd_amount",
+            editor: {
+                xtype: 'numberfield'
+            }
         }, {
             text: "结算方式",
-            dataIndex: "rd_paymethod"
+            dataIndex: "rd_paymethod",
+            editor: {
+                xtype: 'textfield'
+            }
         }, {
             text: "结算号",
-            dataIndex: "rd_paycode"
+            dataIndex: "rd_paycode",
+            editor: {
+                xtype: 'textfield'
+            }
         }, {
             text: "备注",
-            dataIndex: "rd_remark"
+            dataIndex: "rd_remark",
+            editor: {
+                xtype: 'textfield'
+            }
         }]
     }, {
         xtype: "detailGridField",
-        storeModel: 'saas.model.money.RecBalance1',
-        _detnoColumn: 'rbd_detno',
+        storeModel: 'saas.model.money.RecBalance2',
+        detnoColumn: 'rbd_detno',
+        _deleteDetailUrl: 'http://192.168.253.129:8940/money/recbalance/unAudit/',
         columns: [{
-            text: "序号",
-            dataIndex: "rbd_detno",
-            width: 100,
-            xtype: "numbercolumn",
-            align: 'center',
-            format: '0',
-            summaryType: 'count',
-            summaryRenderer: function (value, summaryData, dataIndex) {
-                return Ext.String.format('合计: {0}条', value);
-            },
+            text: 'ID',
+            dataIndex: 'id',
+            hidden: true
+        }, {
+            text: '期间',
+            dataIndex: 'rbd_ym',
+            editor: {
+                xtype: 'numberfield'
+            }
+        }, {
+            text: '来源ID',
+            dataIndex: 'rbd_slid',
+            editor: {
+                xtype: 'numberfield'
+            }
         }, {
             text: '来源单号',
-            dataIndex: 'rbd_slcode'
+            dataIndex: 'rbd_slcode',
+            editor: {
+                xtype: 'textfield'
+            }
         }, {
             text: "业务类型",
             dataIndex: "rbd_slkind",
+            editor: {
+                xtype: 'textfield'
+            }
         }, {
             text: "单据日期",
-            dataIndex: "rbd_sldate"
+            dataIndex: "rbd_sldate",
+            editor: {
+                xtype: 'datefield'
+            }
         }, {
             text: "单据金额",
-            dataIndex: "rbd_amount"
-        }, {
-            text: "已核销金额",
-            dataIndex: "rbd_nowbalance"
-        }, {
-            text: "未核销金额",
-            dataIndex: "pbd_nowbalance"
+            dataIndex: "rbd_amount",
+            editor: {
+                xtype: 'numberfield'
+            }
+        // }, {
+        //     text: "已核销金额",
+        //     dataIndex: "rbd_nowbalance",
+        //     editor: {
+        //         xtype: 'numberfield'
+        //     }
+        // }, {
+        //     text: "未核销金额",
+        //     dataIndex: "pbd_nowbalance",
+        //     editor: {
+        //         xtype: 'numberfield'
+        //     }
         }, {
             text: "本次核销金额",
-            dataIndex: "pbd_nowbalance"
+            dataIndex: "pbd_nowbalance",
+            editor: {
+                xtype: 'numberfield'
+            }
+        }, {
+            text: '备注',
+            dataIndex: 'rbd_remark',
+            editor: {
+                xtype: 'textfield'
+            }
         }]
     }, {
-        xtype: 'textfield',
+        xtype: 'numberfield',
         name: 'companyid',
         fieldLabel: '公司id'
     }, {
-        format: "Y-m-d h:i:s",
-        xtype: "datefield",
-        name: "pb_recorddate",
-        fieldLabel: "创建时间"
+        xtype: 'numberfield',
+        name: 'rb_recorderid',
+        fieldLabel: '录入人ID'
+    }, {
+        xtype: 'textfield',
+        name: 'rb_recorder',
+        fieldLabel: '录入人'
+    }, {
+        xtype: 'numberfield',
+        name: 'updaterId',
+        fieldLabel: '更新人ID'
+    }, {
+        xtype: 'datefield',
+        name: 'updatedate',
+        fieldLabel: '更新时间'
     }, {
         format: "Y-m-d h:i:s",
         xtype: "datefield",
-        name: "updatedate",
-        fieldLabel: "更新时间"
-    }, {
-        xtype: "textfield",
-        readOnly: true,
-        editable: false,
-        name: "pd_status",
-        fieldLabel: "单据状态"
-    }, {
-        xtype: "hidden",
-        readOnly: true,
-        editable: false,
-        name: "pd_statuscode",
-        fieldLabel: "单据状态码"
+        name: "rb_recorddate",
+        fieldLabel: "创建时间"
     }]
 });

+ 66 - 19
frontend/saas-web/app/view/money/recBalance/FormPanelController.js

@@ -9,57 +9,105 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
                 beforerender:function(f){
                     Ext.apply(f,{
                         //数据接口
-                        dataUrl: 'http://192.168.253.41:9480/vendor/list',
+                        dataUrl: 'http://192.168.253.31:9480/customer/list',
                         //赋值 
                         dbfinds:[{
-                            from: 've_id', to: 'rb_custid'
+                            from: 'id', to: 'rb_custid'
                         }, {
-                            from:'ve_code', to:'rb_custcode'
+                            from:'cu_code', to:'rb_custcode'
                         },{
-                            from:'ve_name', to:'rb_custname'
+                            from:'cu_name', to:'rb_custname'
                         }],
                         //联想设置
                         dbtpls:[{
-                            field:'ve_code',width:100
+                            field:'cu_code',width:100
                         },{
-                            field:'ve_name',width:100
+                            field:'cu_name',width:100
                         }],
                         //联想查询条件
-                        dbCondition:"CONCAT(ve_code, ve_name) like '{0}%'",
+                        dbCondition:"CONCAT(cu_code, cu_name) like '{0}%'",
                         //放大镜窗口字段
                         dbSearchFields:[{
                             xtype : "textfield", 
-                            name : "ve_name", 
-                            conditionExpression:"ve_name like '{0}%'",//传入后台条件  替换占位符
-                            fieldLabel : "供应商名称", 
+                            name : "cu_name", 
+                            conditionExpression:"cu_name like '{0}%'",//传入后台条件  替换占位符
+                            fieldLabel : "客户名称", 
                             columnWidth : 0.25
                         }],
                         //放大镜窗口列表
                         dbColumns:[{
-                            "text": "供应商ID",
+                            "text": "ID",
                             "flex": 0,
-                            "dataIndex": "ve_id",
+                            "dataIndex": "id",
                             "width": 0,
                             "xtype": "",
                             "items": null
                         },{
                             "text": "供应商编号",
                             "flex": 1,
-                            "dataIndex": "ve_code",
+                            "dataIndex": "cu_code",
                             "width": 100,
                             "xtype": "",
                             "items": null
                         }, {
                             "text": "供应商名称",
                             "flex": 1,
-                            "dataIndex": "ve_name",
+                            "dataIndex": "cu_name",
                             "xtype": "",
                             "items": null
+                        }]
+                    }) ;   
+
+                }
+            },
+            'dbfindtrigger[name=rd_bankname]':{
+                beforerender:function(f){
+                    Ext.apply(f,{
+                        //数据接口
+                        dataUrl: 'http://192.168.253.31:9480/customer/list',
+                        //赋值 
+                        dbfinds:[{
+                            from: 'id', to: 'rb_custid'
                         }, {
-                            "text": "供应商类型",
+                            from:'cu_code', to:'rb_custcode'
+                        },{
+                            from:'cu_name', to:'rb_custname'
+                        }],
+                        //联想设置
+                        dbtpls:[{
+                            field:'cu_code',width:100
+                        },{
+                            field:'cu_name',width:100
+                        }],
+                        //联想查询条件
+                        dbCondition:"CONCAT(cu_code, cu_name) like '{0}%'",
+                        //放大镜窗口字段
+                        dbSearchFields:[{
+                            xtype : "textfield", 
+                            name : "cu_name", 
+                            conditionExpression:"cu_name like '{0}%'",//传入后台条件  替换占位符
+                            fieldLabel : "客户名称", 
+                            columnWidth : 0.25
+                        }],
+                        //放大镜窗口列表
+                        dbColumns:[{
+                            "text": "ID",
                             "flex": 0,
-                            "dataIndex": "ve_type",
-                            "width": 200,
+                            "dataIndex": "id",
+                            "width": 0,
+                            "xtype": "",
+                            "items": null
+                        },{
+                            "text": "供应商编号",
+                            "flex": 1,
+                            "dataIndex": "cu_code",
+                            "width": 100,
+                            "xtype": "",
+                            "items": null
+                        }, {
+                            "text": "供应商名称",
+                            "flex": 1,
+                            "dataIndex": "cu_name",
                             "xtype": "",
                             "items": null
                         }]
@@ -103,8 +151,7 @@ Ext.define('saas.view.money.recBalance.FormPanelController', {
             url: form._turnInUrl+id.value,
             method: 'GET',
         })
-        .then(function(res) {
-            var localJson = new Ext.decode(res.responseText);
+        .then(function(localJson) {
             if(localJson.success){
                 Ext.Msg.alert('提示','转单成功');
               

+ 24 - 146
frontend/saas-web/app/view/money/recBalance/QueryPanel.js

@@ -9,185 +9,63 @@ Ext.define('saas.view.money.recBalance.QueryPanel', {
     
     queryFormItems: [{
         xtype: 'hidden',
-        name: 'pu_id',
-        bind: '{pu_id}',
+        name: 'rb_id',
         fieldLabel: 'ID',
         allowBlank: true,
         getCondition: function(value) {
-            return 'pu_id=' + value;
+            return 'rb_id=' + value;
         }
     }, {
         xtype: 'textfield',
-        name: 'pu_code',
-        bind: '{pu_code}',
+        name: 'rb_code',
         fieldLabel: '单据编号'
     }, {
         xtype: 'condatefield',
-        name: 'pu_date',
-        bind: '{pu_date}',
-        fieldLabel: '采购日期',
+        name: 'rb_date',
+        fieldLabel: '日期',
         columnWidth: 0.5,
         operation: 'between'
-    }, {
-        xtype: 'dbfindtrigger',
-        name: 'pu_vendcode',
-        bind: '{pu_vendcode}',
-        fieldLabel: '供应商编号'
-    }, {
-        xtype: 'textfield',
-        name: 'pu_vendname',
-        bind: '{pu_vendname}',
-        fieldLabel: '供应商名称'
-    }, {
-        xtype: 'dbfindtrigger',
-        name: 'pd_prodcode',
-        bind: '{pd_prodcode}',
-        fieldLabel: '物料编号',
-        showDetail: true
-    }, {
-        xtype: 'textfield',
-        name: 'pr_detail',
-        bind: '{pr_detail}',
-        fieldLabel: '物料名称',
-        showDetail: true
-    }, {
-        xtype: 'combobox',
-        name: 'pu_statuscode',
-       // bind: '{pu_statuscode}',
-        fieldLabel: '审核状态',
-        queryMode: 'local',
-        displayField: 'pu_status',
-        valueField: 'pu_statuscode',
-        editable:false,
-        store: Ext.create('Ext.data.ArrayStore', {
-        fields: ['pu_statuscode', 'pu_status'],
-        data: [
-            ["$ALL", "全部"],
-            ["AUDITED", "已审核"],
-            ["UNAUDITED", "未审核"]
-        ]
-        })
-    }, {
-        xtype: 'multicombo',
-        name: 'pu_acceptstatuscode',
-        bind: '{pu_acceptstatuscode}',
-        fieldLabel: '入库状态',
-        datas: [
-            ["TURNIN", "已入库"],
-            ["UNTURNIN", "未入库"],
-            ["PARTIN", "部分入库"]
-        ]
-    }],
-    moreQueryFormItems: [{
-        xtype: 'textfield',
-        name: 'pu_buyername',
-        bind: '{pu_buyername}',
-        fieldLabel: '采购员'
-    }, {
-        xtype: 'textfield',
-        name: 'pu_total',
-        bind: '{pu_total}',
-        fieldLabel: '金额'
-    }, {
-        xtype: 'condatefield',
-        name: 'pu_delivery',
-        bind: '{pu_delivery}',
-        fieldLabel: '交货日期',
-        columnWidth: 1
     }],
+    moreQueryFormItems: [],
     queryGridConfig: {
-        idField: 'pu_id',
-        codeField: 'pu_code',
-        addTitle: '采购单',
-        addXtype: 'purchase-purchase-formpanel',
+        idField: 'id',
+        codeField: 'rb_code',
+        addTitle: '收款单',
+        addXtype: 'money-recbalance-formpanel',
         defaultCondition:'',
-        baseVastUrl: 'http://192.168.253.58:8800/purchase/',
+        baseVastUrl: 'money/recbalance/',
         baseColumn: [{
-            text: '序号',
-            width: 80,
-            xtype: 'rownumberer'
-        }, {
             text: 'id',
-            dataIndex: 'pu_id',
+            dataIndex: 'id',
             width: 100,
             xtype: 'numbercolumn'
         }, {
             text: '单据编号',
-            dataIndex: 'pu_code',
+            dataIndex: 'rb_code',
             width: 120
         }, {
             text: '单据状态',
-            dataIndex: 'pu_status',
+            dataIndex: 'rb_status',
             width: 120
         }, {
-            text: '下单日期',
-            dataIndex: 'pu_indate',
+            text: '日期',
+            dataIndex: 'rb_date',
             xtype: 'datecolumn',
             width: 200
         }, {
-            text: '供应商名称',
-            dataIndex: 'pu_vendname',
-            width: 120
-        }, {
-            text: '含税金额',
-            dataIndex: 'pu_taxtotal',
-            xtype: 'numbercolumn',
-            width: 120
-        }, {
-            text: '金额',
-            dataIndex: 'pu_total',
-            xtype: 'numbercolumn',
-            width: 120,
-            flex: 1
-        }],
-        relativeColumn: [{
-            text: '序号',
-            width: 80,
-            xtype: 'rownumberer'
+            text: '客户编号',
+            dataIndex: 'rb_custcode'
         }, {
-            text: 'id',
-            dataIndex: 'pu_id',
-            width: 100,
-            xtype: 'numbercolumn'
-        }, {
-            text: '单据编号',
-            dataIndex: 'pu_code',
-            width: 120
-        }, {
-            text: '单据状态',
-            dataIndex: 'pu_status',
-            width: 120
-        }, {
-            text: '下单日期',
-            dataIndex: 'pu_indate',
-            xtype: 'datecolumn',
-            width: 200
-        }, {
-            text: '供应商名称',
-            dataIndex: 'pu_vendname',
-            width: 120
-        }, {
-            text: '采购序号',
-            dataIndex: 'pd_detno',
-            xtype: 'numbercolumn',
-            width: 120
-        }, {
-            text: '物料编号',
-            dataIndex: 'pd_prodcode',
-            width: 120
-        }, {
-            text: '数量',
-            dataIndex: 'pd_qty',
-            xtype: 'numbercolumn',
-            width: 120
+            text: '客户名称',
+            dataIndex: 'rb_custname'
         }, {
-            text: '单价',
-            dataIndex: 'pd_price',
+            text: '收款人',
+            dataIndex: 'rb_manname',
             xtype: 'numbercolumn',
             width: 120
         }, {
-            text: '已转数',
-            dataIndex: 'pd_ytqy',
+            text: '收款金额',
+            dataIndex: 'rb_rdamount',
             xtype: 'numbercolumn',
             width: 120,
             flex: 1