Ext.define('saas.view.money.recBalance.QueryPanel', { extend: 'saas.view.core.query.QueryPanel', xtype: 'money-recbalance-querypanel', controller: 'money-recbalance-querypanel', viewModel: 'money-recbalance-querypanel', viewName: 'money-recbalance-querypanel', queryFormItems: [{ xtype: 'textfield', name: 'rb_code', emptyText :'请输入单号' },{ xtype: 'condatefield', name: 'rb_date', fieldLabel: '日期', columnWidth: 0.5, operation: 'between' }, { xtype: 'customerDbfindTrigger', name: 'rb_custname', fieldLabel: '客户', emptyText :'请输入客户编号或名称' }/* , { xtype: 'textfield', name: 'rbd_slcode', fieldLabel: '来源单号', showDetail: true },{ xtype:'textfield', name:'rbd_slkind', fieldLabel: '业务类型', showDetail: true } */, { xtype: 'accountDbfindTrigger', name: 'creatorName', fieldLabel: '录入人', emptyText:'请输入账户名称或姓名', getCondition: function(value) { if(!value) { return '1=1'; }else { return 'recbalance.creatorName like\'%' + value + '%\''; } } }, { xtype: 'accountDbfindTrigger', name: 'rb_auditman', fieldLabel: '审核人', emptyText:'请输入账户名称或姓名' }], moreQueryFormItems: [], queryGridConfig: { idField: 'id', codeField: 'rb_code', addTitle: '收款单', addXtype: 'money-recbalance-formpanel', defaultCondition:'', baseVastUrl: '/api/money/recbalance/', caller: 'RecBalance', baseColumn: [{ text: 'id', dataIndex: 'id', width: 100, xtype: 'numbercolumn', hidden: true }, { text: '收款单号', dataIndex: 'rb_code', width: 130 }, { text: '日期', dataIndex: 'rb_date', xtype: 'datecolumn', width: 100 }, { text: '客户名称', dataIndex: 'rb_custname', width: 180, }, { text: '单据状态', align: 'center', dataIndex: 'rb_status', width: 80 }, { text: '收款人', dataIndex: 'rb_manname', width: 110 }, { text: '录入人', dataIndex: 'creatorName', width: 110 }, { text: '审核人', dataIndex: 'rb_auditman', width: 110 }, { text: '备注', dataIndex: 'rb_remark', width: 250 }], relativeColumn:[{ text: 'id', dataIndex: 'id', width: 100, xtype: 'numbercolumn', hidden: true }, { text: '收款单号', dataIndex: 'rb_code', width: 130 }, { text: '日期', dataIndex: 'rb_date', xtype: 'datecolumn', width: 100 }, { text: '单据状态', align: 'center', dataIndex: 'rb_status', width: 80 }, { text: '客户名称', dataIndex: 'rb_custname', width: 180, },{ text: '收款人', dataIndex: 'rb_manname', width: 100 }, { text: '录入人', dataIndex: 'creatorName', width: 110 }, { text: '审核人', dataIndex: 'rb_auditman', width: 110 },{ text: '资金账户', dataIndex: 'rd_bankname', width: 100 },{ text: '收款金额', xtype: 'numbercolumn', dataIndex: 'rd_amount', width: 100, 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: 'rd_paymethod', width: 90 }, { text: '结算号', dataIndex: 'rd_paycode', width: 90 },{ text: '备注', dataIndex: 'rb_remark', width: 250 }] } });