QueryPanelController.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Ext.define('saas.view.purchase.purchaseIn.QueryPanelController', {
  2. extend: 'saas.view.core.query.QueryPanelController',
  3. alias: 'controller.purchase-purchasein-querypanel',
  4. init: function (form) {
  5. var me = this;
  6. this.control({
  7. //放大镜赋值关系 以及 tpl模板
  8. 'dbfindtrigger[name=pr_detail]':{
  9. beforerender:function(f){
  10. Ext.apply(f,{
  11. dbfinds:[{
  12. from:'pr_code',to:'pd_prodcode',
  13. }, {
  14. from:'pr_detail',to:'pr_detail'
  15. }, {
  16. from:'pr_orispeccode',to:'pr_orispeccode'
  17. }],
  18. }) ;
  19. }
  20. }, 'warehouseDbfindTrigger[name=pd_whname]':{
  21. beforerender:function(f){
  22. Ext.apply(f,{
  23. dbfinds:[{
  24. from:'wh_code',to:'wh_code'
  25. },{
  26. from:'wh_description',to:'pd_whname',
  27. }],
  28. }) ;
  29. }
  30. },'accountDbfindTrigger[name=creatorName]':{
  31. beforerender:function(f){
  32. Ext.apply(f,{
  33. dbfinds:[{
  34. from:'realname',to:'creatorName'
  35. }]
  36. }) ;
  37. }
  38. },'accountDbfindTrigger[name=pi_auditman]':{
  39. beforerender:function(f){
  40. Ext.apply(f,{
  41. dbfinds:[{
  42. from:'realname',to:'pi_auditman',
  43. }]
  44. }) ;
  45. }
  46. }
  47. });
  48. }
  49. });