TurnVendor.js 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * 转供应商按钮
  3. */
  4. Ext.define('erp.view.core.button.TurnVendor',{
  5. extend: 'Ext.Button',
  6. alias: 'widget.erpTurnVendorButton',
  7. iconCls: 'x-button-icon-submit',
  8. cls: 'x-btn-gray',
  9. id: 'turnVendor',
  10. text: $I18N.common.button.erpTurnVendorButton,
  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('turnVendor').fireEvent('base');
  29. }
  30. }
  31. },{
  32. iconCls: 'main-msg',
  33. text: '正式',
  34. id: 'formal',
  35. listeners: {
  36. click: function(m){
  37. Ext.getCmp('turnVendor').fireEvent('formal');
  38. }
  39. }
  40. }]*/
  41. });