VisitRecord3.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Ext.define('erp.view.crm.customermgr.customervisit.VisitRecord3',{
  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/saveVisitRecord3.action',
  13. deleteUrl: 'crm/customermgr/deleteVisitRecord3.action',
  14. updateUrl: 'crm/customermgr/updateVisitRecord3.action',
  15. auditUrl: 'crm/customermgr/auditVisitRecord.action',
  16. resAuditUrl: 'crm/customermgr/resAuditVisitRecord.action',
  17. submitUrl: 'crm/customermgr/submitVisitRecord3.action',
  18. resSubmitUrl: 'crm/customermgr/resSubmitVisitRecord3.action',
  19. getIdUrl: 'common/getId.action?seq=VisitRecord_SEQ',
  20. keyField: 'vr_id',
  21. codeField: 'vr_status',
  22. statusField: 'vr_statuscode'
  23. },{
  24. xtype:'tabpanel',
  25. anchor: '100% 30%',
  26. items:[{
  27. id: 'recordDetailDet',
  28. xtype: 'recordDetailDet',
  29. _noc:1,
  30. title:'拜访人员',
  31. necessaryField: 'pl_name',
  32. keyField: 'pl_id',
  33. detno: 'pl_detno',
  34. mainField: 'pl_vrid'
  35. },{
  36. id: 'recordDetail',
  37. xtype: 'recordDetail3',
  38. _noc:1,
  39. title:'洽谈对象',
  40. mainField: 'cup_vrid',
  41. detno: 'cup_detno',
  42. necessaryField: 'cup_name',
  43. keyField: 'cup_id'
  44. },{
  45. id: 'Marketing',
  46. title:'市场推广策略',
  47. _noc:1,
  48. xtype: 'Marketing',
  49. keyField: 'ma_id',
  50. mainField: 'ma_vrid',
  51. detno: 'ma_detno'
  52. },{
  53. title:'原厂推广策略',
  54. _noc:1,
  55. xtype: 'VenderMaketing',
  56. necessaryField:'vm_model'
  57. },/*{
  58. id: 'ChanceDetail',
  59. title:'商机项目进展',
  60. xtype: 'ChanceDetail',
  61. keyField: 'cd_id',
  62. mainField: 'cd_viid',
  63. detno: 'cd_detno'
  64. },*/{
  65. id: 'Rival',
  66. title:'竞争对手状况',
  67. _noc:1,
  68. xtype: 'Rival',
  69. keyField: 'ri_id',
  70. mainField: 'ri_vrid',
  71. necessaryField: 'ri_model',
  72. detno: 'ri_detno'
  73. },{
  74. id: 'Price',
  75. title:'价格与付款条件',
  76. _noc:1,
  77. xtype: 'Price',
  78. keyField: 'pr_id',
  79. mainField: 'pr_vrid',
  80. detno: 'pr_detno'
  81. },{
  82. id: 'Expect',
  83. _noc:1,
  84. title:'短期预测',
  85. xtype: 'Expect',
  86. keyField: 'ex_id',
  87. mainField: 'ex_vrid',
  88. detno: 'ex_detno'
  89. },{
  90. id: 'ProductPlanning',
  91. _noc:1,
  92. title:'未来产品规划',
  93. xtype: 'ProductPlanning',
  94. keyField: 'pp_id',
  95. mainField: 'pp_vrid',
  96. detno: 'pp_detno'
  97. },{
  98. xtype: 'erpGridPanel2',
  99. _noc:1,
  100. title:'费用报销',
  101. detno: 'vrd_detno',
  102. keyField: 'vrd_id',
  103. mainField: 'vrd_vrid',
  104. necessaryField: 'vrd_costname'
  105. }]
  106. }]
  107. });
  108. me.callParent(arguments);
  109. }
  110. });