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', initComponent: function () { Ext.apply(this, { queryFormItems: [{ xtype: 'textfield', name: 'or_code', emptyText: '请输入单号' }, { xtype: "customerDbfindTrigger", name: "or_custname", margin: '0 0 0 20', emptyText: '请输入客户编号或名称' }, { xtype: 'condatefield', name: 'or_date', fieldLabel: '日期', columnWidth: 0.5, operation: 'between' }, { name: 'ord_type', fieldLabel: '收入类别', xtype: "remotecombo", columnWidth: 0.25, emptyText: '全部', showDetail: true, storeUrl: '/api/document/fundinouttype/getCombo?condition=收入', hiddenBtn: true, //true 则会关闭新增按钮功能 getCondition: function (value) { if (!value) { return '1=1'; } else { return 'ord_type like \'%' + value + '%\''; } } }, { xtype: "bandinfoDbfindTrigger", name: "or_bankname", fieldLabel: "账户名称", emptyText: '请输入账户编号或名称' }, { xtype: 'combobox', name: 'or_statuscode', fieldLabel: '单据状态', queryMode: 'local', displayField: 'or_status', valueField: 'or_statuscode', emptyText: '全部', columnWidth: 0.25, 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 + '\''; } } }, { xtype: 'accountDbfindTrigger', name: 'creatorName', fieldLabel: '录入人', emptyText: '请输入账户名称或姓名', getCondition: function (value) { if (!value) { return '1=1'; } else { return 'othreceipts.creatorName like\'%' + value + '%\''; } } }, { xtype: 'accountDbfindTrigger', name: 'or_auditman', fieldLabel: '审核人', emptyText: '请输入账户名称或姓名' }], moreQueryFormItems: [], queryGridConfig: { idField: 'id', codeField: 'or_code', addTitle: '其它收入单', addXtype: 'money-othreceipts-formpanel', defaultCondition: '', baseVastUrl: '/api/money/othreceipts/', caller: 'OthReceipts', baseColumn: [{ text: 'id', dataIndex: 'id', hidden: true }, { text: '单据编号', dataIndex: 'or_code', width: 150 }, { text: '日期', dataIndex: 'or_date', xtype: 'datecolumn', width: 110 }, { text: '客户名称', dataIndex: 'or_custname', width: 200 }, { text: '结算账户', dataIndex: 'or_bankname', width: 150 }, { text: '收款金额(元)', xtype: 'numbercolumn', dataIndex: 'or_amount', width: 110, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }, { text: '币别', dataIndex: 'or_currency', align:'center', width: 65 } ,{ text: '汇率', dataIndex: 'or_rate', xtype: 'numbercolumn', width: 80, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 6, false); }, } ,{ text: '单据状态', align: 'center', dataIndex: 'or_status', width: 90 }, { text: '备注', dataIndex: 'or_remark', width: 250 }], relativeColumn: [{ text: 'id', dataIndex: 'id', hidden: true }, { text: '单据编号', dataIndex: 'or_code', width: 150 }, { text: '日期', dataIndex: 'or_date', xtype: 'datecolumn', width: 110 }, { text: '客户名称', dataIndex: 'or_custname', width: 200 }, { text: '结算账户', dataIndex: 'or_bankname', width: 150 }, { text: '收款金额(元)', xtype: 'numbercolumn', dataIndex: 'or_amount', width: 110, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }, { text: '币别', dataIndex: 'or_currency', align:'center', width: 65 } ,{ text: '汇率', dataIndex: 'or_rate', xtype: 'numbercolumn', width: 80, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 6, false); }, } ,{ text: '单据状态', align: 'center', dataIndex: 'or_status', width: 90 }, { text: '收入类别', dataIndex: 'ord_type', width: 110 }, { text: '明细金额(元)', xtype: 'numbercolumn', dataIndex: 'ord_nowbalance', width: 110, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 2, true); }, }, { text: '备注', dataIndex: 'ord_remark', width: 250 }] } }); this.callParent(arguments); }, });