DealMake.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. *对制造单进行 "关闭",“投放”,"批准","组合"等操作
  3. */
  4. Ext.define('erp.view.core.button.DealMake',{
  5. extend: 'Ext.Button',
  6. alias: 'widget.erpDealMakeButton',
  7. iconCls: 'x-button-icon-submit',
  8. cls: 'x-btn-gray',
  9. id: 'dealmake',
  10. text: $I18N.common.button.erpDealMakeButton,
  11. style: {
  12. marginLeft: '10px'
  13. },
  14. width: 100,
  15. initComponent : function(){
  16. this.callParent(arguments);
  17. this.addEvents({
  18. base: true,
  19. formal: true
  20. });
  21. },
  22. menu: [{
  23. iconCls: 'main-msg',
  24. text: '投放',
  25. id: 'base',
  26. listeners: {
  27. click: function(m){
  28. Ext.getCmp('dealmake').fireEvent('base');
  29. }
  30. }
  31. },{
  32. iconCls: 'main-msg',
  33. text: '批准',
  34. id: 'formal',
  35. listeners: {
  36. click: function(m){
  37. console.log(this);
  38. Ext.getCmp('dealmake').fireEvent('formal');
  39. }
  40. }
  41. },
  42. {
  43. iconCls: 'main-msg',
  44. text: '组合',
  45. id: 'combine',
  46. listeners: {
  47. click: function(m){
  48. console.log(this);
  49. Ext.getCmp('dealmake').fireEvent('combine');
  50. }
  51. }
  52. }]
  53. });