QueryPanelController.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Ext.define('make.view.stock.makeIn.QueryPanelController', {
  2. extend: 'saas.view.core.query.QueryPanelController',
  3. alias: 'controller.stock-makein-querypanel',
  4. init: function (form) {
  5. var me = this;
  6. this.control({
  7. // 物料编号
  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. },'dbfindtrigger[name=prodinout.creatorName]':{
  21. beforerender:function(f){
  22. Ext.apply(f,{
  23. dbfinds:[{
  24. from:'em_name',to:'prodinout.creatorName'
  25. }],
  26. }) ;
  27. }
  28. },'dbfindtrigger[name=pi_auditman]':{
  29. beforerender:function(f){
  30. Ext.apply(f,{
  31. dbfinds:[{
  32. from:'em_name',to:'pi_auditman',
  33. }],
  34. }) ;
  35. }
  36. },'dbfindtrigger[name=Prodiodetail.pd_prodcode]':{
  37. beforerender:function(f){
  38. Ext.apply(f,{
  39. dbfinds:[{
  40. from:'pr_code',to:'Prodiodetail.pd_prodcode',
  41. }, {
  42. from:'pr_detail',to:'pr_detail'
  43. }, {
  44. from:'pr_orispeccode',to:'pr_orispeccode'
  45. }, {
  46. from:'pr_brand',to:'pr_brand'
  47. }],
  48. }) ;
  49. }
  50. }
  51. });
  52. },
  53. });