| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- 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',
-
- 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: 100,
- renderer : function(v) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }]
- }
- });
|