DealMake.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. Ext.getCmp('dealmake').fireEvent('formal');
  38. }
  39. }
  40. },
  41. {
  42. iconCls: 'main-msg',
  43. text: '组合',
  44. id: 'combine',
  45. listeners: {
  46. click: function(m){
  47. Ext.getCmp('dealmake').fireEvent('combine');
  48. }
  49. }
  50. }]
  51. });