CheckAccount.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Ext.define('erp.view.fa.fix.CheckAccount',{
  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: 'grid',
  10. id: 'account-check',
  11. anchor: '100% 100%',
  12. tbar: [{
  13. xtype: 'tbtext',
  14. text: '会计期间:',
  15. margin: '0 0 0 20'
  16. },{
  17. xtype: 'tbtext',
  18. id: 'yearmonth',
  19. text: '201305',
  20. margin: '0 0 0 2'
  21. },{
  22. cls: 'x-btn-blue',
  23. id: 'check',
  24. text: '检查',
  25. width: 80,
  26. margin: '0 0 0 50'
  27. },{
  28. cls: 'x-btn-blue',
  29. id: 'close',
  30. text: $I18N.common.button.erpCloseButton,
  31. width: 80,
  32. margin: '0 0 0 5'
  33. },'->'],
  34. columns: [{
  35. text: '',
  36. dataIndex: 'check',
  37. flex: 1,
  38. renderer: function(val, meta, record) {
  39. meta.tdCls = val;
  40. return '';
  41. }
  42. },{
  43. text: '序号',
  44. dataIndex: 'detno',
  45. flex: 0.7,
  46. renderer: function(val, meta, record) {
  47. return val;
  48. }
  49. },{
  50. text: '检测项',
  51. dataIndex: 'value',
  52. flex: 10,
  53. renderer: function(val, meta, record) {
  54. if(record.get('check') == 'error') {
  55. meta.style = 'color: gray';
  56. }
  57. return val;
  58. }
  59. },{
  60. text: '',
  61. dataIndex: 'link',
  62. flex: 1,
  63. renderer: function(val, meta, record) {
  64. if(record.get('check') == 'error') {
  65. meta.tdCls = 'detail';
  66. return '详细情况';
  67. }
  68. return '';
  69. }
  70. }],
  71. columnLines: true,
  72. store: Ext.create('Ext.data.Store',{
  73. fields: [{name: 'action', type: 'string'}, {name: 'detno', type : 'number'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  74. data: [{
  75. action: 'fa/fix/chk_a.action',
  76. detno: 1,
  77. type: 'fix_chk_a',
  78. value: '固定资产期间与总账期间是否一致'
  79. },{
  80. action: 'fa/fix/chk_b.action',
  81. detno: 2,
  82. type: 'fix_chk_b',
  83. value: '当月是否计提折旧'
  84. },{
  85. action: 'fa/fix/chk_c.action',
  86. detno: 3,
  87. type: 'fix_chk_c',
  88. value: '所有卡片是否已审核'
  89. },{
  90. action: 'fa/fix/chk_d.action',
  91. detno: 4,
  92. type: 'fix_chk_d',
  93. value: '当月的卡片变更单是否已审核'
  94. },{
  95. action: 'fa/fix/chk_e.action',
  96. detno: 5,
  97. type: 'fix_chk_e',
  98. value: '当月的资产增加单、资产减少单是否过账'
  99. },{
  100. action: 'fa/fix/chk_f.action',
  101. detno: 6,
  102. type: 'fix_chk_f',
  103. value: '当月新增的已审核卡片是否已经生成凭证'
  104. },{
  105. action: 'fa/fix/chk_g.action',
  106. detno: 7,
  107. type: 'fix_chk_g',
  108. value: '当月的折旧单、资产增加单、资产减少单是否已经生成凭证'
  109. },{
  110. action: 'fa/fix/chk_h.action',
  111. detno: 8,
  112. type: 'fix_chk_h',
  113. value: '固定资产所有卡片的原值金额合计与总账固定资产科目的本期余额是否一致'
  114. },{
  115. action: 'fa/fix/chk_i.action',
  116. detno: 9,
  117. type: 'fix_chk_i',
  118. value: '固定资产所有卡片的累计折旧金额合计与总账累计折旧科目的本期余额是否一致'
  119. }]
  120. })
  121. }]
  122. });
  123. me.callParent(arguments);
  124. }
  125. });