VisitRecord.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Ext.define('erp.view.crm.customermgr.customervisit.VisitRecord',{
  2. extend: 'Ext.Viewport',
  3. hideBorders: true,
  4. // autoScroll: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. layout: 'anchor',
  9. items: [{
  10. anchor: '100% 70%',
  11. xtype: 'erpFormPanel',
  12. saveUrl: 'crm/customermgr/saveVisitRecord.action',
  13. deleteUrl: 'crm/customermgr/deleteVisitRecord.action',
  14. updateUrl: 'crm/customermgr/updateVisitRecord.action',
  15. auditUrl: 'crm/customermgr/auditVisitRecord.action',
  16. resAuditUrl: 'crm/customermgr/resAuditVisitRecord.action',
  17. submitUrl: 'crm/customermgr/submitVisitRecord.action',
  18. resSubmitUrl: 'crm/customermgr/resSubmitVisitRecord.action',
  19. getIdUrl: 'common/getId.action?seq=VISITRECORD_SEQ',
  20. pingjiaUrl:'crm/customermgr/updateVisitRecordPingjia.action',
  21. keyField: 'vr_id',
  22. codeField: 'vr_status',
  23. statusField: 'vr_statuscode'
  24. },{
  25. xtype:'tabpanel',
  26. anchor: '100% 30%',
  27. items:[{
  28. id: 'recordDetailDet',
  29. xtype: 'recordDetailDet',
  30. title:'拜访人员',
  31. _noc:1,
  32. necessaryField: 'pl_name',
  33. keyField: 'pl_id',
  34. detno: 'pl_detno',
  35. mainField: 'pl_vrid'
  36. },{
  37. id: 'recordDetail',
  38. xtype: 'recordDetail',
  39. title:'洽谈对象',
  40. _noc:1,
  41. mainField: 'cup_vrid',
  42. detno: 'cup_detno',
  43. necessaryField: 'cup_name',
  44. keyField: 'cup_id'
  45. },{
  46. id: 'InfoGrid',
  47. title:'推广项目信息',
  48. xtype: 'InfoGrid',
  49. _noc:1,
  50. relative : true,
  51. keyField: 'pi_id',
  52. mainField: 'pi_vrid',
  53. necessaryField: 'pi_brand',
  54. detno: 'pi_detno'
  55. },{
  56. title:'客户项目信息',
  57. _noc:1,
  58. xtype: 'VisitFeedBack',
  59. necessaryField:'fb_projname'
  60. },/*{
  61. id: 'ChanceDetail',
  62. title:'商机项目进展',
  63. xtype: 'ChanceDetail',
  64. keyField: 'cd_id',
  65. mainField: 'cd_viid',
  66. detno: 'cd_detno'
  67. },*/{
  68. id: 'ProgressGrid',
  69. title:'商业机会信息',
  70. _noc:1,
  71. xtype: 'ProgressGrid',
  72. keyField: 'ch_id',
  73. mainField: 'ch_vrid',
  74. necessaryField: 'ch_title',
  75. detno: 'ch_detno'
  76. },{
  77. xtype: 'erpGridPanel2',
  78. _noc:1,
  79. title:'费用报销',
  80. detno: 'vrd_detno',
  81. keyField: 'vrd_id',
  82. mainField: 'vrd_vrid',
  83. necessaryField: 'vrd_costname'
  84. }]
  85. }]
  86. });
  87. me.callParent(arguments);
  88. }
  89. });