| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- 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',
-
- initComponent: function() {
- Ext.apply(this, {
- queryFormItems: [{
- xtype: 'hidden',
- name: 'pb_id',
- fieldLabel: 'ID',
- allowBlank: true,
- getCondition: function(value) {
- return 'pb_id=' + value;
- }
- }, {
- xtype: 'textfield',
- name: 'pb_code',
- emptyText :'请输入单号'
- }, {
- xtype: 'vendorDbfindTrigger',
- name: 'pb_vendname',
- margin:'0 0 0 20',
- emptyText :'请输入供应商编号或名称'
- }, {
- xtype: 'condatefield',
- name: 'pb_date',
- fieldLabel: '日期',
- columnWidth: 0.5,
- operation: 'between'
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'creatorName',
- fieldLabel: '录入人',
- emptyText:'请输入账户名称或姓名',
- getCondition: function(value) {
- if(!value) {
- return '1=1';
- }else {
- return 'paybalance.creatorName like\'%' + value + '%\'';
- }
- }
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'pb_auditman',
- fieldLabel: '审核人',
- emptyText:'请输入账户名称或姓名'
- }, {
- xtype: 'bandinfoDbfindTrigger',
- name: 'pd_bankcode',
- fieldLabel: '资金账户',
- emptyText:'请输入资金账户名称或姓名',
- showDetail: true
- }],
- moreQueryFormItems: [],
- queryGridConfig: {
- idField: 'id',
- codeField: 'pb_code',
- addTitle: '付款单',
- addXtype: 'money-paybalance-formpanel',
- defaultCondition: '',
- baseVastUrl: '/api/money/paybalance/',
- caller: 'PayBalance',
- baseColumn: [
- {
- text: 'id',
- dataIndex: 'id',
- xtype: 'numbercolumn',
- hidden: true
- }, {
- text: '付款单号',
- dataIndex: 'pb_code',
- width: 150
- }, {
- text: '单据日期',
- dataIndex: 'pb_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '供应商名称',
- dataIndex: 'pb_vendname',
- width: 200,
- }, {
- text: '单据状态',
- align: 'center',
- dataIndex: 'pb_status',
- width: 80
- }, {
- text: '付款金额(元)',
- xtype: 'numbercolumn',
- dataIndex: 'pb_amount',
- width: 120,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- }, {
- text: '付款人',
- dataIndex: 'pb_manname',
- width: 110
- }, {
- text: '备注',
- dataIndex: 'pb_remark',
- width: 250
- }],
- relativeColumn: [{
- text: 'id',
- dataIndex: 'id',
- xtype: 'numbercolumn',
- hidden: true
- }, {
- text: '付款单号',
- dataIndex: 'pb_code',
- width: 150
- }, {
- text: '单据日期',
- dataIndex: 'pb_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '供应商名称',
- dataIndex: 'pb_vendname',
- width: 200,
- }, {
- text: '单据状态',
- align: 'center',
- dataIndex: 'pb_status',
- width: 80
- }, {
- text: '付款人',
- dataIndex: 'pb_manname',
- width: 80
- },{
- text: '资金账户',
- dataIndex: 'pd_bankname',
- width: 150
- },{
- text: '付款金额(元)',
- xtype: 'numbercolumn',
- dataIndex: 'pd_amount',
- width: 120,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- } ,{
- text: '结算方式',
- dataIndex: 'pd_paymethod',
- width: 120
- },{
- text: '结算号',
- dataIndex: 'pd_paycode',
- width: 120
- },{
- text: '备注',
- dataIndex: 'pd_remark',
- width: 250
- }]
- }
- });
- this.callParent(arguments);
- },
- });
|