ExportBomCheckMsg.js 706 B

1234567891011121314151617181920212223242526
  1. /**
  2. * 导出矩阵bOM
  3. */
  4. Ext.define('erp.view.core.button.ExportBomCheckMsg',{
  5. extend: 'Ext.Button',
  6. alias: 'widget.erpExportBomCheckMsgButton',
  7. iconCls: 'x-button-icon-check',
  8. cls: 'x-btn-gray',
  9. id: 'ExportBomCheckMsg',
  10. text: '导出全部详情',
  11. style: {
  12. marginLeft: '10px'
  13. },
  14. width: 150,
  15. handler :function(){
  16. var form =Ext.getCmp('formPanel');
  17. var caller='BomCheck';
  18. var bomId=Ext.getCmp(form.keyField).value;
  19. window.location.href=basePath+"excel/exportBOMCheckMessageExcel.action?caller="+caller+"&bomId="+bomId;
  20. },
  21. initComponent : function(){
  22. this.callParent(arguments);
  23. }
  24. });