OATask.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Ext.define('erp.view.oa.myProcess.OATask',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'anchor',
  10. items: [{
  11. xtype: 'erpFormPanel',
  12. anchor: '100% 60%',
  13. saveUrl: 'oa/myProcess/saveOATask.action',
  14. deleteUrl: 'oa/myProcess/deleteOATask.action',
  15. updateUrl: 'oa/myProcess/updateOATask.action',
  16. getIdUrl: 'common/getId.action?seq=ProjectTask_SEQ',
  17. auditUrl: 'common/auditCommon.action?caller='+caller,
  18. resAuditUrl: 'common/resAuditCommon.action?caller='+caller,
  19. submitUrl: 'common/submitCommon.action?caller='+caller,
  20. resSubmitUrl: 'common/resSubmitCommon.action?caller='+caller,
  21. keyField: 'ma_id'
  22. },{
  23. xtype:'tabpanel',
  24. anchor: '100% 40%',
  25. items:[{
  26. title:'待办事宜',
  27. xtype: 'erpGridPanel2',
  28. anchor: '100% 30%',
  29. //detno: 'mad_detno',
  30. keyField: 'id',
  31. mainField: 'parentid'
  32. },{
  33. //id: 'recordDetailDet',
  34. xtype: 'OATaskRecord',
  35. title:'任务报告',
  36. necessaryField: 'wr_redcord'
  37. //keyField: 'pl_id',
  38. //detno: 'pl_detno',
  39. //mainField: 'pl_vrid'
  40. },{
  41. xtype: 'OATaskChange',
  42. title:'任务变更',
  43. necessaryField: 'wr_remark'
  44. }]
  45. }/*{
  46. xtype: 'erpGridPanel2',
  47. anchor: '100% 30%',
  48. detno: 'mad_detno',
  49. //necessaryField: 'md_participants',
  50. keyField: 'mad_id',
  51. mainField: 'mad_maid'
  52. }*/]
  53. }]
  54. });
  55. me.callParent(arguments);
  56. }
  57. });