| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- Ext.define('saas.view.money.fundtransfer.QueryPanel', {
- extend: 'saas.view.core.query.QueryPanel',
- xtype: 'money-fundtransfer-querypanel',
- controller: 'money-fundtransfer-querypanel',
- viewModel: 'money-fundtransfer-querypanel',
- viewName: 'money-fundtransfer-querypanel',
- initComponent: function () {
- Ext.apply(this, {
- queryFormItems: [{
- xtype: 'textfield',
- name: 'ft_code',
- emptyText: '请输入单号',
- }, {
- xtype: "bandinfoDbfindTrigger",
- name: "ftd_bankname",
- margin: '0 0 0 20',
- emptyText: '请输入转出账户编号或名称',
- }, {
- xtype: "condatefield",
- name: "ft_date",
- fieldLabel: "日期",
- columnWidth: 0.5
- }, {
- xtype: "bandinfoDbfindTrigger",
- name: "ftd_inbankname",
- fieldLabel: "转入账户",
- emptyText: '请输入转入账户编号或名称',
- }, {
- xtype: 'combobox',
- name: 'ft_statuscode',
- fieldLabel: '单据状态',
- queryMode: 'local',
- displayField: 'ft_status',
- valueField: 'ft_statuscode',
- emptyText: '全部',
- editable: false,
- store: Ext.create('Ext.data.ArrayStore', {
- fields: ['ft_statuscode', 'ft_status'],
- data: [
- ["ALL", "全部"],
- ["AUDITED", "已审核"],
- ["UNAUDITED", "未审核"]
- ]
- }),
- getCondition: function (value) {
- if (value == 'ALL') {
- return '1=1';
- } else {
- return 'ft_statuscode=\'' + value + '\'';
- }
- }
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'creatorName',
- fieldLabel: '录入人',
- emptyText: '请输入账户名称或姓名',
- getCondition: function (value) {
- if (!value) {
- return '1=1';
- } else {
- return 'fundtransfer.creatorName like\'%' + value + '%\'';
- }
- }
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'ft_auditman',
- fieldLabel: '审核人',
- emptyText: '请输入账户名称或姓名'
- }],
- moreQueryFormItems: [],
- queryGridConfig: {
- idField: 'id',
- codeField: 'ft_code',
- addTitle: '资金转存',
- addXtype: 'money-fundtransfer-formpanel',
- defaultCondition: '',
- baseVastUrl: '/api/money/fundtransfer/',
- caller: 'FundTransfer',
- baseColumn: [{
- text: 'id',
- dataIndex: 'id',
- hidden: true
- }, {
- text: '单据编号',
- dataIndex: 'ft_code',
- width: 150
- }, {
- text: '日期',
- dataIndex: 'ft_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '转出账户',
- dataIndex: 'ftd_bankname',
- width: 150
- }, {
- text: '转入账户',
- dataIndex: 'ftd_inbankname',
- width: 150
- }, {
- text: '金额(元)',
- xtype: 'numbercolumn',
- dataIndex: 'ftd_nowbalance',
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- }, {
- text: '结算方式',
- dataIndex: 'ftd_paymethod',
- width: 150
- }, {
- text: '结算号',
- dataIndex: 'ftd_paycode',
- hidden: true
- }, {
- text: '审核状态',
- dataIndex: 'ft_status',
- align: 'center',
- width: 80
- }, {
- text: '备注',
- dataIndex: 'ftd_remark',
- width: 250
- }],
- relativeColumn: []
- }
- });
- this.callParent(arguments);
- },
- });
|