MakeOccur.js 956 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. *整批子制造单生成
  3. *生成清单,生成制造单
  4. */
  5. Ext.define('erp.view.core.button.MakeOccur',{
  6. extend: 'Ext.Button',
  7. alias: 'widget.erpMakeOccurButton',
  8. iconCls: 'x-button-icon-submit',
  9. cls: 'x-btn-gray',
  10. id: 'makeoccur',
  11. text: $I18N.common.button.erpMakeOccurButton,
  12. style: {
  13. marginLeft: '10px'
  14. },
  15. width: 100,
  16. initComponent : function(){
  17. this.callParent(arguments);
  18. this.addEvents({
  19. base: true,
  20. formal: true
  21. });
  22. },
  23. menu: [{
  24. iconCls: 'main-msg',
  25. text: '生成清单',
  26. id: 'list',
  27. listeners: {
  28. click: function(m){
  29. Ext.getCmp('makeoccur').fireEvent('list');
  30. }
  31. }
  32. },{
  33. iconCls: 'main-msg',
  34. text: '生成制造单',
  35. id: 'make',
  36. listeners: {
  37. click: function(m){
  38. Ext.getCmp('makeoccur').fireEvent('make');
  39. }
  40. }
  41. }
  42. ]
  43. });