Ext.define('saas.view.money.paybalance.QueryPanel', { extend: 'saas.view.core.query.QueryPanel', xtype: 'money-paybalance-querypanel', controller: 'money-paybalance-querypanel', viewModel: 'money-paybalance-querypanel', viewName: 'money-paybalance-querypanel', queryFormItems: [{ xtype: 'hidden', name: 'pb_id', fieldLabel: 'ID', allowBlank: true, getCondition: function(value) { return 'pb_id=' + value; } }, { xtype: 'textfield', name: 'pb_code', emptyText :'请输入单号' }, { xtype: 'condatefield', name: 'pb_date', fieldLabel: '日期', columnWidth: 0.5, operation: 'between' }, { xtype: 'vendorDbfindTrigger', name: 'pb_vendname', fieldLabel: '供应商', emptyText :'请输入供应商编号或名称' }/*, { xtype: 'textfield', name: 'pbd_slcode', fieldLabel: '来源单号', showDetail: true } ,{ xtype:'textfield', name:'pbd_slkind', fieldLabel: '业务类型', showDetail: true }*/, { xtype: 'accountDbfindTrigger', name: 'creatorName', fieldLabel: '录入人', emptyText:'请输入账户名称或姓名', getCondition: function(value) { if(!value) { return '1=1'; }else { return 'paybalance.creatorName like\'%' + value + '%\''; } } }, { xtype: 'accountDbfindTrigger', name: 'pb_auditman', fieldLabel: '审核人', emptyText:'请输入账户名称或姓名' }], moreQueryFormItems: [], queryGridConfig: { idField: 'id', codeField: 'pb_code', addTitle: '付款单', addXtype: 'money-paybalance-formpanel', defaultCondition: '', baseVastUrl: '/api/money/paybalance/', caller: 'PayBalance', baseColumn: [ { text: 'id', dataIndex: 'id', width: 0, xtype: 'numbercolumn', hidden: true }, { text: '付款单号', dataIndex: 'pb_code', width: 130 }, { text: '日期', dataIndex: 'pb_date', xtype: 'datecolumn', width: 100 }, { text: '供应商名称', dataIndex: 'pb_vendname', width: 180, }, { text: '单据状态', align: 'center', dataIndex: 'pb_status', width: 90 }, { text: '付款人', dataIndex: 'pb_manname', width: 110 }, { text: '备注', dataIndex: 'pb_remark', width: 250 }], relativeColumn: [{ text: 'id', dataIndex: 'id', width: 0, xtype: 'numbercolumn', hidden: true }, { text: '付款单号', dataIndex: 'pb_code', width: 130 }, { text: '日期', dataIndex: 'pb_date', xtype: 'datecolumn', width: 100 }, { text: '供应商名称', dataIndex: 'pb_vendname', width: 180, }, { text: '单据状态', align: 'center', dataIndex: 'pb_status', width: 90 }, { text: '付款人', dataIndex: 'pb_manname', width: 110 },{ text: '资金账户', dataIndex: 'pd_bankname', width: 110 },{ text: '付款金额(元)', xtype: 'numbercolumn', dataIndex: 'pd_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: 'pd_paymethod', width: 100 },{ text: '结算号', dataIndex: 'pd_paycode', width: 100 },{ text: '备注', dataIndex: 'pd_remark', width: 250 }] } });