ShowCmDetail.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Ext.define('erp.view.fa.ars.ShowCmDetail',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'form',
  10. anchor: '100% 13%',
  11. layout: 'column',
  12. bodyStyle: 'background:#f1f1f1;',
  13. buttonAlign: 'center',
  14. tbar: [{
  15. name: 'export',
  16. text: $I18N.common.button.erpExportButton,
  17. iconCls: 'x-button-icon-excel',
  18. cls: 'x-btn-gray',
  19. margin: '0 4 0 0'
  20. },{
  21. name: 'print',
  22. text: $I18N.common.button.erpPrintButton,
  23. iconCls: 'x-button-icon-print',
  24. margin: '0 4 0 0',
  25. cls: 'x-btn-gray'
  26. },{
  27. text: $I18N.common.button.erpCloseButton,
  28. iconCls: 'x-button-icon-close',
  29. id:'close',
  30. cls: 'x-btn-gray',
  31. margin: '0 4 0 0',
  32. handler: function(){
  33. var main = parent.Ext.getCmp("content-panel");
  34. main.getActiveTab().close();
  35. }
  36. },'->'],
  37. items:[{
  38. xtype: 'displayfield',
  39. fieldLabel: "<font size='4'>客户名称</font>",
  40. value:"<font size='4'>"+custname+"</font>",
  41. // labelWidth:'50',
  42. columnWidth:.38,
  43. readOnly:true
  44. },{
  45. xtype: 'displayfield',
  46. name: 'cm_currency',
  47. id: 'cm_currency',
  48. fieldLabel: "<font size='4'>币别</font>",
  49. value:"<font size='4'>"+currency+"</font>",
  50. labelWidth:'50',
  51. columnWidth:.15,
  52. readOnly:true
  53. },{
  54. xtype: 'displayfield',
  55. name: 'cm_yearmonth',
  56. id: 'cm_yearmonth',
  57. labelAlign:'left',
  58. labelWidth:'50',
  59. fieldLabel: "<font size='4'>期间</font>",
  60. value:"<font size='4'>"+yearmonth+"</font>",
  61. columnWidth:.15,
  62. readOnly:true
  63. }
  64. ]
  65. },{
  66. xtype: 'cmdetailgrid',
  67. anchor: '100% 87%'
  68. }]
  69. });
  70. me.callParent(arguments);
  71. }
  72. });