| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- 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',
-
- queryFormItems: [{
- xtype: 'hidden',
- name: 'pb_id',
- fieldLabel: 'ID',
- allowBlank: true,
- getCondition: function(value) {
- return 'pb_id=' + value;
- }
- }, {
- xtype: 'textfield',
- name: 'pb_code',
- emptyText :'请输入单号'
- }, {
- xtype: 'condatefield',
- name: 'pb_date',
- fieldLabel: '日期',
- columnWidth: 0.5,
- operation: 'between'
- }, {
- xtype: 'vendorDbfindTrigger',
- name: 'pb_vendname',
- fieldLabel: '供应商',
- emptyText :'请输入供应商编号或名称'
- }/*, {
- xtype: 'textfield',
- name: 'pbd_slcode',
- fieldLabel: '来源单号',
- showDetail: true
- } ,{
- xtype:'textfield',
- name:'pbd_slkind',
- fieldLabel: '业务类型',
- showDetail: true
- }*/, {
- 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:'请输入账户名称或姓名'
- }],
- moreQueryFormItems: [],
- queryGridConfig: {
- idField: 'id',
- codeField: 'pb_code',
- addTitle: '付款单',
- addXtype: 'money-paybalance-formpanel',
- defaultCondition: '',
- baseVastUrl: '/api/money/paybalance/',
- caller: 'PayBalance',
- baseColumn: [
- {
- text: 'id',
- dataIndex: 'id',
- width: 0,
- xtype: 'numbercolumn',
- hidden: true
- }, {
- text: '付款单号',
- dataIndex: 'pb_code',
- width: 130
- }, {
- text: '日期',
- dataIndex: 'pb_date',
- xtype: 'datecolumn',
- width: 100
- }, {
- text: '供应商名称',
- dataIndex: 'pb_vendname',
- width: 180,
- }, {
- text: '单据状态',
- align: 'center',
- dataIndex: 'pb_status',
- width: 90
- }, {
- text: '付款人',
- dataIndex: 'pb_manname',
- width: 110
- }, {
- text: '录入人',
- dataIndex: 'creatorName',
- width: 110
- }, {
- text: '审核人',
- dataIndex: 'pb_auditman',
- width: 110
- }, {
- text: '备注',
- dataIndex: 'pb_remark',
- width: 250
- }],
- relativeColumn: [{
- text: 'id',
- dataIndex: 'id',
- width: 0,
- xtype: 'numbercolumn',
- hidden: true
- }, {
- text: '付款单号',
- dataIndex: 'pb_code',
- width: 130
- }, {
- text: '日期',
- dataIndex: 'pb_date',
- xtype: 'datecolumn',
- width: 100
- }, {
- text: '供应商名称',
- dataIndex: 'pb_vendname',
- width: 180,
- }, {
- text: '单据状态',
- align: 'center',
- dataIndex: 'pb_status',
- width: 90
- }, {
- text: '付款人',
- dataIndex: 'pb_manname',
- width: 110
- }, {
- text: '录入人',
- dataIndex: 'creatorName',
- width: 110
- }, {
- text: '审核人',
- dataIndex: 'pb_auditman',
- width: 110
- },{
- text: '资金账户',
- dataIndex: 'pd_bankname',
- width: 110
- },{
- text: '付款金额',
- xtype: 'numbercolumn',
- dataIndex: 'pd_amount',
- 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: 'pd_paymethod',
- width: 100
- },{
- text: '结算号',
- dataIndex: 'pd_paycode',
- width: 100
- },{
- text: '备注',
- dataIndex: 'pd_remark',
- width: 250
- }]
- }
- });
|