Periods.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. Ext.define('erp.view.ma.logic.Periods',{
  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: 'check-Periods',
  11. anchor: '100% 60%',
  12. tbar: [{
  13. cls: 'x-btn-blue',
  14. id: 'check',
  15. text: '检查',
  16. width: 80,
  17. margin: '0 0 0 200'
  18. },{
  19. cls: 'x-btn-blue',
  20. id: 'close',
  21. text: $I18N.common.button.erpCloseButton,
  22. width: 80,
  23. margin: '0 0 0 5'
  24. },'->'],
  25. columns: [{
  26. text: '',
  27. dataIndex: 'check',
  28. flex: 1,
  29. renderer: function(val, meta, record) {
  30. meta.tdCls = val;
  31. return '';
  32. }
  33. },{
  34. text: '检测项',
  35. dataIndex: 'value',
  36. flex: 10,
  37. renderer: function(val, meta, record) {
  38. if(record.get('check') == 'error') {
  39. meta.style = 'color: gray';
  40. }
  41. return val;
  42. }
  43. },{
  44. text: '',
  45. dataIndex: 'link',
  46. flex: 1,
  47. renderer: function(val, meta, record) {
  48. if(record.get('check') == 'error') {
  49. meta.tdCls = 'detail';
  50. return '详细情况';
  51. }
  52. return '';
  53. }
  54. }],
  55. columnLines: true,
  56. store: Ext.create('Ext.data.Store',{
  57. fields: [{name: 'action', type: 'string'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
  58. data: [{
  59. action: 'ma/logic/per_chk.action',
  60. type: 'ar_chk_a',
  61. value: '应收账款期间 与 总账期间一致'
  62. },{
  63. action: 'ma/logic/per_chk.action',
  64. type: 'ar_chk_b',
  65. value: '当月的 出货单、退货单、发票、其它应收单、发出商品、收退款单、预收单、结算冲账单已过账'
  66. },{
  67. action: 'ma/logic/per_chk.action',
  68. type: 'ar_chk_c',
  69. value: '当月的 发票、其它应收单、发出商品、收退款单、预收单、结算单已制作凭证'
  70. },{
  71. action: 'ma/logic/per_chk.action',
  72. type: 'ar_chk_d',
  73. value: '当月的 出货单、退货单已全部转开票或发出商品'
  74. },{
  75. action: 'ma/logic/per_chk.action',
  76. type: 'ar_chk_e',
  77. value: '当月的 发票、发出商品(全部未开票的) 的销售单价、成本单价与 出货单、退货单 的一致'
  78. },{
  79. action: 'ma/logic/per_chk.action',
  80. type: 'ar_chk_f',
  81. value: '当月凭证中,应收款科目有手工录入的(来源为空的)'
  82. },{
  83. action: 'ma/logic/per_chk.action',
  84. type: 'ar_chk_g',
  85. value: '当月的 总的开票数量与 出货单、退货单 的开票数量一致'
  86. },{
  87. action: 'ma/logic/per_chk.action',
  88. type: 'ar_chk_h',
  89. value: '当月的 总的发出商品数量是否与 出货单、退货单 的发出商品数量一致'
  90. },{
  91. action: 'ma/logic/per_chk.action',
  92. type: 'ar_chk_i',
  93. value: '当月开票数据中 涉及发出商品的 总的开票数量与 发出商品的开票数量一致'
  94. },{
  95. action: 'ma/logic/per_chk.action',
  96. type: 'ar_chk_j',
  97. value: '当月预收款、预收退款与应收总账里本期预收的一致'
  98. }]
  99. })
  100. },{
  101. xtype: 'fieldcontainer',
  102. margin: '30 0 0 100',
  103. fieldLabel: '初始账期',
  104. anchor: '100% 40%',
  105. layout:'hbox',
  106. labelWidth: 70,
  107. items: [{
  108. xtype: 'monthdatefield',
  109. allowBlank: false,
  110. id: 'date',
  111. name: 'date'
  112. },{
  113. xtype: 'erpConfirmButton',
  114. cls: 'x-btn-blue',
  115. id:'confirm',
  116. width: 80,
  117. disabled:true
  118. }]
  119. }]
  120. });
  121. me.callParent(arguments);
  122. }
  123. });