Browse Source

资金模块-解决其它支出单

huangx 7 years ago
parent
commit
84c63bf146
1 changed files with 42 additions and 46 deletions
  1. 42 46
      frontend/saas-web/app/view/money/othspendings/FormPanelController.js

+ 42 - 46
frontend/saas-web/app/view/money/othspendings/FormPanelController.js

@@ -8,49 +8,41 @@ Ext.define('saas.view.money.othspendings.FormPanelController', {
             'vendorDbfindTrigger[name=os_vendname]': {
                 beforerender: function (f) {
                     Ext.apply(f, {
-                        dbColumns: [{
-                            conditionCode: 'id',
-                            text: "客户ID",
+                        dbColumns:[{
+                            text: "供应商ID",
+                            hidden: true,
                             dataIndex: "id",
-                            hidden:true,
-                            xtype: "",
-                        }, {
-                            conditionCode: 'cu_code',
-                            text: "客户编号",
-                            dataIndex: "cu_code",
-                            width: 150,
-                            xtype: "",
+                            xtype: "numbercolumn"
+                        },{
+                            text: "供应商编号",
+                            dataIndex: "ve_code",
+                            width: 150
                         }, {
-                            conditionCode: 'cu_name',
-                            text: "客户名称",
-                            dataIndex: "cu_name",
-                            width: 200,
-                            xtype: "",
+                            text: "供应商名称",
+                            dataIndex: "ve_name",
+                            width: 200
                         }, {
-                            conditionCode: 'cu_type',
-                            text: "客户类型",
-                            dataIndex: "cu_type",
+                            text: "供应商类型",
+                            dataIndex: "ve_type",
                             width: 110,
-                            xtype: "",
-                        }, {
-                            text: "业务员编号",
-                            dataIndex: "cu_sellercode",
-                            width:110
-                        }, {
-                            text: "业务员",
-                            dataIndex: "cu_sellername",
-                            width:110
                         }, {
                             text: "税率",
-                            dataIndex: "cu_taxrate",
+                            dataIndex: "ve_taxrate",
+                            width: 80,
                             xtype: 'numbercolumn',
-                            width:80,
-                            renderer: function (v) {
-                                return Ext.util.Format.number(v, '0');
+                            align:'end',
+                            renderer : function(v) {
+                                if(!v) {
+                                    return 0;
+                                }
+                                var arr = (v + '.').split('.');
+                                var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
+                                var format = '0.' + xr.join();
+                                return Ext.util.Format.number(v, format);
                             }
-                        },{
-                            text: "应收款余额",
-                            dataIndex: "cu_leftamount",
+                        }, {
+                            text: "应款余额",
+                            dataIndex: "ve_leftamount",
                             width:110,
                             xtype: 'numbercolumn',
                             renderer : function(v) {
@@ -62,23 +54,27 @@ Ext.define('saas.view.money.othspendings.FormPanelController', {
                                 var format = '0.' + xr.join();
                                 return Ext.util.Format.number(v, format);
                             }
-                        }, {
+                        },{
                             text: "结算天数",
-                            dataIndex: "cu_promisedays",
-                            width:110,
+                            dataIndex: "ve_promisedays",
+                            width: 110,
                             xtype: 'numbercolumn',
-                            renderer: function (v) {
+                            align: 'end',
+                            renderer : function(v) {
                                 return Ext.util.Format.number(v, '0');
                             }
                         }, {
-                            text: "额度",
-                            dataIndex: "cu_credit",
-                            width:110,
-                            xtype: 'numbercolumn',
+                            text: "纳税人识别号",
+                            dataIndex: "ve_nsrzh",
+                            width: 150
+                        }, {
+                            text: "开户银行",
+                            dataIndex: "ve_bankcode",
+                            width: 150
                         }, {
-                            text: "客户地址",
-                            dataIndex: "ca_address",
-                            width: 250
+                            text: "银行账户",
+                            dataIndex: "ve_bankaccount",
+                            width: 200
                         }],
                         dbfinds: [{
                             from: 'id',