123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- Ext.define('erp.view.pm.outsource.MakeMaterialGive',{
- extend: 'Ext.Viewport',
- layout: 'fit',
- hideBorders: true,
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [{
- layout: 'anchor',
- items: [{
- xtype: 'erpGridPanel5',
- anchor: '100% 32%',
- caller: 'Make!OS!Give',
- necessaryField: 'ma_code',
- bbar: {
- xtype: 'toolbar',
- items: [{
- xtype: 'tool',
- type: 'restore',
- tooltip: '最大化',
- listeners:{
- click: function(btn){
- window.open(window.location.href);
- }
- }
- },'->',{
- name: 'query',
- id: 'query',
- text: $I18N.common.button.erpQueryButton,
- iconCls: 'x-button-icon-query',
- cls: 'x-btn-gray'
- },{
- xtype: 'combo',
- fieldLabel:'集团采购料',
- id: 'groupPurs',
- width:150,
- labelWidth:75,
- store: Ext.create('Ext.data.Store', {
- fields: ['display', 'value'],
- data : [{"display": '是', "value": 'pr_isgrouppurc<>0'},
- {"display": '否', "value": 'NVL(pr_isgrouppurc,0)=0'},
- {"display": '全部', "value": ''}]
- }),
- displayField: 'display',
- valueField: 'value',
- queryMode: 'local',
- value:'',
- editable:false,
- hidden:true
- },{
- name: 'export',
- text: $I18N.common.button.erpExportButton,
- iconCls: 'x-button-icon-excel',
- cls: 'x-btn-gray',
- style: {
- marginLeft: '10px'
- },
- menu: [{
- iconCls: 'main-msg',
- text: '补料主表',
- listeners: {
- click: function(m){
- var grid = Ext.getCmp('grid');
- grid.BaseUtil.exportexcel(grid);
- }
- }
- },{
- iconCls: 'main-msg',
- text: '补料从表',
- listeners: {
- click: function(m){
- var grid = Ext.getCmp('makeMaterialGrid');
- grid.BaseUtil.exportexcel(grid);
- }
- }
- }]
- },{
- name: 'close',
- text: $I18N.common.button.erpCloseButton,
- iconCls: 'x-button-icon-close',
- cls: 'x-btn-gray',
- style: {
- marginLeft: '10px'
- },
- handler: function(btn){
- var main = parent.Ext.getCmp("content-panel");
- if(main){
- main.getActiveTab().close();
- } else {
- window.close();
- }
- }
- },{
- text: '生成补料单',
- id: 'create',
- width: 95,
- iconCls: 'x-button-icon-add',
- style: {
- marginLeft: '10px'
- },
- cls: 'x-btn-gray'
- },'->',{
- xtype: 'checkbox',
- id: 'ifnulllocation',
- boxLabel: '包含空',
- labelAlign: 'right',
- checked: true
- },{
- xtype: 'textfield',
- hideLabel:true,
- emptyText:'储位',
- width:100,
- name:'pr_location',
- id: 'pr_location',
- value: ''
- },{
- xtype: 'checkbox',
- id: 'whcode',
- boxLabel: '按仓库分组',
- labelAlign: 'right',
- checked: true
- }]
- }
- },{
- xtype: 'erpEditorColumnGridPanel',
- caller: 'MakeMaterial!Give',
- condition: '1=2',
- detno: 'mm_detno',
- anchor: '100% 68%',
- pluginConfig: [Ext.create('erp.view.core.plugin.ProdOnhand')]
- }]
- }]
- });
- me.callParent(arguments);
- }
- });
|