| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- Ext.define('saas.view.money.othspendings.QueryPanel', {
- extend: 'saas.view.core.query.QueryPanel',
- xtype: 'money-othspendings-querypanel',
- controller: 'money-othspendings-querypanel',
- viewModel: 'money-othspendings-querypanel',
- viewName: 'money-othspendings-querypanel',
- initComponent: function () {
- Ext.apply(this, {
- queryFormItems: [{
- xtype: 'textfield',
- name: 'os_code',
- emptyText: '请输入单号'
- }, {
- xtype: 'vendorDbfindTrigger',
- name: 'os_vendname',
- margin: '0 0 0 20',
- emptyText: '请输入供应商编号或名称'
- }, {
- xtype: 'condatefield',
- name: 'os_date',
- columnWidth: 0.5,
- fieldLabel: '日期'
- }, {
- name: 'osd_type',
- fieldLabel: '支出类别',
- xtype: "remotecombo",
- emptyText: '全部',
- showDetail: true,
- storeUrl: '/api/document/fundinouttype/getCombo?condition=支出',
- hiddenBtn: true, //true 则会关闭新增按钮功能
- getCondition: function (value) {
- if (!value) {
- return '1=1';
- } else {
- return 'osd_type like \'%' + value + '%\'';
- }
- }
- }, {
- xtype: "bandinfoDbfindTrigger",
- name: "os_bankname",
- fieldLabel: "账户名称",
- emptyText: '请输入账户编号或名称'
- }, {
- xtype: 'combobox',
- name: 'os_statuscode',
- fieldLabel: '单据状态',
- queryMode: 'local',
- displayField: 'os_status',
- valueField: 'os_statuscode',
- emptyText: '全部',
- editable: false,
- store: Ext.create('Ext.data.ArrayStore', {
- fields: ['os_statuscode', 'os_status'],
- data: [
- ["ALL", "全部"],
- ["AUDITED", "已审核"],
- ["UNAUDITED", "未审核"]
- ]
- }),
- getCondition: function (value) {
- if (value == 'ALL') {
- return '1=1';
- } else {
- return 'os_statuscode=\'' + value + '\'';
- }
- }
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'creatorName',
- fieldLabel: '录入人',
- emptyText: '请输入账户名称或姓名',
- getCondition: function (value) {
- if (!value) {
- return '1=1';
- } else {
- return 'othspendings.creatorName like\'%' + value + '%\'';
- }
- }
- }, {
- xtype: 'accountDbfindTrigger',
- name: 'os_auditman',
- fieldLabel: '审核人',
- emptyText: '请输入账户名称或姓名'
- }],
- moreQueryFormItems: [],
- queryGridConfig: {
- idField: 'id',
- codeField: 'os_code',
- addTitle: '其它支出单',
- addXtype: 'money-othspendings-formpanel',
- defaultCondition: '',
- baseVastUrl: '/api/money/othspendings/',
- caller: 'OthSpendings',
- baseColumn: [{
- text: 'id',
- dataIndex: 'id',
- hidden: true,
- xtype: 'numbercolumn'
- }, {
- text: '单据编号',
- dataIndex: 'os_code',
- width: 150
- }, {
- text: '日期',
- dataIndex: 'os_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '供应商名称',
- dataIndex: 'os_vendname',
- width: 200
- }, {
- text: '结算账户',
- dataIndex: 'os_bankname',
- width: 150
- }, {
- text: '付款金额(元)',
- xtype: 'numbercolumn',
- dataIndex: 'os_amount',
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '币别',
- dataIndex: 'os_currency',
- width: 120
- } ,{
- text: '汇率(%)',
- dataIndex: 'os_rate',
- xtype: 'numbercolumn',
- width: 120,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 6, false);
- },
- } ,{
- text: '单据状态',
- align: 'center',
- dataIndex: 'os_status',
- width: 90
- }, {
- text: '备注',
- dataIndex: 'os_remark',
- width: 250
- }],
- relativeColumn: [{
- text: 'id',
- dataIndex: 'id',
- hidden: true,
- xtype: 'numbercolumn'
- }, {
- text: '单据编号',
- dataIndex: 'os_code',
- width: 150
- }, {
- text: '日期',
- dataIndex: 'os_date',
- xtype: 'datecolumn',
- width: 110
- }, {
- text: '供应商名称',
- dataIndex: 'os_vendname',
- width: 200
- }, {
- text: '结算账户',
- dataIndex: 'os_bankname',
- width: 150
- }, {
- text: '付款金额(元)',
- xtype: 'numbercolumn',
- dataIndex: 'os_amount',
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- }
- }, {
- text: '币别',
- dataIndex: 'os_currency',
- width: 120
- } ,{
- text: '汇率(%)',
- dataIndex: 'os_rate',
- xtype: 'numbercolumn',
- width: 120,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 6, false);
- },
- } ,{
- text: '单据状态',
- align: 'center',
- dataIndex: 'os_status',
- width: 90
- }, {
- text: '支出类别',
- dataIndex: 'osd_type',
- width: 110
- }, {
- text: '明细金额(元)',
- xtype: 'numbercolumn',
- dataIndex: 'osd_nowbalance',
- width: 110,
- renderer: function(v, m, r) {
- return saas.util.BaseUtil.numberFormat(v, 2, true);
- },
- }, {
- text: '备注',
- dataIndex: 'osd_remark',
- width: 250
- }]
- }
- });
- this.callParent(arguments);
- },
- });
|