Ext.define('saas.view.money.verification.QueryPanel', { extend: 'saas.view.core.query.QueryPanel', xtype: 'money-verification-querypanel', controller: 'money-verification-querypanel', viewModel: 'money-verification-querypanel', viewName: 'money-verification-querypanel', initComponent: function () { Ext.apply(this, { queryFormItems: [{ xtype: 'textfield', name: 'vc_code', emptyText: '请输入单号' }, { xtype: 'customerDbfindTrigger', name: 'vc_custname', margin: '0 0 0 20', emptyText: '请输入客户编号或名称' }, { xtype: 'condatefield', name: 'vc_date', fieldLabel: '日期', columnWidth: 0.5, operation: 'between' }, { xtype: 'vendorDbfindTrigger', name: 'vc_vendname', fieldLabel: '供应商', emptyText: '请输入供应商编号或名称' }, { xtype: 'combobox', name: 'vc_statuscode', fieldLabel: '审核状态', queryMode: 'local', displayField: 'name', valueField: 'value', emptyText: '全部', editable: false, store: Ext.create('Ext.data.ArrayStore', { fields: ['value', 'name'], data: [ ["ALL", "全部"], ["AUDITED", "已审核"], ["UNAUDITED", "未审核"] ] }), getCondition: function (value) { if (value == 'ALL') { return '1=1'; } else { return 'vc_statuscode=\'' + value + '\''; } } }, { xtype: 'accountDbfindTrigger', name: 'creatorName', fieldLabel: '录入人', emptyText: '请输入账户名称或姓名', getCondition: function (value) { if (!value) { return '1=1'; } else { return 'verification.creatorName like\'%' + value + '%\''; } } }, { xtype: 'accountDbfindTrigger', name: 'vc_auditman', fieldLabel: '审核人', emptyText: '请输入账户名称或姓名' }], moreQueryFormItems: [], queryGridConfig: { idField: 'vc_id', codeField: 'vc_code', addTitle: '核销单', addXtype: 'money-verification-formpanel', defaultCondition: '', baseVastUrl: '/api/money/verification/', caller: 'Verification', baseColumn: [{ text: 'id', dataIndex: 'id', width: 100, xtype: 'numbercolumn', hidden: true }, { text: '单据编号', dataIndex: 'vc_code', width: 180 }, { text: '单据日期', dataIndex: 'vc_date', xtype: 'datecolumn', width: 100 }, { text: '审核状态', align: 'center', dataIndex: 'vc_status', width: 80 }, { text: '业务类型', dataIndex: 'vc_kind', width: 100 }, { text: '客户编号', dataIndex: 'vc_custcode', hidden: true }, { text: '客户名称', dataIndex: 'vc_custname', width: 200 }, { text: '供应商编号', dataIndex: 'vc_vendcode', hidden: true }, { text: '供应商名称', dataIndex: 'vc_vendname', width: 200 }, { text: '核销金额(元)', dataIndex: 'vc_amount1', xtype: 'numbercolumn', width: 110, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }] } }); this.callParent(arguments); }, });