CheckARAccount.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. Ext.define('erp.view.fa.ars.CheckARAccount',{
  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. columns: [{
  23. text: '',
  24. dataIndex: 'check',
  25. flex: 1,
  26. renderer: function(val, meta, record) {
  27. meta.tdCls = val;
  28. return '';
  29. }
  30. },{
  31. text: '检测项',
  32. dataIndex: 'value',
  33. flex: 10,
  34. renderer: function(val, meta, record) {
  35. if(record.get('check') == 'error') {
  36. meta.style = 'color: gray';
  37. }
  38. return val;
  39. }
  40. },{
  41. text: '',
  42. dataIndex: 'link',
  43. flex: 1,
  44. renderer: function(val, meta, record) {
  45. if(record.get('check') == 'error') {
  46. meta.tdCls = 'detail';
  47. return '详细情况';
  48. }
  49. return '';
  50. }
  51. }],
  52. columnLines: true,
  53. store: Ext.create('Ext.data.Store',{
  54. fields: [{name: 'action', type: 'string'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  55. data: [{
  56. action: 'fa/ars/chk_a.action',
  57. type: 'ar_chk_a',
  58. value: '应收帐款期间 与 总账期间一致'
  59. },{
  60. action: 'fa/ars/chk_b.action',
  61. type: 'ar_chk_b',
  62. value: '当月的应收系统当月所有单据是否全部已过账'
  63. },{
  64. action: 'fa/ars/chk_c.action',
  65. type: 'ar_chk_c',
  66. value: '当月的应收系统当月所有单据是否已全部制作凭证已制作凭证'
  67. },{
  68. action: 'fa/ars/chk_d.action',
  69. type: 'ar_chk_d',
  70. value: '当月的 出货单、退货单已全部转开票或发出商品'
  71. },{
  72. action: 'fa/ars/chk_t.action',
  73. type: 'ar_chk_t',
  74. value: '当月应收发票中来源的发出商品日期小于当月'
  75. },{
  76. action: 'fa/ars/chk_u.action',
  77. type: 'ar_chk_u',
  78. value: '当月应收发票中来源的出入库日期不存在非当月的'
  79. },{
  80. action: 'fa/ars/chk_e.action',
  81. type: 'ar_chk_e',
  82. value: '当月的 发票、发出商品(全部未开票的) 的销售单价、成本单价与 出货单、退货单 的一致'
  83. },{
  84. action: 'fa/ars/chk_f.action',
  85. type: 'ar_chk_f',
  86. value: '当月凭证中,应收款科目有手工录入的(来源为空的)'
  87. },{
  88. action: 'fa/ars/chk_g.action',
  89. type: 'ar_chk_g',
  90. value: '当月的 总的开票数量与 出货单、退货单 的开票数量一致'
  91. },{
  92. action: 'fa/ars/chk_h.action',
  93. type: 'ar_chk_h',
  94. value: '当月的 总的发出商品数量是否与 出货单、退货单 的发出商品数量一致'
  95. },{
  96. action: 'fa/ars/chk_i.action',
  97. type: 'ar_chk_i',
  98. value: '当月开票数据中 涉及发出商品的 总的开票数量与 发出商品的开票数量一致'
  99. },{
  100. action: 'fa/ars/chk_v.action',
  101. type: 'ar_chk_v',
  102. value: '当月应收账款科目余额与应收总账应收期末余额一致'
  103. },{
  104. action: 'fa/ars/chk_w.action',
  105. type: 'ar_chk_w',
  106. value: '当月预收账款科目余额与应收总账预收期末余额一致'
  107. },{
  108. action: 'fa/ars/chk_x.action',
  109. type: 'ar_chk_x',
  110. value: '当月发出商品科目余额与应收总账发出商品期末余额(成本金额)一致'
  111. }]
  112. }),
  113. bbar: [{
  114. xtype: 'checkbox',
  115. boxLabel: '知道错误了,我要继续结账',
  116. id : 'allow',
  117. hidden : true,
  118. margin: '0 5 0 20'
  119. },'->',{
  120. cls: 'x-btn-blue',
  121. id: 'check',
  122. text: '结账检查',
  123. width: 80,
  124. margin: '0 0 0 50'
  125. },{
  126. cls: 'x-btn-blue',
  127. id: 'accoutover',
  128. text: '结 账',
  129. width: 80,
  130. disabled : true,
  131. margin: '0 0 0 5'
  132. },{
  133. cls: 'x-btn-blue',
  134. id: 'resaccoutover',
  135. text: '反结账',
  136. width: 80,
  137. margin: '0 0 0 5'
  138. },{
  139. cls: 'x-btn-blue',
  140. id: 'close',
  141. text: $I18N.common.button.erpCloseButton,
  142. width: 80,
  143. margin: '0 175 0 5'
  144. }]
  145. }]
  146. });
  147. me.callParent(arguments);
  148. }
  149. });