|
|
@@ -8,32 +8,85 @@ Ext.define('saas.view.money.verification.QueryPanel', {
|
|
|
viewName: 'money-verification-querypanel',
|
|
|
|
|
|
queryFormItems: [{
|
|
|
- xtype: 'hidden',
|
|
|
- name: 'rb_id',
|
|
|
- fieldLabel: 'ID',
|
|
|
- allowBlank: true,
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'vc_code',
|
|
|
+ fieldLabel: '单号/供应商名/客户名',
|
|
|
+ emptyText :'请输入单号或者供应商名或者客户名',
|
|
|
getCondition: function(value) {
|
|
|
- return 'rb_id=' + value;
|
|
|
+ if(value == 'ALL') {
|
|
|
+ return '1=1';
|
|
|
+ }else {
|
|
|
+ return ' (vc_code like\'%' + value + '%\' '
|
|
|
+ +' or vc_vendcode like \'%'+value+'%\' '
|
|
|
+ +' or vc_custcode like \'%'+value+'%\') ';
|
|
|
+ }
|
|
|
}
|
|
|
- }, {
|
|
|
- xtype: 'textfield',
|
|
|
- name: 'rb_code',
|
|
|
- fieldLabel: '单据编号'
|
|
|
- }, {
|
|
|
+ },{
|
|
|
xtype: 'condatefield',
|
|
|
- name: 'rb_date',
|
|
|
- fieldLabel: '日期',
|
|
|
+ name: 'vc_date',
|
|
|
+ fieldLabel: '单据日期',
|
|
|
columnWidth: 0.5,
|
|
|
operation: 'between'
|
|
|
+ },{
|
|
|
+ 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: 'combobox',
|
|
|
+ name: 'vc_kind',
|
|
|
+ fieldLabel: '业务类型',
|
|
|
+ queryMode: 'local',
|
|
|
+ displayField: 'name',
|
|
|
+ valueField: 'value',
|
|
|
+ emptyText :'全部',
|
|
|
+ editable:false,
|
|
|
+ store: Ext.create('Ext.data.ArrayStore', {
|
|
|
+ fields: ['value', 'name'],
|
|
|
+ data: [
|
|
|
+ ["ALL", "全部"],
|
|
|
+ ["预收冲应收", "预收冲应收"],
|
|
|
+ ["预付冲应付", "预付冲应付"],
|
|
|
+ ["应收冲应付", "应收冲应付"],
|
|
|
+ ["应收转应收", "应收转应收"],
|
|
|
+ ["应付转应付", "应付转应付"]
|
|
|
+ ]
|
|
|
+ }),
|
|
|
+ getCondition: function(value) {
|
|
|
+ if(value == 'ALL') {
|
|
|
+ return '1=1';
|
|
|
+ }else {
|
|
|
+ return 'vc_kind=\'' + value + '\'';
|
|
|
+ }
|
|
|
+ }
|
|
|
}],
|
|
|
moreQueryFormItems: [],
|
|
|
queryGridConfig: {
|
|
|
idField: 'id',
|
|
|
- codeField: 'rb_code',
|
|
|
- addTitle: '收款单',
|
|
|
- addXtype: 'money-recbalance-formpanel',
|
|
|
+ codeField: 'vc_code',
|
|
|
+ addTitle: '核销单',
|
|
|
+ addXtype: 'money-verification-formpanel',
|
|
|
defaultCondition:'',
|
|
|
- baseVastUrl: '/api/money/recbalance/',
|
|
|
+ baseVastUrl: '/api/money/verification/',
|
|
|
baseColumn: [{
|
|
|
text: 'id',
|
|
|
dataIndex: 'id',
|
|
|
@@ -42,32 +95,29 @@ Ext.define('saas.view.money.verification.QueryPanel', {
|
|
|
hidden: true
|
|
|
}, {
|
|
|
text: '单据编号',
|
|
|
- dataIndex: 'rb_code',
|
|
|
+ dataIndex: 'vc_code',
|
|
|
width: 200
|
|
|
}, {
|
|
|
- text: '单据状态',
|
|
|
- dataIndex: 'rb_status',
|
|
|
+ text: '审核状态',
|
|
|
+ dataIndex: 'vc_status',
|
|
|
width: 120
|
|
|
}, {
|
|
|
- text: '日期',
|
|
|
- dataIndex: 'rb_date',
|
|
|
- xtype: 'datecolumn',
|
|
|
+ text: '业务类型',
|
|
|
+ dataIndex: 'vc_kind',
|
|
|
width: 200
|
|
|
}, {
|
|
|
text: '客户编号',
|
|
|
- dataIndex: 'rb_custcode',
|
|
|
+ dataIndex: 'vc_custcode',
|
|
|
hidden: true
|
|
|
}, {
|
|
|
text: '客户名称',
|
|
|
- dataIndex: 'rb_custname',
|
|
|
+ dataIndex: 'vc_custname',
|
|
|
}, {
|
|
|
- text: '收款人',
|
|
|
- dataIndex: 'rb_manname',
|
|
|
- xtype: 'numbercolumn',
|
|
|
- width: 120,
|
|
|
+ text: '供应商名称',
|
|
|
+ dataIndex: 'vc_vendcode'
|
|
|
}, {
|
|
|
- text: '收款金额',
|
|
|
- dataIndex: 'rb_rdamount',
|
|
|
+ text: '核销金额',
|
|
|
+ dataIndex: 'vc_amount1',
|
|
|
xtype: 'numbercolumn',
|
|
|
width: 120,
|
|
|
flex: 1,
|