| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- Ext.define('erp.view.fa.arp.CheckAPAccount',{
- extend: 'Ext.Viewport',
- layout: 'anchor',
- hideBorders: true,
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [{
- xtype: 'grid',
- id: 'account-check',
- anchor: '100% 100%',
- tbar: [{
- xtype: 'tbtext',
- text: '当前期间:',
- margin: '0 0 0 20'
- },{
- xtype: 'tbtext',
- id: 'yearmonth',
- text: '201305',
- margin: '0 0 0 2'
- },'->'],
- columns: [{
- text: '',
- dataIndex: 'check',
- flex: 1,
- renderer: function(val, meta, record) {
- meta.tdCls = val;
- return '';
- }
- },{
- text: '序号',
- dataIndex: 'detno',
- flex: 0.7,
- renderer: function(val, meta, record) {
- return val;
- }
- },{
- text: '检测项',
- dataIndex: 'value',
- flex: 10,
- renderer: function(val, meta, record) {
- if(record.get('check') == 'error') {
- meta.style = 'color: gray';
- }
- return val;
- }
- },{
- text: '',
- dataIndex: 'link',
- flex: 1,
- renderer: function(val, meta, record) {
- if(record.get('check') == 'error') {
- meta.tdCls = 'detail';
- return '详细情况';
- }
- return '';
- }
- }],
- columnLines: true,
- store: Ext.create('Ext.data.Store',{
- fields: [{name: 'action', type: 'string'}, {name: 'detno', type : 'number'}, {name: 'type', type: 'string'}, {name: 'value', type: 'string'}],
- data: [{
- action: 'fa/arp/chk_a.action',
- detno: 1,
- type: 'ap_chk_a',
- value: '应付账款期间 与 总账期间一致'
- },{
- action: 'fa/arp/chk_b.action',
- detno: 2,
- type: 'ap_chk_b',
- value: '当月的 验收单、验退单、发票、其它应付单、暂估、付退款单、预付单、结算冲账单已过账'
- },{
- action: 'fa/arp/chk_c.action',
- detno: 3,
- type: 'ap_chk_c',
- value: '当月的 发票、其它应付单、暂估、付退款单、预付单、结算单已制作凭证'
- },{
- action: 'fa/arp/chk_d.action',
- detno: 4,
- type: 'ap_chk_d',
- value: '当月的 验收单、验退单已全部转开票或暂估'
- },{
- action: 'fa/arp/chk_e.action',
- detno: 5,
- type: 'ap_chk_e',
- value: '当月的 发票、暂估(全部未开票的) 的采购单价、成本单价与 验收单、验退单 的一致'
- },{
- action: 'fa/arp/chk_f.action',
- detno: 6,
- type: 'ap_chk_f',
- value: '当月凭证中,应付款科目有手工录入的(来源为空的)'
- },{
- action: 'fa/arp/chk_g.action',
- detno: 7,
- type: 'ap_chk_g',
- value: '当月的 总的开票数量与 验收单、验退单 的开票数量一致'
- },{
- action: 'fa/arp/chk_h.action',
- detno: 8,
- type: 'ap_chk_h',
- value: '当月的 总的暂估数量是否与 验收单、验退单 的暂估数量一致'
- }/*,{
- action: 'fa/arp/chk_i.action',
- type: 'ap_chk_i',
- value: '当月开票数据中 涉及暂估的 总的开票数量与 暂估的开票数量一致'
- }*/,{
- action: 'fa/arp/chk_j.action',
- detno: 9,
- type: 'ap_chk_j',
- value: '当月预付款、预付退款与应付总账里本期预付的一致'
- },{
- action: 'fa/arp/chk_k.action',
- detno: 10,
- type: 'ap_chk_k',
- value: '当月预付冲账与应付总账里本期预付冲账的一致'
- },{
- action: 'fa/arp/chk_l.action',
- detno: 11,
- type: 'ap_chk_l',
- value: '当月暂估与应付总账里本期应付暂估增加一致'
- },
- /*{
- action: 'fa/arp/chk_m.action',
- type: 'ap_chk_m',
- value: '当月暂估(采购价)与应付总账里本期暂估的一致'
- },*/
- {
- action: 'fa/arp/chk_n.action',
- detno: 12,
- type: 'ap_chk_n',
- value: '当月开票数据中涉及暂估的与应付总账里本期应付暂估减少一致'
- },
- /*{
- action: 'fa/arp/chk_o.action',
- type: 'ap_chk_o',
- value: '当月开票数据中 涉及暂估的(采购价)与应付总账里本期暂估转开票的一致'
- },*/
- {
- action: 'fa/arp/chk_p.action',
- detno: 13,
- type: 'ap_chk_p',
- value: '当月的 发票、其它应付单 的总额与 应付总账本期应付一致'
- },{
- action: 'fa/arp/chk_q.action',
- detno: 14,
- type: 'ap_chk_q',
- value: '当月的 付款单、退款单、结算单 的总额与 应付总账的本期付款一致'
- },{
- action: 'fa/arp/chk_r.action',
- detno: 15,
- type: 'ap_chk_r',
- value: '当月应付账款科目余额与应付总账应付期末余额是否一致'
- },{
- action: 'fa/arp/chk_s.action',
- detno: 16,
- type: 'ap_chk_s',
- value: '当月预付账款科目余额与预付总账预付期末余额是否一致'
- },{
- action: 'fa/arp/chk_t.action',
- detno: 17,
- type: 'ap_chk_t',
- value: '当月应付暂估科目余额与应付总账应付暂估余额(采购价除税)是否一致'
- }]
- }),
- bbar: [{
- xtype: 'checkbox',
- boxLabel: '知道错误了,我要继续结账',
- id : 'allow',
- hidden : true,
- margin: '0 5 0 20'
- },'->',{
- cls: 'x-btn-blue',
- id: 'check',
- text: '结账检查',
- width: 80,
- margin: '0 0 0 50'
- },{
- cls: 'x-btn-blue',
- id: 'accoutover',
- text: '结 账',
- width: 80,
- disabled : true,
- margin: '0 0 0 5'
- },{
- cls: 'x-btn-blue',
- id: 'resaccoutover',
- text: '反结账',
- width: 80,
- margin: '0 0 0 5'
- },{
- cls: 'x-btn-blue',
- id: 'close',
- text: $I18N.common.button.erpCloseButton,
- width: 80,
- margin: '0 175 0 5'
- }]
- }]
- });
- me.callParent(arguments);
- }
- });
|