Ext.define('saas.view.money.othreceipts.FormPanelController', { extend: 'saas.view.core.form.FormPanelController', alias: 'controller.money-othreceipts-formpanel', init: function (form) { var me = this; this.control({ //放大镜赋值关系 以及 tpl模板 'dbfindtrigger[name=or_custname]':{ beforerender:function(f){ Ext.apply(f,{ dataUrl:basePath+'document/customer/list', dbfinds:[{ from:'id',to:'or_custid' },{ from:'cu_code',to:'or_custcode' },{ from:'cu_name',to:'or_custname' }], dbtpls:[{ field:'cu_code',width:100 },{ field:'cu_name',width:100 }], dbColumns:[{ conditionCode:'id', "text": "客户ID", "flex": 0, "dataIndex": "id", "width": 100, "xtype": "", "items": null },{ conditionCode:'cu_code', "text": "客户编号", "flex": 1, "dataIndex": "cu_code", "width": 100, "xtype": "", "items": null }, { conditionCode:'cu_name', "text": "客户名称", "flex": 1, "dataIndex": "cu_name", "xtype": "", "items": null }, { conditionCode:'cu_type', "text": "客户类型", "flex": 0, "dataIndex": "cu_type", "width": 200, "xtype": "", "items": null }] }) ; } }, //放大镜赋值关系 以及 tpl模板 'dbfindtrigger[name=or_bankname]':{ beforerender:function(f){ Ext.apply(f,{ conditionCode:'or_bankcode', dataUrl:basePath+'document/bankinformation/list', dbfinds:[{ from:'bk_bankcode',to:'or_bankcode' },{ from:'bk_bankname',to:'or_bankname' },{ from:'bk_id',to:'or_bankid' }], dbtpls:[{ field:'bk_bankcode',width:100 },{ field:'bk_bankname',width:100 }], dbColumns:[{ "text": "账户ID", "flex": 0, "dataIndex": "bk_id", "width": 0, "xtype": "", "items": null },{ "text": "账户编号", "flex": 1, "dataIndex": "bk_bankcode", "width": 100, "xtype": "", "items": null }, { "text": "账户名称", "flex": 1, "dataIndex": "bk_bankname", "xtype": "", "items": null }, { "text": "账户类型", "flex": 0, "dataIndex": "bk_type", "width": 200, "xtype": "", "items": null }] }) ; } } }); } });