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: 'hidden', name: 'rb_id', fieldLabel: 'ID', allowBlank: true, getCondition: function(value) { return 'rb_id=' + value; } }, { xtype: 'textfield', name: 'rb_code', fieldLabel: '单据编号', columnWidth: 0.3, }, { xtype: 'dbfindtrigger', name: 'rb_custname', fieldLabel: '客户名', columnWidth: 0.3, }, { xtype: 'textfield', name: 'rb_manname', fieldLabel: '收款人', columnWidth: 0.3, },{ xtype: 'textfield', name: 'rd_bankname', fieldLabel: '资金账户', columnWidth: 0.3, }, { xtype: 'condatefield', name: 'rb_date', fieldLabel: '单据日期', columnWidth: 0.6, operation: 'between' },{ xtype: 'multicombo', name: 'rb_status', fieldLabel: '审核状态', columnWidth: 0.3, datas: [ ["已审核", "已审核"], ["未审核", "未审核"] ] },{ xtype: 'textfield', name: 'rbd_slcode', fieldLabel: '源单编号', columnWidth: 0.3, }], moreQueryFormItems: [], queryGridConfig: { idField: 'id', codeField: 'rb_code', addTitle: '收款单', addXtype: 'money-recbalance-formpanel', defaultCondition:'', baseVastUrl: '/api/money/recbalance/', // baseVastUrl: 'http://192.168.253.35:8880/recbalance/', baseColumn: [{ text: 'id', dataIndex: 'id', width: 100, xtype: 'numbercolumn', hidden: true }, { text: '单据编号', dataIndex: 'rb_code', width: 200 }, { text: '审核状态', dataIndex: 'rb_status', width: 120 }, { text: '单据日期', dataIndex: 'rb_date', xtype: 'datecolumn', width: 200 }, { text: '客户编号', dataIndex: 'rb_custcode', hidden: true }, { text: '客户名称', dataIndex: 'rb_custname', }, { text: '收款人', dataIndex: 'rb_manname', width: 120, }, { text: '资金账户', dataIndex: 'rd_bankname', width: 120, },{ text: '结算方式', dataIndex: 'rd_paymethod', width: 120, },{ text: '结算号', dataIndex: 'rd_paycode', width: 120, },{ text: '备注', dataIndex: 'rd_remark', width: 120, },{ text: '收款总额', dataIndex: 'rb_rdamount', xtype: 'numbercolumn', width: 120, hidden: true, 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: 'rbd_slcode', width: 120, },{ text: '业务类别', dataIndex: 'rbd_slkind', width: 120, },{ text: '单据日期', dataIndex: 'rbd_sldate', xtype: 'datecolumn', width: 120, },{ text: '单据金额', dataIndex: 'rbd_amount', xtype: 'numbercolumn', width: 120, },{ text: '本次核销金额', dataIndex: 'rbd_nowbalance', xtype: 'numbercolumn', width: 120, }, ] }, // override getQueryMode: function() { return 'MAIN'; } });