Ext.define('make.view.make.bom.QueryPanelController', { extend: 'saas.view.core.query.QueryPanelController', alias: 'controller.make-bom-querypanel', init: function (form) { var me = this; this.control({ // 物料编号 'dbfindtrigger[name=pr_detail]':{ beforerender:function(f){ Ext.apply(f,{ dbfinds:[{ from:'pr_code',to:'pd_prodcode' }, { from:'pr_detail',to:'pr_detail' }, { from:'pr_orispeccode',to:'pr_orispeccode' }], }) ; } },'dbfindtrigger[name=creatorName]':{ beforerender:function(f){ Ext.apply(f,{ dbfinds:[{ from:'em_code',to:'em_code', },{ from:'em_name',to:'creatorName' }], }) ; } },'dbfindtrigger[name=bo_auditman]':{ beforerender:function(f){ Ext.apply(f,{ dbfinds:[{ from:'em_code',to:'em_code', },{ from:'em_name',to:'bo_auditman', }], }) ; } },'dbfindtrigger[name=Prodiodetail.pd_prodcode]':{ beforerender:function(f){ Ext.apply(f,{ dbfinds:[{ from:'pr_code',to:'Prodiodetail.pd_prodcode', }, { from:'pr_detail',to:'pr_detail' }, { from:'pr_orispeccode',to:'pr_orispeccode' }, { from:'pr_brand',to:'pr_brand' }], }) ; } },'dbfindtrigger[name=bo_mothercode]': { beforerender: function (f) { Ext.apply(f, { //放大镜赋值设置 dbfinds: [{ from: 'pr_code', to: 'bo_mothercode' }, { from: 'pr_detail', to: 'pr_detail' }, { from: 'pr_spec', to: 'pr_spec' }, { from: 'pr_brand', to: 'pr_brand' }, { from: 'pr_orispeccode', to: 'pr_orispeccode' }, { from: 'pr_unit', to: 'pr_unit' }], }); } } }); }, });