SaleOccur.js 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. *订单转制造单整批生成
  3. */
  4. Ext.define('erp.view.core.button.SaleOccur',{
  5. extend: 'Ext.Button',
  6. alias: 'widget.erpSaleOccurButton',
  7. iconCls: 'x-button-icon-submit',
  8. cls: 'x-btn-gray',
  9. id: 'saleoccur',
  10. text: $I18N.common.button.erpSaleOccurButton,
  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: 'list',
  26. listeners: {
  27. click: function(m){
  28. Ext.getCmp('saleoccur').fireEvent('list');
  29. }
  30. }
  31. },{
  32. iconCls: 'main-msg',
  33. text: '生成制造单',
  34. id: 'make',
  35. listeners: {
  36. click: function(m){
  37. console.log(this);
  38. Ext.getCmp('saleoccur').fireEvent('make');
  39. }
  40. }
  41. }
  42. ]
  43. });