VisitRecord2.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Ext.define('erp.view.crm.customermgr.customervisit.VisitRecord2',{
  2. extend: 'Ext.Viewport',
  3. hideBorders: true,
  4. initComponent : function(){
  5. var me = this;
  6. Ext.apply(me, {
  7. layout: 'anchor',
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. title: '<font color=#00868B>拜访记录</font>',
  11. saveUrl: 'crm/customermgr/saveVisitRecord2.action',
  12. deleteUrl: 'crm/customermgr/deleteVisitRecord.action',
  13. updateUrl: 'crm/customermgr/updateVisitRecord2.action',
  14. auditUrl: 'common/auditCommon.action?caller='+caller,
  15. resAuditUrl:'common/resAuditCommon.action?caller='+caller,
  16. submitUrl: 'crm/customermgr/submitVisitRecord.action',
  17. resSubmitUrl: 'crm/customermgr/resSubmitVisitRecord.action',
  18. getIdUrl: 'common/getId.action?seq=VISITRECORD_SEQ',
  19. keyField: 'vr_id',
  20. codeField: 'vr_status',
  21. statusField: 'vr_statuscode',
  22. anchor: '100% 70%'
  23. },{
  24. xtype:'tabpanel',
  25. anchor: '100% 30%',
  26. items:[{
  27. id: 'InfoGrid',
  28. title:'推荐产品信息',
  29. xtype: 'InfoGrid',
  30. _noc:1,
  31. keyField: 'pi_id',
  32. mainField: 'pi_vrid',
  33. necessaryField: 'pi_brand',
  34. detno: 'pi_detno'
  35. },{
  36. title:'客户项目信息',
  37. _noc:1,
  38. xtype: 'VisitFeedBack',
  39. necessaryField:'fb_projname'
  40. }]
  41. }]
  42. });
  43. me.callParent(arguments);
  44. }
  45. });