ProjectForm.js 966 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Ext.define('erp.view.plm.project.ProjectForm',{
  2. extend: 'Ext.tab.Panel',
  3. alias: 'widget.ProjectForm',
  4. id: 'projectform',
  5. // region: 'south',
  6. frame : true,
  7. layout:'fit',
  8. items: [
  9. {
  10. title:'相关文件',
  11. xtyep:'form',
  12. id:'attachform',
  13. region: 'center',
  14. frame : true,
  15. height: 'auto',
  16. fieldDefaults: {
  17. labelWidth: 55
  18. },
  19. layout: {
  20. type: 'vbox',//hbox水平盒布局
  21. align: 'stretch' // Child items are stretched to full width子面板高度充满父容器
  22. },
  23. items:[{
  24. xtype: 'filefield',
  25. fieldLabel: '附件',
  26. id: 'attach',
  27. name: 'file',
  28. msgTarget: 'side',
  29. allowBlank: false,
  30. buttonText: '浏览..',
  31. buttonConfig:{
  32. Align:'right'
  33. }
  34. }],
  35. buttonAlign: 'center',
  36. },{
  37. title:'审批流程',
  38. layout:'column',
  39. defaultType: 'textfield',
  40. }
  41. ],
  42. });