| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- Ext.define('saas.view.money.recBalance.QueryPanel', {
- extend: 'saas.view.core.query.QueryPanel',
- xtype: 'money-recbalance-querypanel',
- controller: 'money-recbalance-querypanel',
- viewModel: 'money-recbalance-querypanel',
- viewName: 'money-recbalance-querypanel',
- initComponent: function () {
- Ext.apply(this, {
- queryFormItems: [{
- xtype: 'textfield',
- name: 'rb_code',
- emptyText: '请输入单号'
- }, {
- xtype: 'customerDbfindTrigger',
- name: 'rb_custname',
- margin: '0 0 0 20',
- emptyText: '请输入客户编号或名称'
- }, {
- xtype: 'condatefield',
- name: 'rb_date',
- fieldLabel: '日期',
- columnWidth: 0.5,
- operation: 'between'
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'creatorName',
- fieldLabel: '录入人',
- emptyText: '请输入账户名称或姓名',
- getCondition: function (value) {
- if (!value) {
- return '1=1';
- } else {
- return 'recbalance.creatorName like\'%' + value + '%\'';
- }
- }
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'rb_auditman',
- fieldLabel: '审核人',
- emptyText: '请输入账户名称或姓名'
- }, {
- xtype: 'bandinfoDbfindTrigger',
- name: 'rd_bankname',
- fieldLabel: '资金账户',
- emptyText:'请输入资金账户名称或姓名',
- showDetail: true
- }],
- moreQueryFormItems: [],
- queryGridConfig: {
- idField: 'id',
- codeField: 'rb_code',
- addTitle: '收款单',
- addXtype: 'money-recbalance-formpanel',
- defaultCondition: '',
- baseVastUrl: '/api/money/recbalance/',
- caller: 'RecBalance',
- baseColumn: [{
- text: 'id',
- dataIndex: 'id',
- width: 100,
- xtype: 'numbercolumn',
- hidden: true
- }, {
- text: '收款单号',
- dataIndex: 'rb_code',
- width: 150
- }, {
- text: '单据日期',
- dataIndex: 'rb_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '客户名称',
- dataIndex: 'rb_custname',
- width: 200,
- }, {
- text: '审核状态',
- align: 'center',
- dataIndex: 'rb_status',
- width: 80
- }, {
- text: '收款金额(元)',
- dataIndex: 'rb_amount',
- width: 120,
- renderer : function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '收款人',
- dataIndex: 'rb_manname',
- width: 80
- }, {
- text: '备注',
- dataIndex: 'rb_remark',
- width: 250
- }],
- relativeColumn: [{
- text: 'id',
- dataIndex: 'id',
- width: 100,
- xtype: 'numbercolumn',
- hidden: true
- }, {
- text: '收款单号',
- dataIndex: 'rb_code',
- width: 150
- }, {
- text: '单据日期',
- dataIndex: 'rb_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '客户名称',
- dataIndex: 'rb_custname',
- width: 200,
- }, {
- text: '审核状态',
- align: 'center',
- dataIndex: 'rb_status',
- width: 80
- }, {
- text: '收款人',
- dataIndex: 'rb_manname',
- width: 80
- }, {
- text: '资金账户',
- dataIndex: 'rd_bankname',
- width: 150
- }, {
- text: '收款金额(元)',
- xtype: 'numbercolumn',
- dataIndex: 'rd_amount',
- width: 120,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '结算方式',
- dataIndex: 'rd_paymethod',
- width: 120
- }, {
- text: '结算号',
- dataIndex: 'rd_paycode',
- width: 120
- }, {
- text: '备注',
- dataIndex: 'rd_remark',
- width: 250
- }]
- }
- });
- this.callParent(arguments);
- },
- });
|