VisitRecord4.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Ext.define('erp.view.crm.customermgr.customervisit.VisitRecord4',{
  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/saveVisitRecord4.action',
  13. deleteUrl: 'crm/customermgr/deleteVisitRecord4.action',
  14. updateUrl: 'crm/customermgr/updateVisitRecord4.action',
  15. auditUrl: 'common/auditCommon.action?caller='+caller,
  16. resAuditUrl: 'common/resAuditCommon.action?caller='+caller,
  17. submitUrl: 'common/submitCommon.action?caller='+caller,
  18. resSubmitUrl: 'common/resSubmitCommon.action?caller='+caller,
  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. title:'拜访人员',
  30. _noc:1,
  31. necessaryField: 'pl_name',
  32. keyField: 'pl_id',
  33. detno: 'pl_detno',
  34. mainField: 'pl_vrid'
  35. },{
  36. id: 'recordDetail',
  37. xtype: 'recordDetail',
  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. xtype: 'Marketing',
  48. keyField: 'ma_id',
  49. mainField: 'ma_vrid',
  50. detno: 'ma_detno'
  51. },*/{
  52. title:'原厂推广策略',
  53. _noc:1,
  54. xtype: 'VenderMaketing',
  55. necessaryField:'vm_model',
  56. caller:'VenderMaketing!Resource'
  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. caller:'Rival!Resource'
  74. },{
  75. id: 'Price',
  76. title:'价格与付款条件',
  77. _noc:1,
  78. xtype: 'Price',
  79. keyField: 'pr_id',
  80. mainField: 'pr_vrid',
  81. detno: 'pr_detno',
  82. caller:'Price!Resource'
  83. },/*{
  84. id: 'Expect',
  85. title:'短期预测',
  86. xtype: 'Expect',
  87. keyField: 'ex_id',
  88. mainField: 'ex_vrid',
  89. detno: 'ex_detno'
  90. },*/{
  91. id: 'ProductPlanning',
  92. _noc:1,
  93. title:'产品规划',
  94. xtype: 'ProductPlanning',
  95. keyField: 'pp_id',
  96. mainField: 'pp_vrid',
  97. detno: 'pp_detno'
  98. },{
  99. xtype: 'erpGridPanel2',
  100. _noc:1,
  101. title:'费用报销',
  102. detno: 'vrd_detno',
  103. keyField: 'vrd_id',
  104. mainField: 'vrd_vrid',
  105. necessaryField: 'vrd_costname'
  106. }]
  107. }]
  108. });
  109. me.callParent(arguments);
  110. }
  111. });