Ext.define('saas.view.money.othreceipts.QueryPanel', { extend: 'saas.view.core.query.QueryPanel', xtype: 'money-othreceipts-querypanel', controller: 'money-othreceipts-querypanel', viewModel: 'money-othreceipts-querypanel', viewName: 'money-othreceipts-querypanel', queryFormItems: [{ xtype: 'hidden', name: 'or_id', fieldLabel: 'ID', allowBlank: true, columnWidth: 0 }, { xtype : 'hidden', name : 'or_custid', fieldLabel : '客户ID' }, { xtype: 'textfield', name: 'or_code', fieldLabel: '单据编号', }, { xtype: 'hidden', name: 'or_custcode', fieldLabel: '客户编号' }, { xtype: 'customerDbfindTrigger', name: 'or_custname', fieldLabel: '客户名称', },{ xtype: 'textfield', name: 'creatorName', fieldLabel: '录入人' },{ xtype: 'textfield', name: 'or_auditman', fieldLabel: '审核人' }, { xtype: 'bandinfoDbfindTrigger', name: 'or_bankname', fieldLabel: '结算账户' }, { xtype: 'condatefield', name: 'or_date', fieldLabel: '单据日期', columnWidth: 0.5, operation: 'between' },{ xtype: 'combobox', name: 'or_statuscode', fieldLabel: '审核状态', queryMode: 'local', displayField: 'or_status', valueField: 'or_statuscode', emptyText :'全部', editable:false, store: Ext.create('Ext.data.ArrayStore', { fields: ['or_statuscode', 'or_status'], data: [ ["ALL", "全部"], ["AUDITED", "已审核"], ["UNAUDITED", "未审核"] ] }), getCondition: function(value) { if(value == 'ALL') { return '1=1'; }else { return 'or_statuscode=\'' + value + '\''; } } }, { name: 'ord_type', fieldLabel: '收入类别', xtype : "remotecombo", storeUrl:'/api/document/fundinouttype/getCombo?condition=收入', hiddenBtn:true//true 则会关闭新增按钮功能 }], moreQueryFormItems: [], queryGridConfig: { idField: 'id', codeField: 'or_code', addTitle: '其它收入单', addXtype: 'money-othreceipts-formpanel', defaultCondition:'', baseVastUrl: '/api/money/othreceipts/', baseColumn: [{ text: 'id', dataIndex: 'id', hidden:true, xtype: 'numbercolumn' }, { text: '单据编号', dataIndex: 'or_code', width: 200 },{ text: '单据日期', dataIndex: 'or_date', xtype: 'datecolumn', width: 200 }, { text: '审核状态', dataIndex: 'or_status', width: 120 }, { text: '客户名称', dataIndex: 'or_custname', width: 120 }, { text: '结算账户', dataIndex: 'or_bankname', width: 120 },{ text: '收款金额', xtype: 'numbercolumn', dataIndex: 'or_amount', width: 120, renderer : function(v) { var arr = (v + '.').split('.'); var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0'); var format = '0,000.' + xr.join(); return Ext.util.Format.number(v, format); } },{ text: '录入人', dataIndex: 'or_recorder', width: 120 },{ text: '审核人', dataIndex: 'or_auditman', width: 120 }, { text: '收入类别', dataIndex: 'ord_type', width: 120 }, { text: '明细金额', xtype: 'numbercolumn', dataIndex: 'ord_nowbalance', width: 120, renderer : function(v) { var arr = (v + '.').split('.'); var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0'); var format = '0,000.' + xr.join(); return Ext.util.Format.number(v, format); } }, { text: '备注', dataIndex: 'ord_remark', width: 250 }], relativeColumn: [] } });