Ext.define('saas.view.money.report.PayDetailController', { extend: 'saas.view.core.report.ReportPanelController', alias: 'controller.money-report-paydetail', init: function (form) { this.control({ // 供应商编号 'dbfindtrigger[name=pi_vendname]':{ beforerender:function(f){ Ext.apply(f,{ dataUrl:'/api/document/vendor/list', addXtype: 'document-vendor-formpanel', addTitle: '供应商资料', dbfinds:[{ from:'ve_name',to:'pi_vendname' }], dbtpls:[{ field:'ve_code',width:100 },{ field:'ve_name',width:100 }], defaultCondition: "ve_statuscode='OPEN'", dbSearchFields:[{ emptyText:'输入供应商编号或名称', xtype : "textfield", name : "search", getCondition: function(v) { return "(upper(ve_code) like '%"+v.toUpperCase()+"%' or upper(ve_name) like '%"+v.toUpperCase()+"%')"; }, allowBlank : true, columnWidth : 0.25 }], dbColumns:[ { "text": "供应商ID", "hidden": true, "dataIndex": "id", "width": 100, "xtype": "numbercolumn" },{ "text": "供应商编号", "dataIndex": "ve_code", "width": 200 }, { "text": "供应商名称", "dataIndex": "ve_name", "width": 200 }, { "text": "供应商类型", "dataIndex": "ve_type", "width": 180, "items": null }, { "text": "税率", "dataIndex": "ve_taxrate", "width": 100, xtype: 'numbercolumn', align: 'end' }, { "text": "承付天数", "dataIndex": "ve_promisedays", "width": 100, xtype: 'numbercolumn', align: 'end' }, { "text": "纳税人识别号", "dataIndex": "ve_bankaccount", "width": 150 }, { "text": "开户银行", "dataIndex": "ve_bankaccount", "width": 100 }, { "text": "银行账户", "dataIndex": "ve_bankcode", "width": 100 }] }) ; } } }); } });