| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- 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',
-
- queryFormItems: [{
- xtype: 'hidden',
- name: 'os_id',
- fieldLabel: 'ID',
- allowBlank: true,
- columnWidth: 0
- }, {
- xtype : 'hidden',
- name : 'os_vendid',
- fieldLabel : '供应商ID'
- }, {
- xtype : 'textfield',
- name : 'os_code',
- fieldLabel : '单据编号',
- }, {
- xtype: 'hidden',
- name: 'os_vendcode',
- fieldLabel: '供应商编号',
- }, {
- xtype: 'dbfindtrigger',
- name: 'os_vendname',
- fieldLabel: '供应商名称'
- }, {
- xtype: 'textfield',
- name: 'os_recorder',
- fieldLabel: '制单人',
- }, {
- xtype: 'hidden',
- name: 'os_auditman',
- fieldLabel: '审核人',
- }, {
- xtype: 'dbfindtrigger',
- name: 'os_bankname',
- fieldLabel: '结算账户',
- },{
- xtype: 'condatefield',
- name: 'os_date',
- columnWidth: 0.5,
- fieldLabel: '单据日期'
- },{
- xtype: 'multicombo',
- name: 'os_statuscode',
- fieldLabel: '审核状态',
- datas: [
- ["ALL", "全部"],
- ["AUDITED", "已审核"],
- ["UNAUDITED", "未审核"]
- ],
- getCondition: function(value) {
- if(value == 'ALL') {
- return '1=1';
- }else {
- return 'os_statuscode=\'' + value + '\'';
- }
- }
- },{
- name: 'ord_type',
- fieldLabel: '支出类别',
- xtype : "remotecombo",
- storeUrl:'/api/document/fundinouttype/getCombo?condition=支出',
- },{
- xtype: 'textfield',
- name: 'creatorName',
- fieldLabel: '录入人'
- }],
- moreQueryFormItems: [],
- queryGridConfig: {
- idField: 'id',
- codeField: 'os_code',
- addTitle: '其它支出单',
- addXtype: 'money-othspendings-formpanel',
- defaultCondition:'',
- baseVastUrl: '/api/money/othspendings/',
- // baseVastUrl: 'http://192.168.253.35:8880/othspendings/',
- baseColumn: [{
- text: 'id',
- dataIndex: 'id',
- width: 0,
- xtype: 'numbercolumn'
- }, {
- text: '单据编号',
- dataIndex: 'os_code',
- width: 200
- }, {
- text: '单据日期',
- dataIndex: 'os_date',
- xtype: 'datecolumn',
- width: 200
- },{
- text: '审核状态',
- dataIndex: 'os_status',
- width: 120
- }, {
- text: '供应商',
- dataIndex: 'os_vendname',
- width: 120
- },{
- text: '结算账户',
- dataIndex: 'os_bankname',
- width: 120
- },{
- text: '付款金额',
- dataIndex: 'os_amount',
- width: 120
- },{
- text: '录入人',
- dataIndex: 'os_recorder',
- width: 120
- }, {
- text: '支出类别',
- dataIndex: 'osd_type',
- width: 200
- }, {
- text: '金额',
- dataIndex: 'osd_nowbalance',
- xtype: 'numbercolumn',
- width: 120,
- renderer : function(v) {
- var arr = (v + '.').split('.');
- var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
- var format = '0,000.' + xr.join();
- return Ext.util.Format.number(v, format);
- }
- }, {
- text: '备注',
- dataIndex: 'osd_remark',
- width: 120
- },{
- text: '金额',
- xtype: 'numbercolumn',
- dataIndex: 'os_amount',
- width: 0,
- renderer : function(v) {
- var arr = (v + '.').split('.');
- var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
- var format = '0,000.' + xr.join();
- return Ext.util.Format.number(v, format);
- },
- }, {
- text: '备注',
- dataIndex: 'os_remark',
- width: 0
- }],
- relativeColumn: []
- }
- });
|