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: 'textfield', name: 'pb_code', fieldLabel: '单据编号', columnWidth: 0.3 },{ xtype: 'dbfindtrigger', name: 'pb_vendname', fieldLabel: '供应商名', columnWidth: 0.3 },{ xtype: 'textfield', name: 'pb_manname', fieldLabel: '付款人', columnWidth: 0.3 },{ xtype: 'dbfindtrigger', name: 'pd_bankname', fieldLabel: '资金账户', columnWidth: 0.3 },{ xtype: 'condatefield', name: 'pb_date', fieldLabel: '单据日期', columnWidth: 0.6, operation: 'between' },{ xtype: 'multicombo', name: 'pb_status', fieldLabel: '审核状态', columnWidth: 0.3, datas: [ ["已审核", "已审核"], ["未审核", "未审核"] ] }], moreQueryFormItems: [], queryGridConfig: { idField: 'id', codeField: 'pb_code', addTitle: '付款单', addXtype: 'money-paybalance-formpanel', defaultCondition:'', baseVastUrl: '/api/money/paybalance/', // baseVastUrl: 'http://192.168.253.35:8880/paybalance/', baseColumn: [{ text: 'id', dataIndex: 'id', width: 100, xtype: 'numbercolumn', hidden:true }, { text: '单据编号', dataIndex: 'pb_code', width: 200 }, { text: '单据日期', dataIndex: 'pb_date', xtype: 'datecolumn', width: 160 }, { text: '审核状态', dataIndex: 'pb_status', width: 120 }, { text: '供应商编号', dataIndex: 'pb_vendcode', width: 200, hidden:true }, { text: '供应商', dataIndex: 'pb_vendname', width: 120, }, { text: '付款人', dataIndex: 'pb_manname', width: 120, }, { text: '资金账户', dataIndex: 'pd_bankname', width: 120, },{ 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: 120, },{ text: '结算号', dataIndex: 'pd_paycode', width: 120 }, { text: '备注', dataIndex: 'pd_remark', width: 120, },{ text: '付款总额', dataIndex: 'pb_pdamount', 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: 'pbd_slcode', width: 0 },{ text: '业务类别', dataIndex: 'pbd_slkind', width: 0 },{ text: '单据日期', dataIndex: 'pbd_sldate', width: 0, xtype:'datecolumn' },{ text: '单据金额', dataIndex: 'pbd_amount', width: 0, 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: 'pbd_nowbalance', width: 0, 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: '本次核销金额', xtype: 'numbercolumn', dataIndex: 'pb_pbdamount', width: 0, 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: 'pb_preamount', width: 0, 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: 'pb_discounts', width: 0, hidden:true }, { text: '已核销金额', xtype: 'numbercolumn', dataIndex: 'pb_havebalance', width: 0, 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); }, }], relativeColumn: [] }, // override getQueryMode: function() { return 'MAIN'; } });