| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- Ext.define('saas.view.stock.appropriationInOut.QueryPanel', {
- extend: 'saas.view.core.query.QueryPanel',
- xtype: 'stock-appropriationinout-querypanel',
- controller: 'stock-appropriationinout-querypanel',
- viewModel: 'stock-appropriationinout-querypanel',
- viewName: 'stock-appropriationinout-querypanel',
- queryFormItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'ID',
- allowBlank: true,
- columnWidth: 0
- },{
- xtype: 'textfield',
- name: 'pi_inoutno',
- emptyText:'请输入单号或物料',
- showDetail: true,
- getCondition: function(value) {
- if(value == 'ALL') {
- return '1=1';
- }else {
- return ' (pi_inoutno like\'%' + value + '%\' or pd_prodcode like \'%'+value+'%\' ) ';
- }
- }
- }, {
- xtype: 'condatefield',
- name: 'pi_date',
- fieldLabel: '日期',
- allowBlank: true,
- columnWidth: 0.5
- }, {
- xtype: 'combobox',
- name: 'pi_statuscode',
- fieldLabel: '状态',
- allowBlank: true,
- editable:false,
- columnWidth: 0.25,
- queryMode: 'local',
- emptyText :'全部',
- editable:false,
- displayField: 'pi_status',
- valueField: 'pi_statuscode',
- store: Ext.create('Ext.data.ArrayStore', {
- fields: ['pi_statuscode', 'pi_status'],
- data: [
- ["ALL", "全部"],
- ["AUDITED", "已审核"],
- ["UNAUDITED", "未审核"]
- ]
- }),
- getCondition: function(value) {
- if(value == 'ALL') {
- return '1=1';
- }else {
- return 'pi_statuscode=\'' + value + '\'';
- }
- }
- },{
- xtype: 'textfield',
- name: 'pd_whcode',
- fieldLabel: '仓库',
- emptyText :'请输入仓库名或仓库编号',
- showDetail: true,
- getCondition: function(value) {
- if(value == 'ALL') {
- return '1=1';
- }else {
- return ' (pd_whcode like\'%' + value + '%\' or pd_whname like \'%'+value+'%\' or pd_inwhcode like\'%' + value + '%\' or pd_inwhname like \'%'+value+'%\') ';
- }
- }
- }],
- moreQueryFormItems: [],
- queryGridConfig: {
- idField:'id',
- codeField:'pi_inoutno',
- addTitle:'调拨单',
- addXtype:'stock-appropriationinout-formpanel',
- defaultCondition:' pi_class = \'调拨单\'',
- baseVastUrl:'/api/storage/prodinout/',
- baseColumn: [{
- text: 'id',
- dataIndex: 'id',
- hidden:true,
- xtype: 'numbercolumn'
- }, {
- text: '调拨单号',
- dataIndex: 'pi_inoutno',
- width: 150
- },{
- text: '单据类型',
- dataIndex: 'pi_class',
- width: 0
- },{
- text: '单据日期',
- dataIndex: 'pi_date',
- xtype:'datecolumn',
- width: 110
- },{
- text: '状态',
- dataIndex: 'pi_status',
- width: 90
- },{
- text: '供应商名称',
- dataIndex: 'pi_vendname',
- width: 0
- },{
- text: '客户名称',
- dataIndex: 'pi_custname',
- width: 0
- },{
- text: '录入人',
- dataIndex: 'creatorName',
- width: 110
- },{
- text: '审核人',
- dataIndex: 'pi_auditman',
- width: 110
- },{
- text: '备注',
- dataIndex: 'pi_remark',
- width: 250
- }],
- relativeColumn: [{
- text: 'id',
- dataIndex: 'id',
- hidden:true,
- xtype: 'numbercolumn'
- }, {
- text: '调拨单号',
- dataIndex: 'pi_inoutno',
- width: 150
- },{
- text: '单据类型',
- dataIndex: 'pi_class',
- width: 0
- },{
- text: '单据日期',
- dataIndex: 'pi_date',
- xtype:'datecolumn',
- width: 110
- },{
- text: '状态',
- dataIndex: 'pi_status',
- width: 90
- },{
- text: '供应商名称',
- dataIndex: 'pi_vendname',
- width: 0
- },{
- text: '客户名称',
- dataIndex: 'pi_custname',
- width: 0
- },{
- text: '录入人',
- dataIndex: 'creatorName',
- width: 110
- },{
- text: '审核人',
- dataIndex: 'pi_auditman',
- width: 110
- },{
- text: '备注',
- dataIndex: 'pi_remark',
- width: 250
- }]
- }
- });
|